Skip to content

Commit

Permalink
chore: Added editorconfig and trying out semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantoine committed Oct 3, 2016
1 parent 5bac4d3 commit 1e7567e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
indent_style = space
indent_size = 2
18 changes: 9 additions & 9 deletions .travis.yml
@@ -1,25 +1,25 @@
sudo: false
language: node_js

cache:
directories:
- node_modules

node_js:
- 6
notifications:
email: false

before_install:
- npm i -g npm@latest
node_js:
- '6'

before_script:
- npm prune

script:
- npm test
- npm prune

after_success:
- ./node_modules/.bin/codecov
- npm run semantic-release

branches:
only:
- master
- /^greenkeeper-.*$/
except:
- /^v\d+\.\d+\.\d+$/
7 changes: 4 additions & 3 deletions package.json
@@ -1,12 +1,12 @@
{
"name": "enzyme-to-json",
"version": "1.1.1",
"description": "convert enzyme wrapper to a format compatible with Jest snapshot",
"main": "build/index.js",
"scripts": {
"build": "babel src -d build",
"prepublish": "npm run build",
"test": "eslint src test && NODE_ENV=test jest --coverage"
"test": "eslint src test && NODE_ENV=test jest --coverage",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"keywords": [
"enzyme",
Expand Down Expand Up @@ -58,7 +58,8 @@
"jest": "^15.1.1",
"react": "^15.3.1",
"react-addons-test-utils": "^15.3.1",
"react-dom": "^15.3.1"
"react-dom": "^15.3.1",
"semantic-release": "^4.3.5"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit 1e7567e

Please sign in to comment.