Skip to content

Commit

Permalink
start on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lasky authored and Shuwen Qian committed Mar 3, 2016
1 parent 73f45d9 commit d086872
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
23 changes: 20 additions & 3 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

var fs = require('fs');
var gulp = require('gulp');
var glob = require('glob');
var gutil = require('gulp-util');
var del = require('del');
var sass = require('gulp-sass');
Expand All @@ -22,6 +23,8 @@ var DOCS = 'build_docs/';
var DIST = 'dist/';
var TEMPLATES = 'grunt/templates/'; //TODO swap to gulp

/** BUILD **/

gulp.task('clean', function() {
return del(BUILD, DOCS, DIST);
});
Expand Down Expand Up @@ -56,12 +59,16 @@ gulp.task('vulcanize', function() {
inlineCss:true,
stripExcludes:true,
excludes: {
imports: ['polymer.html']
imports: ['.*polymer\.html']
}
}))
.pipe(htmlmin({
quotes: true,
empty: true,
spare: true
}))
.pipe(gulp.dest(BUILD));
var lib = gulp.src(BUILD + "strand.html")
.pipe(debug())
.pipe(vulcanize({
inlineScripts:true,
inlineCss:true,
Expand Down Expand Up @@ -93,6 +100,16 @@ gulp.task('vulcanize:prod', function() {
.pipe(gulp.dest(BUILD));
});

/** DOCS **/

gulp.task('docs', function() {
var modules = glob.sync("mm-*", {cwd:SRC});
});

/** LIVE **/

gulp.task('sass:watch', function () {
gulp.watch('./sass/**/*.scss', ['sass']);
});
});

/** DEPLOY **/
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
"grunt-vulcanize": "^1.0.0",
"load-grunt-tasks": "*",
"marked": "^0.3.3",
"time-grunt": "^1.2.1"
},
"dependencies": {
"time-grunt": "^1.2.1",
"del": "^2.0.2",
"gulp": "^3.9.0",
"gulp-debug": "^2.1.2",
Expand All @@ -50,6 +48,7 @@
"gulp-wrap": "^0.11.0",
"hogan.js": "^3.0.2",
"merge-stream": "^1.0.0",
"run-sequence": "^1.1.4"
"run-sequence": "^1.1.4",
"glob": "^5.0.15"
}
}

0 comments on commit d086872

Please sign in to comment.