##// END OF EJS Templates
styles: build shared styles with vulcanize instead of grunt magic
ergo -
r712:e87a13fe default
parent child Browse files
Show More
@@ -0,0 +1,5 b''
1 <dom-module id="shared-styles">
2 <template>
3 <link rel="stylesheet" href="../../../css/style-polymer.css">
4 </template>
5 </dom-module>
@@ -43,7 +43,6 b' syntax: regexp'
43 ^rhodecode/public/css/style-polymer.css$
43 ^rhodecode/public/css/style-polymer.css$
44 ^rhodecode/public/js/scripts.js$
44 ^rhodecode/public/js/scripts.js$
45 ^rhodecode/public/js/rhodecode-components.html$
45 ^rhodecode/public/js/rhodecode-components.html$
46 ^rhodecode/public/js/src/components/shared-styles.html$
47 ^rhodecode\.db$
46 ^rhodecode\.db$
48 ^rhodecode\.log$
47 ^rhodecode\.log$
49 ^rhodecode_dev\.log$
48 ^rhodecode_dev\.log$
@@ -17,16 +17,6 b' module.exports = function(grunt) {'
17 },
17 },
18 },
18 },
19 concat: {
19 concat: {
20 polymercss:{
21 src: [
22 // Base libraries
23 '<%= dirs.js.src %>/components/shared-styles-prefix.html',
24 '<%= dirs.css %>/style-polymer.css',
25 '<%= dirs.js.src %>/components/shared-styles-suffix.html'
26 ],
27 dest: '<%= dirs.js.dest %>/src/components/shared-styles.html',
28 nonull: true
29 },
30 dist: {
20 dist: {
31 src: [
21 src: [
32 // Base libraries
22 // Base libraries
@@ -144,7 +134,7 b' module.exports = function(grunt) {'
144 watch: {
134 watch: {
145 less: {
135 less: {
146 files: ["<%= dirs.css %>/*.less"],
136 files: ["<%= dirs.css %>/*.less"],
147 tasks: ["less:development", 'less:components', 'concat:polymercss', "vulcanize"]
137 tasks: ["less:development", 'less:components', "vulcanize"]
148 },
138 },
149 js: {
139 js: {
150 files: ["<%= dirs.js.src %>/**/*.js", "<%= dirs.js.src %>/components/*.*"],
140 files: ["<%= dirs.js.src %>/**/*.js", "<%= dirs.js.src %>/components/*.*"],
@@ -183,7 +173,5 b' module.exports = function(grunt) {'
183 grunt.loadNpmTasks('grunt-crisper');
173 grunt.loadNpmTasks('grunt-crisper');
184 grunt.loadNpmTasks('grunt-contrib-copy');
174 grunt.loadNpmTasks('grunt-contrib-copy');
185
175
186 // TODO: johbo: missing bower bits
176 grunt.registerTask('default', ['less:production', 'less:components', 'copy','vulcanize', 'concat:dist']);
187 // grunt.registerTask('default', ['less:production', 'less:components', 'concat:polymercss', 'copy','vulcanize', 'concat:dist']);
188 grunt.registerTask('default', ['less:production', 'concat:dist']);
189 };
177 };
General Comments 0
You need to be logged in to leave comments. Login now