File tree 3 files changed +23
-2
lines changed
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1
1
.gitignore
2
- .editorconfig
2
+ .eslintrc
3
3
4
4
node_modules /
5
5
npm-debug.log
6
6
7
7
* .test.js
8
+ yarn.lock
9
+ release.sh
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ function toSimpleColor(color) {
35
35
}
36
36
37
37
var functionsRegex = new RegExp (
38
+ '(^|[^\\w\\-])' +
38
39
'(' +
39
40
Object . keys ( functions ) . reduce ( function ( prev , curr ) {
40
41
return ( prev ? prev + '|' : '' ) + curr
@@ -60,7 +61,7 @@ function transformColor(string, source) {
60
61
return string
61
62
}
62
63
var index = match . index
63
- var sassFn = match [ 1 ]
64
+ var sassFn = match [ 2 ]
64
65
65
66
// NOTE: regexp search beginning of line of non char symbol before `FUNCTION(`.
66
67
// Offset used for second case.
Original file line number Diff line number Diff line change
1
+ set -e
2
+ echo " Enter release version: "
3
+ read VERSION
4
+
5
+ read -p " Releasing $VERSION - are you sure? (y/n)" -n 1 -r
6
+ echo # (optional) move to a new line
7
+ if [[ $REPLY =~ ^[Yy]$ ]]
8
+ then
9
+ echo " Releasing $VERSION ..."
10
+
11
+ # commit
12
+ npm version $VERSION --message " [release] $VERSION "
13
+
14
+ # publish
15
+ git push origin refs/tags/v$VERSION
16
+ git push origin master
17
+ npm publish
18
+ fi
You can’t perform that action at this time.
0 commit comments