Skip to content
This repository was archived by the owner on Oct 15, 2019. It is now read-only.

Commit cfb8876

Browse files
chore: set up semantic-release (#2)
* chore: set up semantic-release * chore: ignore semantic-release in flow * chore: include transform-es2015-parameters plugin since we use it directly npm 2.x puts it inside the babel-preset-es2015 package
1 parent 8445a1c commit cfb8876

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

.flowconfig

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
[ignore]
2+
<PROJECT_ROOT>/node_modules/semantic-release/.*
3+
<PROJECT_ROOT>/node_modules/config-chain/.*
4+
<PROJECT_ROOT>/node_modules/npmconf/.*
25

36
[include]
47

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- '6'
10+
- '4'
11+
before_install:
12+
- npm i -g npm@^2.0.0
13+
before_script:
14+
- npm prune
15+
after_success:
16+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
17+
- python travis_after_all.py
18+
- export $(cat .to_export_back) &> /dev/null
19+
- npm run semantic-release
20+
branches:
21+
except:
22+
- /^v\d+\.\d+\.\d+$/

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "babelrc-rollup",
3-
"version": "1.2.0",
43
"description": "Builds a babel configuration for rollup-plugin-babel by reading .babelrc.",
54
"main": "dist/babelrc-rollup.js",
65
"jsnext:main": "dist/babelrc-rollup.mjs",
@@ -9,11 +8,12 @@
98
"build": "rollup -c",
109
"test": "npm run flow && npm run bootstrap",
1110
"bootstrap": "./script/bootstrap",
12-
"prepublish": "npm test"
11+
"prepublish": "npm test",
12+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1313
},
1414
"repository": {
1515
"type": "git",
16-
"url": "git+https://github.com/eventualbuddha/babelrc-rollup.git"
16+
"url": "https://github.com/eventualbuddha/babelrc-rollup.git"
1717
},
1818
"keywords": [
1919
"babel",
@@ -31,12 +31,14 @@
3131
"devDependencies": {
3232
"babel-cli": "^6.10.1",
3333
"babel-plugin-syntax-flow": "^6.8.0",
34+
"babel-plugin-transform-es2015-parameters": "^6.9.0",
3435
"babel-plugin-transform-flow-strip-types": "^6.8.0",
3536
"babel-preset-es2015": "^6.9.0",
3637
"babel-preset-es2015-rollup": "^1.1.1",
3738
"flow-bin": "^0.28.0",
3839
"rollup": "^0.33.0",
39-
"rollup-plugin-babel": "^2.6.1"
40+
"rollup-plugin-babel": "^2.6.1",
41+
"semantic-release": "^4.3.5"
4042
},
4143
"publishConfig": {
4244
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
 (0)