]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - Gruntfile.js
1 module
.exports = function (grunt
) {
2 require('load-grunt-tasks')(grunt
);
5 appDir: 'app/Resources/static',
6 buildDir: 'web/bundles/wallabagcore',
17 require('autoprefixer')({ browsers: 'last 2 versions' }),
21 src: '<%= buildDir %>/material.css',
22 dest: '<%= buildDir %>/themes/material/css/style.min.css',
32 require('autoprefixer')({ browsers: 'last 2 versions' }),
36 src: '<%= buildDir %>/baggy.css',
37 dest: '<%= buildDir %>/themes/baggy/css/style.min.css',
46 '<%= appDir %>/themes/material/js/init.js',
47 '<%= appDir %>/themes/_global/js/restoreScroll.js',
48 'node_modules/jquery.tinydot/src/jquery.tinydot.js',
50 dest: '<%= buildDir %>/material.js',
54 '<%= appDir %>/themes/baggy/js/init.js',
55 '<%= appDir %>/themes/_global/js/restoreScroll.js',
56 '<%= appDir %>/themes/baggy/js/autoClose.js',
57 '<%= appDir %>/themes/baggy/js/autoCompleteTags.js',
58 '<%= appDir %>/themes/baggy/js/closeMessage.js',
59 '<%= appDir %>/themes/baggy/js/popupForm.js',
60 // Save link is no more used for now
61 // '<%= appDir %>/themes/baggy/js/saveLink.js',
63 dest: '<%= buildDir %>/baggy.js',
67 'node_modules/materialize-css/bin/materialize.css',
68 '<%= appDir %>/themes/material/css/*.css',
70 dest: '<%= buildDir %>/material.css',
74 '<%= appDir %>/themes/baggy/css/*.css',
76 dest: '<%= buildDir %>/baggy.css',
80 '<%= buildDir %>/material.browser.js': ['<%= buildDir %>/material.js'],
81 '<%= buildDir %>/baggy.browser.js': ['<%= buildDir %>/baggy.js'],
86 '<%= buildDir %>/themes/material/js/material.min.js':
87 ['<%= buildDir %>/material.browser.js'],
95 '<%= buildDir %>/themes/baggy/js/baggy.min.js':
96 ['<%= buildDir %>/baggy.browser.js'],
106 cwd: 'node_modules/pickadate/lib',
108 dest: '<%= buildDir %>',
112 cwd: 'node_modules/annotator/pkg',
113 src: 'annotator.min.js',
114 dest: '<%= buildDir %>/themes/_global/js/',
123 cwd: '<%= appDir %>/lib/icomoon-bower/',
125 dest: '<%= buildDir %>/themes/baggy/',
130 cwd: '<%= appDir %>/lib/bower-pt-sans/fonts',
132 dest: '<%= buildDir %>/themes/baggy/fonts/',
141 cwd: '<%= appDir %>/lib/icomoon-bower/',
143 dest: '<%= buildDir %>/themes/material/',
148 cwd: 'node_modules/materialize-css/',
150 dest: '<%= buildDir %>/themes/material',
155 cwd: '<%= appDir %>/lib/roboto-fontface/fonts/',
157 dest: '<%= buildDir %>/themes/material/fonts/roboto/',
162 cwd: '<%= appDir %>/lib/material-design-icons-iconfont/dist/fonts/',
164 dest: '<%= buildDir %>/themes/material/fonts/',
173 cwd: '<%= appDir %>/themes/_global/',
175 dest: '<%= buildDir %>/themes/_global/',
182 src: ['<%= buildDir %>/**/*.css'],
185 src: ['<%= buildDir %>/**/*.js', '<%= buildDir %>/**/*.map'],
188 src: ['./<%= buildDir %>'],
196 ['symlink:baggyfonts', 'symlink:materialfonts']
201 'Build and install js files',
202 ['clean:js', 'copy:pickerjs', 'concat:jsMaterial', 'concat:jsBaggy', 'browserify', 'uglify']
207 'Build and install everything',
208 ['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'symlink']
213 'Compiles the stylesheets.',
214 ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss']