File tree 4 files changed +19
-9
lines changed
4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ npm-debug.*
7
7
.sass-cache
8
8
node_modules
9
9
test.html
10
+ tmp
Original file line number Diff line number Diff line change 2
2
// the user hasn't yet set a config for their project
3
3
@import ' ./src/default-config' ;
4
4
5
+ // Set default feature flags
6
+ $outputTokenCSS : true !default ;
7
+
5
8
@import ' ./src/functions/functions' ;
6
9
@import ' ./src/mixins/mixins' ;
7
10
@import ' ./src/generator/generator' ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gorko" ,
3
- "version" : " 0.1 .0" ,
3
+ "version" : " 0.2 .0" ,
4
4
"description" : " A tiny Sass token class generator." ,
5
5
"main" : " gorko.scss" ,
6
6
"dependencies" : {
7
7
"sass" : " ^1.26.5"
8
8
},
9
+ "scripts" : {
10
+ "test" : " npx sass gorko.scss tmp/gorko.css"
11
+ },
9
12
"devDependencies" : {},
10
13
"repository" : {
11
14
"type" : " git" ,
Original file line number Diff line number Diff line change 1
1
@import ' workers/cycle' ;
2
2
3
- // Run the standard cycle first
4
- @include cycle (' ' , false);
3
+ // Only run if there should be an output
4
+ @if ($outputTokenCSS == true) {
5
+ // Run the standard cycle first
6
+ @include cycle (' ' , false);
5
7
6
- // For each breakpoint, generate a prefix and run the cycle
7
- @each $key , $value in map-get ($gorko-config , ' breakpoints' ) {
8
- $prefix : #{$key + ' \\ :' } ;
9
- $is-breakpoint : true;
8
+ // For each breakpoint, generate a prefix and run the cycle
9
+ @each $key , $value in map-get ($gorko-config , ' breakpoints' ) {
10
+ $prefix : #{$key + ' \\ :' } ;
11
+ $is-breakpoint : true;
10
12
11
- @media screen and #{$value } {
12
- @include cycle ($prefix , $is-breakpoint );
13
+ @media screen and #{$value } {
14
+ @include cycle ($prefix , $is-breakpoint );
15
+ }
13
16
}
14
17
}
You can’t perform that action at this time.
0 commit comments