File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- sudo : false
21language : node_js
32node_js :
4- - " 0.12"
53 - " 4"
6- - " 5"
4+ - " 6"
5+ - " node"
76script : npm run travis
87
98before_install :
Original file line number Diff line number Diff line change 11{
22 "name" : " postcss-modules-values" ,
33 "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" ,
55 "main" : " lib/index.js" ,
66 "scripts" : {
77 "lint" : " standard src test" ,
1414 },
1515 "repository" : {
1616 "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"
1818 },
1919 "keywords" : [
2020 " css" ,
2424 "author" : " Glen Maddern" ,
2525 "license" : " ISC" ,
2626 "bugs" : {
27- "url" : " https://github.com/css-modules/postcss-modules-constants /issues"
27+ "url" : " https://github.com/css-modules/postcss-modules-values /issues"
2828 },
29- "homepage" : " https://github.com/css-modules/postcss-modules-constants #readme" ,
29+ "homepage" : " https://github.com/css-modules/postcss-modules-values #readme" ,
3030 "devDependencies" : {
3131 "babel-cli" : " ^6.5.2" ,
3232 "babel-core" : " ^6.5.2" ,
3838 },
3939 "dependencies" : {
4040 "icss-replace-symbols" : " ^1.0.2" ,
41- "postcss" : " ^5 .0.14 "
41+ "postcss" : " ^6 .0.1 "
4242 },
4343 "babel" : {
4444 "presets" : [
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ let options = {}
88let importIndex = 0
99let createImportedName = options && options . createImportedName || ( ( importName /*, path*/ ) => `i__const_${ importName . replace ( / \W / g, '_' ) } _${ importIndex ++ } ` )
1010
11- export default ( css , result ) => {
11+ export default postcss . plugin ( 'postcss-modules-values' , ( ) => ( css , result ) => {
1212 let importAliases = [ ]
1313 let definitions = { }
1414
@@ -97,4 +97,4 @@ export default (css, result) => {
9797
9898 css . prepend ( importRule )
9999 } )
100- }
100+ } )
You can’t perform that action at this time.
0 commit comments