]>
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',
49 dest: '<%= buildDir %>/material.js',
53 '<%= appDir %>/themes/baggy/js/init.js',
54 '<%= appDir %>/themes/_global/js/restoreScroll.js',
55 '<%= appDir %>/themes/baggy/js/autoClose.js',
56 '<%= appDir %>/themes/baggy/js/autoCompleteTags.js',
57 '<%= appDir %>/themes/baggy/js/closeMessage.js',
58 '<%= appDir %>/themes/baggy/js/popupForm.js',
59 // Save link is no more used for now
60 // '<%= appDir %>/themes/baggy/js/saveLink.js',
62 dest: '<%= buildDir %>/baggy.js',
66 'node_modules/materialize-css/bin/materialize.css',
67 '<%= appDir %>/themes/material/css/*.css',
69 dest: '<%= buildDir %>/material.css',
73 '<%= appDir %>/themes/baggy/css/*.css',
75 dest: '<%= buildDir %>/baggy.css',
79 '<%= buildDir %>/material.browser.js': ['<%= buildDir %>/material.js'],
80 '<%= buildDir %>/baggy.browser.js': ['<%= buildDir %>/baggy.js'],
85 '<%= buildDir %>/themes/material/js/material.min.js':
86 ['<%= buildDir %>/material.browser.js'],
94 '<%= buildDir %>/themes/baggy/js/baggy.min.js':
95 ['<%= buildDir %>/baggy.browser.js'],
105 cwd: 'node_modules/pickadate/lib',
107 dest: '<%= buildDir %>',
111 cwd: 'node_modules/annotator/pkg',
112 src: 'annotator.min.js',
113 dest: '<%= buildDir %>/themes/_global/js/',
122 cwd: '<%= appDir %>/lib/icomoon-bower/',
124 dest: '<%= buildDir %>/themes/baggy/',
129 cwd: '<%= appDir %>/lib/bower-pt-sans/fonts',
131 dest: '<%= buildDir %>/themes/baggy/fonts/',
140 cwd: '<%= appDir %>/lib/icomoon-bower/',
142 dest: '<%= buildDir %>/themes/material/',
147 cwd: 'node_modules/materialize-css/',
149 dest: '<%= buildDir %>/themes/material',
154 cwd: '<%= appDir %>/lib/roboto-fontface/fonts/',
156 dest: '<%= buildDir %>/themes/material/fonts/roboto/',
161 cwd: '<%= appDir %>/lib/material-design-icons-iconfont/dist/fonts/',
163 dest: '<%= buildDir %>/themes/material/fonts/',
172 cwd: '<%= appDir %>/themes/_global/',
174 dest: '<%= buildDir %>/themes/_global/',
181 src: ['<%= buildDir %>/**/*.css'],
184 src: ['<%= buildDir %>/**/*.js', '<%= buildDir %>/**/*.map'],
187 src: ['./<%= buildDir %>'],
195 ['symlink:baggyfonts', 'symlink:materialfonts']
200 'Build and install js files',
201 ['clean:js', 'copy:pickerjs', 'concat:jsMaterial', 'concat:jsBaggy', 'browserify', 'uglify']
206 'Build and install everything',
207 ['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'symlink']
212 'Compiles the stylesheets.',
213 ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss']