Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
---
---
version: '1.0.{build}'
image: Ubuntu

init:
- sh: git config --global core.autocrlf true
- sh: nvm use 8

install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"

before_build:
- sh: yarn

Expand All @@ -14,7 +18,6 @@ build_script:

after_build:
# Copy anything that goes into the final package into '/package'
- sh: ls
- sh: mkdir -p package && cp dist/*.js dist/*.css package.json LICENSE README.md package
# Zip up the package files, along with the .map files for debugging
- sh: 7z a -tzip artifacts.zip ./package/* ./dist/*.map
Expand All @@ -27,9 +30,10 @@ artifacts:

deploy_script:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true")
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
#TODO Remove --dry-run when we're good to go here.
npm publish package/ --tag {version} --access public --dry-run
# npm_auth_token defined in the appveyor project on the site. https://www.appveyor.com/docs/lang/nodejs-iojs/#authenticating-npm-for-publishing-packages
'"//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII'
npm publish package/ --access public
}
...
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
"url": "https://github.com/grapoza/vue-tree",
"type": "git"
},
"bugs": "https://github.com/grapoza/vue-tree/issues",
"keywords": [
"vue",
"vuejs",
"tree",
"treeview"
],
"scripts": {
"build": "./node_modules/.bin/vue-cli-service build --target lib --name vue-tree src/components/TreeView.vue",
"watch": "./node_modules/.bin/vue-cli-service build --target lib --name vue-tree src/components/TreeView.vue --watch",
Expand Down