File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- sudo : false
2
1
language : node_js
3
2
node_js :
4
- - " 0.12"
5
3
- " 4"
6
- - " 5"
4
+ - " 6"
5
+ - " node"
7
6
script : npm run travis
8
7
9
8
before_install :
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-modules-values" ,
3
3
"version" : " 1.2.2" ,
4
- "description" : " PostCSS plugin for CSS Modules to pass arbitrary constants between your module files" ,
4
+ "description" : " PostCSS plugin for CSS Modules to pass arbitrary values between your module files" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
7
7
"lint" : " standard src test" ,
14
14
},
15
15
"repository" : {
16
16
"type" : " git" ,
17
- "url" : " git+https://github.com/css-modules/postcss-modules-constants .git"
17
+ "url" : " git+https://github.com/css-modules/postcss-modules-values .git"
18
18
},
19
19
"keywords" : [
20
20
" css" ,
24
24
"author" : " Glen Maddern" ,
25
25
"license" : " ISC" ,
26
26
"bugs" : {
27
- "url" : " https://github.com/css-modules/postcss-modules-constants /issues"
27
+ "url" : " https://github.com/css-modules/postcss-modules-values /issues"
28
28
},
29
- "homepage" : " https://github.com/css-modules/postcss-modules-constants #readme" ,
29
+ "homepage" : " https://github.com/css-modules/postcss-modules-values #readme" ,
30
30
"devDependencies" : {
31
31
"babel-cli" : " ^6.5.2" ,
32
32
"babel-core" : " ^6.5.2" ,
38
38
},
39
39
"dependencies" : {
40
40
"icss-replace-symbols" : " ^1.0.2" ,
41
- "postcss" : " ^5 .0.14 "
41
+ "postcss" : " ^6 .0.1 "
42
42
},
43
43
"babel" : {
44
44
"presets" : [
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ let options = {}
8
8
let importIndex = 0
9
9
let createImportedName = options && options . createImportedName || ( ( importName /*, path*/ ) => `i__const_${ importName . replace ( / \W / g, '_' ) } _${ importIndex ++ } ` )
10
10
11
- export default ( css , result ) => {
11
+ export default postcss . plugin ( 'postcss-modules-values' , ( ) => ( css , result ) => {
12
12
let importAliases = [ ]
13
13
let definitions = { }
14
14
@@ -97,4 +97,4 @@ export default (css, result) => {
97
97
98
98
css . prepend ( importRule )
99
99
} )
100
- }
100
+ } )
You can’t perform that action at this time.
0 commit comments