Skip to content

Commit

Permalink
chore: configure commitizen and semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurxavierx committed Sep 12, 2016
1 parent 4f42205 commit 123c850
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
sudo: false
env:
- CXX=g++-4.8
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '4'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
before_install:
- npm i -g npm@^2.0.0
- npm install -g bower
- npm install
- bower install
before_script:
- npm prune
script:
- npm run -s build
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
45 changes: 45 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "purescript-carpenter",
"author": "Arthur Xavier <[email protected]> (http://arthur-xavier.github.io/)",
"description": "Simple architecture for purescript-react inspired by Elm and Thermite",
"scripts": {
"build": "psa \"src/**/*.purs\" \"bower_components/purescript-*/src/**/*.purs\" --censor-lib --strict",
"commit": "./node_modules/.bin/git-cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"directories": {
"doc": "docs",
"test": "test"
},
"repository": {
"type": "git",
"url": "https://github.com/arthur-xavier/purescript-carpenter.git"
},
"keywords": [
"purescript",
"react",
"elm",
"redux",
"state"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/arthur-xavier/purescript-carpenter/issues"
},
"homepage": "https://github.com/arthur-xavier/purescript-carpenter#readme",
"devDependencies": {
"commitizen": "^2.8.6",
"cz-conventional-changelog": "^1.2.0",
"purescript": "^0.9.3",
"purescript-psa": "^0.3.9",
"semantic-release": "^4.3.5"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
},
"ghooks": {
"pre-commit": "npm run build"
}
}
}

0 comments on commit 123c850

Please sign in to comment.