Skip to content

Commit

Permalink
chore(build): Change the way to release linq.ts 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
kutyel committed Dec 12, 2016
1 parent fef9287 commit 839a08c
Show file tree
Hide file tree
Showing 3 changed files with 350 additions and 31 deletions.
28 changes: 20 additions & 8 deletions .travis.yml
@@ -1,11 +1,23 @@
language: node_js
branches:
only:
- master
cache:
diretories:
- node_modules
notifications:
email: false
node_js:
- '6.3'
- '6.2'
- '6.1'
- '6'
before_install:
- 'npm install -g npm@latest'
- 'npm install -g coveralls@2'
- 6.3
- 6.2
- 6.1
- 6
before_script:
- npm prune
script:
- npm run cover
- npm run check-coverage
- npm run build
after_success:
- 'nyc report --reporter=text-lcov | coveralls'
- npm run report-coverage
- npm run semantic-release
24 changes: 22 additions & 2 deletions package.json
Expand Up @@ -8,11 +8,16 @@
},
"scripts": {
"start": "tsc -w",
"commit": "git-cz",
"pretest": "tsc",
"test": "nyc ava",
"coverage": "nyc report --reporter=html",
"cover": "nyc --reporter=lcov npm t",
"validate": "npm run cover && npm run check-coverage",
"build": "tsc linq.ts -t es3 -m commonjs -d --outDir dist",
"docs": "typedoc --out ../docs/ linq.ts -m commonjs -t ES6",
"build": "tsc linq.ts -t es3 -m commonjs -d --outDir dist"
"report-coverage": "nyc report --reporter=text-lcov | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100"
},
"repository": {
"type": "git",
Expand All @@ -22,6 +27,10 @@
"linq",
"typescript"
],
"files": [
"dist",
"readme.md"
],
"author": {
"name": "Flavio Corpa",
"email": "flaviocorpa@gmail.com",
Expand All @@ -38,9 +47,20 @@
},
"devDependencies": {
"ava": "^0.17.0",
"commitizen": "^2.8.6",
"coveralls": "^2.11.14",
"cz-conventional-changelog": "^1.2.0",
"ghooks": "^1.3.2",
"nyc": "^10.0.0",
"tslint": "^4.0.2",
"typedoc": "^0.5.0"
},
"config": {
"ghooks": {
"pre-commit": "npm run validate"
},
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 839a08c

Please sign in to comment.