Skip to content

Commit

Permalink
fix vulcanize task and add htmlmin task with test strand 1.0 elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Olson committed Jul 15, 2015
1 parent d7b749c commit 1f48bee
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
24 changes: 18 additions & 6 deletions grunt/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ module.exports = function(grunt) {

vulcanize: {
options: {
inline:true,
strip:true,
'strip-excludes':false,
inlineScripts:true,
inlineCss:true,
stripExcludes:false
},
shared: {
files: [{
Expand Down Expand Up @@ -163,6 +163,20 @@ module.exports = function(grunt) {
}
},

htmlmin: {
dist: {
options: {
customAttrAssign: /\$=/,
minifyJS: true,
removeComments: true,
collapseWhitespace: true
},
files: {
'<%= build_dir %>/<%= pkg.name %>.html' : '<%= build_dir %>/<%= pkg.name %>.html'
}
}
},

replace: {
bower: {
src: ['<%= build_dir %>/**/*.html'],
Expand Down Expand Up @@ -262,10 +276,8 @@ module.exports = function(grunt) {
'copy:build',
'sass:dist',
'cssUrlEmbed',
'hogan_static:lib',
'vulcanize:shared',
'vulcanize:modules',
'vulcanize:dist',
'htmlmin:dist',
'usebanner:dist'
]);
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
"grunt-contrib-clean": "*",
"grunt-contrib-connect": "*",
"grunt-contrib-copy": "*",
"grunt-contrib-htmlmin": "^0.4.0",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-watch": "*",
"grunt-css-url-embed": "*",
"grunt-html-minify": "^0.3.1",
"grunt-gh-pages": "^0.10.0",
"grunt-github-changes": "0.0.6",
"grunt-hogan-static": "*",
"grunt-mocha-phantomjs": "*",
"grunt-sass": "*",
"grunt-shell": "^1.1.2",
"grunt-text-replace": "^0.4.0",
"grunt-vulcanize":"^1.0.0",
"grunt-vulcanize": "^1.0.0",
"load-grunt-tasks": "*"
},
"dependencies": {
Expand Down
5 changes: 5 additions & 0 deletions src/strand.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<link rel="import" href="mm-header/mm-header.html">
<link rel="import" href="mm-icon/mm-icon.html">
<link rel="import" href="mm-button/mm-button.html">
<link rel="import" href="mm-action/mm-action.html">
<link rel="import" href="mm-checkbox/mm-checkbox.html">

0 comments on commit 1f48bee

Please sign in to comment.