Permalink
Browse files

feat(build): Ignore compiled sass/less files from git (#1592)

* Compile sass/less files to appropriate directories

* Include compiled sass/less files in asset

* Ignore compiled sass/less files
  • Loading branch information...
1 parent aed6235 commit d47dd4110806874f94d6ffb165ce88bfe4487cfa @shanavas786 shanavas786 committed with mleanos Oct 29, 2016
Showing with 6 additions and 7 deletions.
  1. +5 −0 .gitignore
  2. +1 −1 config/assets/default.js
  3. +0 −6 gulpfile.js
View
@@ -26,6 +26,11 @@ config/env/local.js
config/env/local-*.js
*.pem
+# Compiled less and sass files
+# ============================
+modules/*/client/scss/*.css
+modules/*/client/less/*.css
+
# Ignoring MEAN.JS's gh-pages branch for documenation
_site/
@@ -31,7 +31,7 @@ module.exports = {
tests: ['public/lib/angular-mocks/angular-mocks.js']
},
css: [
- 'modules/*/client/css/*.css'
+ 'modules/*/client/{css,less,scss}/*.css'
],
less: [
'modules/*/client/less/*.less'
View
@@ -169,9 +169,6 @@ gulp.task('sass', function () {
return gulp.src(defaultAssets.client.sass)
.pipe(plugins.sass())
.pipe(plugins.autoprefixer())
- .pipe(plugins.rename(function (file) {
- file.dirname = file.dirname.replace(path.sep + 'scss', path.sep + 'css');
- }))
.pipe(gulp.dest('./modules/'));
});
@@ -180,9 +177,6 @@ gulp.task('less', function () {
return gulp.src(defaultAssets.client.less)
.pipe(plugins.less())
.pipe(plugins.autoprefixer())
- .pipe(plugins.rename(function (file) {
- file.dirname = file.dirname.replace(path.sep + 'less', path.sep + 'css');
- }))
.pipe(gulp.dest('./modules/'));
});

0 comments on commit d47dd41

Please sign in to comment.