Skip to content

Commit

Permalink
Merge remote-tracking branch 'justin/FLUID-6071'
Browse files Browse the repository at this point in the history
* justin/FLUID-6071:
  FLUID-6071: Removing the empty stylus directory
  FLUID-6071: Fix stylus generation for builds
  • Loading branch information
cindyli committed Nov 15, 2016
2 parents 828f034 + 7a1987e commit 6effcf7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = function (grunt) {
build: "build",
products: "products",
stylus: "src/framework/preferences/css/*.css",
stylusDist: "dist/assets/**/stylus", // removes the empty stylus directory from the distribution
ciArtifacts: ["*.tap"],
dist: "dist",
postBuild: {
Expand Down Expand Up @@ -323,7 +324,7 @@ module.exports = function (grunt) {
var tasks = [
"clean",
"lint",
"stylus:dist",
"stylus:compile",
"modulefiles:" + target,
"setPostBuildCleanUp:" + target,
"pathMap:" + target,
Expand Down Expand Up @@ -354,7 +355,7 @@ module.exports = function (grunt) {
var concatTask = options.compress ? "uglify:" : "concat:";
var tasks = [
"cleanForDist",
"stylus",
"stylus:dist",
"modulefiles:" + options.target,
"pathMap:" + options.target,
"copy:" + options.target,
Expand All @@ -376,7 +377,7 @@ module.exports = function (grunt) {
grunt.task.run(tasks);
});

grunt.registerTask("cleanForDist", ["clean:build", "clean:products", "clean:stylus", "clean:ciArtifacts"]);
grunt.registerTask("cleanForDist", ["clean:build", "clean:products", "clean:stylus", "clean:stylusDist", "clean:ciArtifacts"]);
grunt.registerTask("buildStylus", ["clean:stylus", "stylus:compile"]);

grunt.registerTask("default", ["build:all"]);
Expand Down

0 comments on commit 6effcf7

Please sign in to comment.