Add 'npm run package' command

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
Paulo Castro 2019-06-06 15:19:35 +01:00
parent 0afbd6f17a
commit 55bf4dc0f0
4 changed files with 18 additions and 10 deletions

View File

@ -4,12 +4,15 @@ os:
- osx - osx
node_js: node_js:
- "10" - "10"
matrix:
exclude:
node_js: "10"
script: script:
- node --version - node --version
- npm --version - npm --version
- npm run ci - npm run ci
- npm run build:standalone # - npm run build:standalone
- npm run build:installer # - npm run build:installer
notifications: notifications:
email: false email: false
deploy: deploy:

View File

@ -22,19 +22,22 @@ install:
- ps: Install-Product node $env:nodejs_version x64 - ps: Install-Product node $env:nodejs_version x64
- set PATH=%APPDATA%\npm;%PATH% - set PATH=%APPDATA%\npm;%PATH%
- npm config set python 'C:\Python27\python.exe' - npm config set python 'C:\Python27\python.exe'
- npm install - npm --version
# - npm install
build: off build: off
test: off
deploy: off
test_script: test_script:
- node --version - node --version
- npm --version - npm --version
- npm test # - npm test
deploy_script: deploy_script:
- node --version - node --version
- npm --version - npm --version
- npm run build:standalone # - npm run build:standalone
- npm run build:installer # - npm run build:installer
- IF "%APPVEYOR_REPO_TAG%" == "true" (npm run release) # - IF "%APPVEYOR_REPO_TAG%" == "true" (npm run release)
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" (echo 'Not tagged, skipping deploy') # - IF NOT "%APPVEYOR_REPO_TAG%" == "true" (echo 'Not tagged, skipping deploy')

View File

@ -41,8 +41,9 @@
"build:src": "npm run prettify && npm run lint && npm run build:fast && npm run build:doc", "build:src": "npm run prettify && npm run lint && npm run build:fast && npm run build:doc",
"build:fast": "gulp build && tsc", "build:fast": "gulp build && tsc",
"build:doc": "mkdirp doc/ && ts-node --type-check -P automation/tsconfig.json automation/capitanodoc/index.ts > doc/cli.markdown", "build:doc": "mkdirp doc/ && ts-node --type-check -P automation/tsconfig.json automation/capitanodoc/index.ts > doc/cli.markdown",
"build:standalone": "npm run build:fast && ts-node --type-check -P automation/tsconfig.json automation/run.ts build:standalone", "build:standalone": "ts-node --type-check -P automation/tsconfig.json automation/run.ts build:standalone",
"build:installer": "npm run build:fast && ts-node --type-check -P automation/tsconfig.json automation/run.ts build:installer", "build:installer": "ts-node --type-check -P automation/tsconfig.json automation/run.ts build:installer",
"package": "npm run build:fast && npm run build:standalone && npm run build:installer",
"release": "ts-node --type-check -P automation/tsconfig.json automation/run.ts release", "release": "ts-node --type-check -P automation/tsconfig.json automation/run.ts release",
"pretest": "npm run build", "pretest": "npm run build",
"test": "gulp test", "test": "gulp test",

1
repo.yml Normal file
View File

@ -0,0 +1 @@
type: node-cli