Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
fix: update semantic-release (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare authored and salte-bot committed Jan 28, 2018
1 parent cb2e4b2 commit b1766aa
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ branches:
- master
- /^greenkeeper/.*$/
script:
- yarn run lint
- yarn run test:sauce
- yarn run test
- yarn start lint
- yarn start test.sauce
- yarn start test
after_success:
- yarn run report-coverage
- yarn run semantic-release
- yarn start report-coverage
- yarn start semantic-release
notifications:
email: change
addons:
Expand Down
34 changes: 34 additions & 0 deletions package-scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
scripts:
lint:
script: eslint src/**/*.js tests/**/*.js
description: Checks for any formatting errors
test:
default:
script: karma start --single-run
description: Executes the Test Suite
tdd:
script: karma start
description: Watches for changes and executes the Test Suite accordingly
sauce:
script: karma start karma.ci.conf.js
description: Executes the Test Suite on Sauce Labs
serve:
default:
script: webpack-dev-server --config webpack.server.config.js
description: Starts a server at http://localhost:8080
build:
default:
script: nps build.dev && nps build.prod
description: Builds both a minified and unminified artifact
dev:
script: webpack --progress --colors -d
description: Builds an unminified artifact
prod:
script: webpack --progress --colors -p
description: Builds a minified artifact
report-coverage:
script: coveralls < coverage/lcov.info
description: Reports code coverage information to Coveralls
semantic-release:
script: semantic-release
description: Publishes the artifact to NPM and GitHub
15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@
"url": "https://github.com/salte-io/salte-angular-hateoas.git"
},
"scripts": {
"start": "webpack-dev-server --config webpack.server.config.js",
"lint": "eslint src/**/*.js tests/**/*.js",
"test": "karma start --single-run",
"test:sauce": "karma start karma.ci.conf.js",
"tdd": "karma start",
"build": "yarn run build:dev && yarn run build:prod",
"build:dev": "webpack --progress --colors -d",
"build:prod": "webpack --progress --colors -p",
"report-coverage": "coveralls < coverage/lcov.info",
"semantic-release": "semantic-release pre && yarn run build && yarn publish && semantic-release post",
"start": "nps",
"prepublishOnly": "yarn start build",
"precommit": "remove-lockfiles"
},
"license": "MIT",
Expand Down Expand Up @@ -57,8 +49,9 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.1",
"mocha": "^5.0.0",
"nps": "5.7.1",
"remove-lockfiles": "^2.0.0",
"semantic-release": "^8.0.0",
"semantic-release": "^12.0.0",
"webpack": "^3.1.0"
},
"config": {
Expand Down

0 comments on commit b1766aa

Please sign in to comment.