Skip to content

Commit

Permalink
chore: setup semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Mar 28, 2018
1 parent 17d5863 commit a93cae3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
sudo: false
dist: trusty
language: node_js
node_js: 8
node_js: 9
addons:
chrome: stable
script:
- npm run build
- npm run lint
- npm run bundlesize
- npm run test:ci
- npm run build
- npm run bundlesize
after_success:
- bash <(curl -s https://codecov.io/bash)
- npm run travis-deploy-once "npm run semantic-release"
- npm run ghpages
deploy:
provider: pages
Expand All @@ -20,6 +20,4 @@ deploy:
on:
branch: master
notifications:
email:
on_success: never
on_failure: change
email: false
33 changes: 31 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@
"start": "ng serve",
"build": "ts-node build.ts",
"publish": "cd dist/packages-dist && npm publish --access public",
"bundlesize": "npx bundlesize",
"test": "ng test --single-run --browsers=ChromeCI",
"test:watch": "ng test --browsers=ChromeCI",
"test:ci": "ng test --single-run --code-coverage --no-progress --browsers=ChromeCI",
"lint": "ng lint --type-check -t stylish",
"lint:fix": "ng lint --type-check --fix -t stylish",
"e2e": "ng e2e",
"cleanup": "rimraf build dist waste deploy",
"ghpages": "ng build --prod --no-progress --baseHref='/ngx-emoji-mart/'"
"ghpages": "ng build --prod --no-progress --baseHref='/ngx-emoji-mart/'",
"bundlesize": "npx bundlesize",
"commitlint": "commitlint -e $GIT_PARAMS",
"travis-deploy-once": "travis-deploy-once",
"commit": "git-cz",
"semantic-release": "cd dist && semantic-release"
},
"private": true,
"dependencies": {
Expand All @@ -38,6 +42,8 @@
"@angular/cli": "1.7.3",
"@angular/compiler-cli": "5.2.9",
"@angular/language-service": "5.2.9",
"@commitlint/cli": "6.1.3",
"@commitlint/config-conventional": "6.1.3",
"@types/fs-extra": "5.0.1",
"@types/inflection": "1.5.28",
"@types/jasmine": "2.8.6",
Expand All @@ -46,9 +52,12 @@
"@types/rimraf": "2.0.2",
"@types/stringify-object": "3.2.0",
"codelyzer": "4.2.1",
"commitizen": "2.9.6",
"cz-conventional-changelog": "2.1.0",
"emoji-datasource": "4.0.3",
"emojilib": "2.2.12",
"fs-extra": "5.0.0",
"husky": "0.15.0-rc.13",
"inflection": "1.12.0",
"jasmine-core": "2.99.1",
"jasmine-spec-reporter": "4.2.1",
Expand All @@ -61,11 +70,31 @@
"ng-packagr": "2.4.1",
"protractor": "5.3.0",
"rimraf": "2.6.2",
"semantic-release": "15.1.4",
"travis-deploy-once": "4.4.1",
"stringify-object": "3.2.2",
"ts-node": "5.0.1",
"tslint": "5.9.1",
"typescript": "2.6.2"
},
"release": {
"branch": "master"
},
"husky": {
"hooks": {
"commit-msg": "npm run commitlint"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"bundlesize": [
{
"path": "./dist/packages-dist/bundles/ctrl-ngx-emoji-mart.umd.min.js",
Expand Down

0 comments on commit a93cae3

Please sign in to comment.