Skip to content

Commit 7f0d950

Browse files
author
Mark
committed
Use release-it config + simplify build command
1 parent 9a57b6d commit 7f0d950

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.release-it.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
git: {
3+
commitMessage: '${version}',
4+
requireCleanWorkingDir: false,
5+
requireUpstream: false,
6+
tagName: 'v${version}',
7+
},
8+
github: {
9+
release: true,
10+
releaseName: '${version}',
11+
releaseNotes: null,
12+
},
13+
hooks: {
14+
'before:init': ['npm test'],
15+
'after:bump': 'npm run build && npm run banner',
16+
},
17+
};

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ node_js:
33
- '10'
44
script:
55
- npm test
6-
- npm run build-dist
6+
- npm run build
77
- npm run banner
88
branches:
99
only:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"test-server": "karma start karma.conf.js --single-run=false",
1010
"preversion": "npm test",
1111
"minify": "uglifyjs dist/wait-for-element-transition.js -o dist/wait-for-element-transition.min.js",
12-
"build-dist": "rm -rf dist/* && rollup -c && npm run minify",
12+
"build": "rm -rf dist/* && rollup -c && npm run minify",
1313
"banner": "banner-cli dist/*.js",
14-
"version": "npm run build-dist && npm run banner && git add -A dist",
14+
"version": "npm run build && npm run banner && git add -A dist",
1515
"postversion": "git push && git push --tags",
1616
"start": "rollup -c --watch",
1717
"lint": "npm run lint:scripts && npm run lint:format",

0 commit comments

Comments
 (0)