Permalink
Browse files

Add stylus compilation to make [#664]

  • Loading branch information...
1 parent 9e963d7 commit 3897d5fbbf71f21553e9eed5f672bc08d3a8c994 @jbuck committed Apr 12, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 make.js
View
@@ -1,7 +1,8 @@
#!/usr/bin/env node
var JSLINT = './node_modules/jshint/bin/hint',
- RJS = './node_modules/requirejs/bin/r.js';
+ RJS = './node_modules/requirejs/bin/r.js',
+ STYLUS = './node_modules/stylus/bin/stylus';
require('shelljs/make');
@@ -36,8 +37,12 @@ target.build = function() {
rm('-rf', 'dist');
mkdir('-p', 'dist');
+
exec(RJS + ' -o tools/build.js');
exec(RJS + ' -o tools/build.optimized.js');
+
+ exec(STYLUS + ' css');
+ cp('css/*.css', 'dist');
};
target.server = function() {

0 comments on commit 3897d5f

Please sign in to comment.