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

Build: Must run variables task as part of the build #104

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Build: create dist directory if not exists
  • Loading branch information
Rohit Mulange authored and arschmitz committed Jul 30, 2015
commit 94c9b2308124e9575a21eb18faf394b8305cae3a
7 changes: 4 additions & 3 deletions tasks/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ module.exports = function( grunt ) {
var jsass = require( "jsass-vars" );
var path = require( "path" );
var varPath = path.join( process.cwd(), "scss/variables/*" );

var distPath = path.join( process.cwd(), "dist" );
grunt.file.mkdir( distPath );
jsass( varPath, {
"dest": path.join( process.cwd(), "dist" ),
"dest": distPath,
"name": "chassis"
} );
} )
};
};