File tree 4 files changed +24
-28
lines changed
4 files changed +24
-28
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
2
coverage
3
+ .nyc_output
4
+ package-lock.json
Original file line number Diff line number Diff line change 1
- sudo : false
2
1
language : node_js
2
+
3
3
node_js :
4
- - " 0.10"
5
- - " 0.12"
6
- - " iojs"
7
- script : npm run travis
4
+ - 10
5
+ - 12
6
+ - 13
8
7
9
- before_install :
10
- - ' [ "${TRAVIS_NODE_VERSION}" != "0.10" ] || npm install -g npm'
8
+ script : npm run cover
11
9
12
10
after_success :
13
- - cat ./coverage/lcov.info | node_modules/.bin/ coveralls --verbose
14
- - cat ./coverage/coverage.json | node_modules/ codecov.io/bin/codecov.io.js
15
- - rm -rf ./coverage
11
+ - npm run report: coveralls
12
+ - npm run report: codecov
13
+
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
- var stringify ;
4
-
5
3
var regexpu = require ( "regexpu-core" ) ;
6
4
var identifierEscapeRegexp = new RegExp (
7
- regexpu ( "(^[^A-Za-z_\\-\\u{00a0}-\\u{10ffff}]|^\\-\\ -|[^A-Za-z_0-9\\-\\u{00a0}-\\u{10ffff}])" , "ug" ) ,
5
+ regexpu ( "(^[^A-Za-z_\\-\\u{00a0}-\\u{10ffff}]|^- -|[^A-Za-z_0-9\\-\\u{00a0}-\\u{10ffff}])" , "ug" ) ,
8
6
"g"
9
7
) ;
10
8
@@ -53,7 +51,7 @@ function stringifyWithoutBeforeAfter(tree) {
53
51
}
54
52
55
53
56
- stringify = function stringify ( tree ) {
54
+ function stringify ( tree ) {
57
55
var str = stringifyWithoutBeforeAfter ( tree ) ;
58
56
if ( tree . before ) {
59
57
str = tree . before + str ;
Original file line number Diff line number Diff line change 4
4
"description" : " Parses and stringifies CSS selectors" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
7
- "lint" : " eslint lib " ,
7
+ "lint" : " eslint . " ,
8
8
"pretest" : " npm run lint" ,
9
9
"test" : " mocha" ,
10
- "autotest" : " chokidar lib test -c 'npm test'" ,
11
- "precover" : " npm run lint" ,
12
- "cover" : " istanbul cover node_modules/mocha/bin/_mocha" ,
13
- "travis" : " npm run cover -- --report lcovonly" ,
10
+ "cover" : " nyc npm test" ,
11
+ "report:coveralls" : " nyc report --reporter=text-lcov | coveralls" ,
12
+ "report:codecov" : " nyc report --reporter=text-lcov | codecov --pipe" ,
14
13
"publish-patch" : " npm test && npm version patch && git push && git push --tags && npm publish"
15
14
},
16
15
"repository" : {
31
30
},
32
31
"homepage" : " https://github.com/css-modules/css-selector-tokenizer" ,
33
32
"dependencies" : {
34
- "cssesc" : " ^0.1 .0" ,
35
- "fastparse" : " ^1.1.1 " ,
36
- "regexpu-core" : " ^1.0 .0"
33
+ "cssesc" : " ^3.0 .0" ,
34
+ "fastparse" : " ^1.1.2 " ,
35
+ "regexpu-core" : " ^4.6 .0"
37
36
},
38
37
"devDependencies" : {
39
- "chokidar-cli" : " ^0.2.1" ,
40
- "codecov.io" : " ^0.1.2" ,
41
- "coveralls" : " ^2.11.2" ,
42
- "eslint" : " ^0.21.2" ,
43
- "istanbul" : " ^0.3.14" ,
44
- "mocha" : " ^2.2.5"
38
+ "codecov" : " ^3.6.5" ,
39
+ "coveralls" : " ^3.0.9" ,
40
+ "eslint" : " ^6.8.0" ,
41
+ "mocha" : " ^7.0.1" ,
42
+ "nyc" : " ^15.0.0"
45
43
},
46
44
"directories" : {
47
45
"test" : " test"
You can’t perform that action at this time.
0 commit comments