File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 43
43
"watch" : " npm run build && SHELL=/bin/bash chokidar 'src/**/*.js' -c 'npm run format && npm run build'" ,
44
44
"format" : " prettier --write --single-quote --trailing-comma es5 'src/**/*.js'" ,
45
45
"format:lint" : " prettier -l --single-quote --trailing-comma es5 'src/**/*.js'" ,
46
- "pages:update " : " cp css/perfect-scrollbar.css dist/perfect-scrollbar.min.js docs/ "
46
+ "release " : " ./release "
47
47
},
48
48
"license" : " MIT"
49
49
}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Check updated version
4
+ if git --no-pager diff --exit-code package.json; then
5
+ echo ' No version update'
6
+ exit 1
7
+ fi
8
+
9
+ # Update lock and rebuild
10
+ npm install
11
+ npm run build
12
+
13
+ # Update gh-pages
14
+ cp css/perfect-scrollbar.css dist/perfect-scrollbar.min.js docs/
15
+
16
+ # Create commit message
17
+ version=$( node -e " console.log(require('./package.json').version)" )
18
+ message=" v$version
19
+
20
+ Please refer to Releases for changelog.
21
+
22
+ https://github.com/utatti/perfect-scrollbar/releases"
23
+
24
+ # Commit, tag, and show detail and file names
25
+ git commit . -m " $message "
26
+ git show
27
+ git tag $version
28
+ git --no-pager show --pretty=format:' %Cred%h %Cgreen%an %Creset%s' --name-status
You can’t perform that action at this time.
0 commit comments