File tree Expand file tree Collapse file tree 4 files changed +40
-1263
lines changed Expand file tree Collapse file tree 4 files changed +40
-1263
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - " 4"
4
3
- " 6"
5
4
- " node"
6
5
Original file line number Diff line number Diff line change @@ -31,11 +31,27 @@ into:
31
31
composes: className [... className] from "path/to/file.css";
32
32
```
33
33
34
+ ## Options
35
+
36
+ - ` failOnWrongOrder ` ` bool ` generates exception for unpredictable imports order.
37
+
38
+ ``` css
39
+ .aa {
40
+ composes : b from ' ./b.css' ;
41
+ composes : c from ' ./c.css' ;
42
+ }
43
+
44
+ .bb {
45
+ /* "b.css" should be before "c.css" in this case */
46
+ composes : c from ' ./c.css' ;
47
+ composes : b from ' ./b.css' ;
48
+ }
49
+ ```
50
+
34
51
## Building
35
52
36
53
```
37
54
npm install
38
- npm build
39
55
npm test
40
56
```
41
57
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-modules-extract-imports" ,
3
- "version" : " 1.2.1 " ,
3
+ "version" : " 2.0.0 " ,
4
4
"description" : " A CSS Modules transform to extract local aliases for inline imports" ,
5
- "main" : " lib/index.js" ,
5
+ "main" : " src/index.js" ,
6
+ "engines" : {
7
+ "node" : " >= 6"
8
+ },
6
9
"files" : [
7
- " lib "
10
+ " src "
8
11
],
9
12
"scripts" : {
10
- "build" : " babel --out-dir lib src" ,
11
13
"test" : " jest --coverage" ,
12
14
"precommit" : " lint-staged" ,
13
- "prepublish" : " yarn run test && yarn run build "
15
+ "prepublish" : " yarn run test"
14
16
},
15
17
"lint-staged" : {
16
18
"*.js" : [
17
19
" prettier --single-quote --no-semi --write" ,
18
20
" git add"
19
21
]
20
22
},
21
- "babel" : {
22
- "presets" : [
23
- [
24
- " env" ,
25
- {
26
- "targets" : {
27
- "node" : 4
28
- }
29
- }
30
- ]
31
- ]
32
- },
33
23
"repository" : {
34
24
"type" : " git" ,
35
25
"url" : " https://github.com/css-modules/postcss-modules-extract-imports.git"
49
39
"postcss" : " ^7.0.5"
50
40
},
51
41
"devDependencies" : {
52
- "babel-cli" : " ^6.24.1" ,
53
- "babel-eslint" : " ^7.2.2" ,
54
- "babel-jest" : " ^20.0.3" ,
55
- "babel-preset-env" : " ^1.5.1" ,
56
42
"codecov.io" : " ^0.1.2" ,
57
43
"coveralls" : " ^2.11.2" ,
58
44
"husky" : " ^0.13.3" ,
You can’t perform that action at this time.
0 commit comments