Skip to content

Commit d772392

Browse files
author
Mark
committed
Add banner to build command
1 parent 6dda9ae commit d772392

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.release-it.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
releaseNotes: null
1212
},
1313
hooks: {
14-
'after:bump': 'npm run build && npm run banner',
14+
'after:bump': 'npm run build',
1515
'before:init': ['npm test']
1616
}
1717
};

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: node_js
22
node_js:
3-
- "10"
3+
- '10'
44
script:
5-
- npm test
6-
- npm run build
7-
- npm run banner
5+
- npm test
6+
- npm run build
87
branches:
9-
only:
10-
- master
8+
only:
9+
- master

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@
6767
"test-server": "karma start karma.conf.js --single-run=false",
6868
"preversion": "npm test",
6969
"minify": "uglifyjs dist/router-component.js -o dist/router-component.min.js",
70-
"build": "rm -rf dist/* && rollup -c && npm run minify",
70+
"build": "rm -rf dist/* && rollup -c && npm run minify && npm run banner",
7171
"banner": "banner-cli dist/*.js",
7272
"start": "rollup -c --watch",
7373
"lint": "eslint '**/*.{js,ts}'",
74+
"lint:format": "prettier --check '**/*'",
7475
"start-server": "http-server ./ -p 3239"
7576
},
7677
"dependencies": {

0 commit comments

Comments
 (0)