Skip to content

Commit

Permalink
Merge pull request #33 from trustpilot/setup-semantic-release
Browse files Browse the repository at this point in the history
Setup semantic release
  • Loading branch information
halfzebra authored Jul 6, 2017
2 parents e840b0e + dee7fda commit 4d1f127
Show file tree
Hide file tree
Showing 3 changed files with 890 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ before_script:

script:
- npm run ci:travis

after_success:
- npm run semantic-release
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"name": "skift",
"description": "Split testing tool for the Web",
"version": "1.1.0",
"version": "0.0.0-development",
"author": "Trustpilot A/S",
"bugs": {
"url": "https://github.com/trustpilot/skift/issues"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@types/jquery": "^2.0.41"
},
Expand All @@ -14,6 +19,7 @@
"cross-env": "^5.0.1",
"css-loader": "^0.28.4",
"css-to-string-loader": "^0.1.3",
"cz-conventional-changelog": "^2.0.0",
"express": "^4.15.3",
"jasmine-core": "^2.6.3",
"jquery": "^3.2.1",
Expand All @@ -24,6 +30,7 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.3",
"querystringify": "^1.0.0",
"semantic-release": "^6.3.6",
"ts-loader": "^2.2.2",
"tslib": "^1.6.0",
"tslint": "^5.4.0",
Expand All @@ -35,16 +42,18 @@
"main": "dist/skift.js",
"repository": {
"type": "git",
"url": "git+https://github.com/trustpilot/skift.git"
"url": "https://github.com/trustpilot/skift.git"
},
"scripts": {
"build:prod": "cross-env NODE_ENV=production webpack",
"commit": "git-cz",
"build:dev": "cross-env NODE_ENV=development webpack",
"build:prod": "cross-env NODE_ENV=production webpack",
"ci:travis": "npm run lint && npm run test",
"lint": "tslint 'src/**/*.ts' --type-check --project ./",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"start": "node examples/serve.js",
"test": "karma start",
"ts": "tsc",
"start": "node examples/serve.js"
"ts": "tsc"
},
"types": "types/index.d.ts"
}
Loading

0 comments on commit 4d1f127

Please sign in to comment.