Skip to content

Commit

Permalink
feat(release): Initial release, add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaine committed Aug 4, 2017
1 parent 86c5e3d commit a22666e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
- '6'
- '4'
before_script:
- npm prune && npm run build
script:
- npm run lint && npm run test:once
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"name": "html-ast-transform",
"version": "0.1.0",
"version": "0.0.0-development",
"description": "Flexible html transformations by mapping/reducing an AST",
"main": "dist/html-ast-transform.js",
"scripts": {
"commit": "git-cz",
"lint": "tslint '{src,_test}/**/*.ts'",
"prebuild": "rimraf dist",
"build": "webpack",
"test": "mocha -r ts-node/register -r babel-register '_test/*.spec.ts' --watch --watch-extensions ts"
"test:once": "mocha -r ts-node/register -r babel-register '_test/*.spec.ts'",
"test": "npm run test:once -- -w --watch-extensions ts",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jspaine/html-ast-transform.git"
"url": "https://github.com/jspaine/html-ast-transform.git"
},
"keywords": [
"html",
Expand All @@ -33,10 +36,13 @@
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.24.1",
"chai": "^4.1.0",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"lodash.trim": "^4.5.1",
"mocha": "^3.4.2",
"parse5": "^3.0.2",
"rimraf": "^2.6.1",
"semantic-release": "^6.3.6",
"ts-loader": "^2.3.1",
"ts-node": "^3.3.0",
"tslint": "^5.5.0",
Expand All @@ -52,5 +58,8 @@
"LICENSE",
"README.md"
],
"typings": "./dist/types/index.d.ts"
"typings": "./dist/types/index.d.ts",
"czConfig": {
"path": "node_modules/cz-conventional-changelog"
}
}

0 comments on commit a22666e

Please sign in to comment.