Skip to content

Commit

Permalink
exclude polymer.html from strand lib to utilize bower dependency
Browse files Browse the repository at this point in the history
update docs build with new dependencies
  • Loading branch information
Derek Olson committed Apr 22, 2015
1 parent 0aa3472 commit f51bc37
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1"/>
<title>Strand Web Components</title>
<script language="javascript" src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
<link rel="import" href="strand.html"/>
<link rel="import" href="bower_components/strand/dist/strand.html"/>
<script language="javascript" src="//cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/ace.js"></script>
<script language="javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.js"></script>
<script language="javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
Expand Down
5 changes: 5 additions & 0 deletions grunt/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ module.exports = function(grunt) {
}]
},
dist:{
options:{
excludes: {
imports: ['polymer.html']
}
},
files: {
'<%= build_dir %>/<%= pkg.name %>.html' : '<%= build_dir %>/<%= pkg.name %>.html'
}
Expand Down
6 changes: 3 additions & 3 deletions grunt/tasks/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ module.exports = function(grunt) {
grunt.config('copy.docs', {
files: [
{ expand: true, cwd: 'docs', src: 'images/**', dest: '<%= build_dir %>/docs/'},
{ src: 'bower_components/webcomponentsjs/webcomponents.min.js', dest: '<%= build_dir %>/docs/bower_components/webcomponentsjs/webcomponents.min.js'},
{ src: 'LICENSE.txt', dest: '<%= build_dir %>/docs/LICENSE.txt' },
{ src: '<%= build_dir %>/<%= pkg.name %>.html', dest: '<%= build_dir %>/docs/<%= pkg.name %>.html' }
{ expand: true, src: ['bower_components/webcomponentsjs/webcomponents.min.js', 'bower_components/polymer/polymer.html'], dest: '<%= build_dir %>/docs/'},
{ src: 'LICENSE.txt', dest: '<%= build_dir %>/docs/' },
{ src: '<%= dist_dir %>/<%= pkg.name %>.html', dest: '<%= build_dir %>/docs/bower_components/strand/dist/<%= pkg.name %>.html' }
]
});

Expand Down

0 comments on commit f51bc37

Please sign in to comment.