Skip to content

Commit bf24011

Browse files
committed
Code node package (#29)
* Updates package info and appveyor related fields
1 parent 5a8c187 commit bf24011

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

appveyor.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
---
1+
---
22
version: '1.0.{build}'
33
image: Ubuntu
4-
4+
55
init:
66
- sh: git config --global core.autocrlf true
77
- sh: nvm use 8
88

9+
install:
10+
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
11+
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
12+
913
before_build:
1014
- sh: yarn
1115

@@ -14,7 +18,6 @@ build_script:
1418

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

2831
deploy_script:
2932
- ps: |
30-
if ($env:APPVEYOR_REPO_TAG -eq "true")
33+
if ($env:APPVEYOR_REPO_TAG -eq "true")
3134
{
32-
#TODO Remove --dry-run when we're good to go here.
33-
npm publish package/ --tag {version} --access public --dry-run
35+
# npm_auth_token defined in the appveyor project on the site. https://www.appveyor.com/docs/lang/nodejs-iojs/#authenticating-npm-for-publishing-packages
36+
'"//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII'
37+
npm publish package/ --access public
3438
}
3539
...

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
"url": "https://github.com/grapoza/vue-tree",
1010
"type": "git"
1111
},
12+
"bugs": "https://github.com/grapoza/vue-tree/issues",
13+
"keywords": [
14+
"vue",
15+
"vuejs",
16+
"tree",
17+
"treeview"
18+
],
1219
"scripts": {
1320
"build": "./node_modules/.bin/vue-cli-service build --target lib --name vue-tree src/components/TreeView.vue",
1421
"watch": "./node_modules/.bin/vue-cli-service build --target lib --name vue-tree src/components/TreeView.vue --watch",

0 commit comments

Comments
 (0)