-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a97cfc
commit fa1e7d2
Showing
11 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/postcss-composes/.postcssrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"modules": true | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/composes-1.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.composes1 { | ||
composes: test from './mixins.css'; | ||
border: 3px solid orange; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/composes-2.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.composes2 { | ||
composes: test from './mixins.css'; | ||
border: 3px solid red; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/composes-3.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.composes3 { | ||
composes: test from './mixins.scss'; | ||
border: 3px solid brown; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/composes-4.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.composes4 { | ||
composes: test from '~mixins.css'; | ||
border: 3px solid black; | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/core/integration-tests/test/integration/postcss-composes/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var map1 = require('./composes-1.css'); | ||
var map2 = require('./composes-2.css'); | ||
|
||
module.exports = function () { | ||
return Object.assign({}, map1, map2); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/postcss-composes/index2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var map3 = require('./composes-3.css'); | ||
|
||
module.exports = function () { | ||
return map3; | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/postcss-composes/index3.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var map4 = require('./composes-4.css'); | ||
|
||
module.exports = function () { | ||
return map4; | ||
}; |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/mixins.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.test { | ||
height: 100px; | ||
width: 100px; | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/core/integration-tests/test/integration/postcss-composes/mixins.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$test: 200px; | ||
|
||
.test { | ||
height: $test; | ||
width: $test; | ||
} |