Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 509a5dc

Browse files
arschmitzsfrisk
authored andcommitted
Build: Run variables as part of build and create dist directory
Fixes gh-107 Closes gh-104
1 parent 6a9565e commit 509a5dc

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

tasks/alias.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function( grunt ) {
22
grunt.registerTask( "default", [ "test" ] );
33
grunt.registerTask( "test", [ "build", "jshint", "jscs", "csslint" ] );
4-
grunt.registerTask( "build", [ "svg", "sass", "csscomb", "cssmin" ] );
4+
grunt.registerTask( "build", [ "variables", "svg", "sass", "csscomb", "cssmin" ] );
55
grunt.registerTask( "perf", [
66
"start-selenium-server",
77
"connect:perf",

tasks/options/perfjankie.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
module.exports = {
1+
module.exports = function( grunt ) {
2+
grunt.loadNpmTasks( "perfjankie" );
3+
4+
return {
25
options: {
36
suite: "perfSlides - Performance Analysis"
47
},
@@ -40,4 +43,5 @@ module.exports = {
4043
]
4144
}
4245
}
43-
}
46+
};
47+
};

tasks/variables.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
module.exports = function( grunt ) {
2-
grunt.registerTask( "buildVariables", function() {
2+
grunt.registerTask( "variables", function() {
33
var jsass = require( "jsass-vars" );
44
var path = require( "path" );
55
var varPath = path.join( process.cwd(), "scss/variables/*" );
6-
6+
var distPath = path.join( process.cwd(), "dist" );
7+
grunt.file.mkdir( distPath );
78
jsass( varPath, {
8-
"dest": path.join( process.cwd(), "dist" ),
9+
"dest": distPath,
910
"name": "chassis"
1011
} );
1112
} )
12-
};
13+
};

0 commit comments

Comments
 (0)