]>
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',
7 modulesDir: 'node_modules',
18 require('autoprefixer')({ browsers: 'last 2 versions' }),
22 src: '<%= buildDir %>/material.css',
23 dest: '<%= buildDir %>/themes/material/css/style.min.css',
33 require('autoprefixer')({ browsers: 'last 2 versions' }),
37 src: '<%= buildDir %>/baggy.css',
38 dest: '<%= buildDir %>/themes/baggy/css/style.min.css',
47 'node_modules/materialize-css/bin/materialize.css',
48 '<%= appDir %>/themes/material/css/*.css',
50 dest: '<%= buildDir %>/material.css',
54 '<%= appDir %>/themes/baggy/css/*.css',
56 dest: '<%= buildDir %>/baggy.css',
62 '<%= buildDir %>/material.browser.js': ['<%= appDir %>/themes/material/js/init.js'],
63 '<%= buildDir %>/baggy.browser.js': ['<%= appDir %>/themes/baggy/js/init.js']
71 }], ["browserify-shim", {
75 "materialize": "materialize",
84 "jQuery": "./node_modules/jquery/dist/jquery.js",
85 "jquery.tinydot": "./node_modules/jquery.tinydot/src/jquery.tinydot.js",
86 "jquery.ui": "./node_modules/jquery-ui-browserify/dist/jquery-ui.js"
95 '<%= buildDir %>/themes/material/js/material.min.js':
96 ['<%= buildDir %>/material.browser.js'],
104 '<%= buildDir %>/themes/baggy/js/baggy.min.js':
105 ['<%= buildDir %>/baggy.browser.js'],
115 cwd: '<%= modulesDir %>/pickadate/lib',
117 dest: '<%= buildDir %>',
121 cwd: '<%= modulesDir %>/annotator/pkg',
122 src: 'annotator.min.js',
123 dest: '<%= buildDir %>/themes/_global/js/',
132 cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
133 src: 'IcoMoon-Free.ttf',
134 dest: '<%= buildDir %>/themes/baggy/fonts/',
139 cwd: '<%= modulesDir %>/ptsans-npm-webfont/fonts',
141 dest: '<%= buildDir %>/themes/baggy/fonts/',
146 cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
148 dest: '<%= buildDir %>/themes/baggy/fonts/',
157 cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
158 src: 'IcoMoon-Free.ttf',
159 dest: '<%= buildDir %>/themes/material/fonts',
164 cwd: '<%= modulesDir %>/materialize-css/',
166 dest: '<%= buildDir %>/themes/material',
171 cwd: '<%= modulesDir %>/roboto-fontface/fonts/Roboto',
173 dest: '<%= buildDir %>/themes/material/fonts/',
178 cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
180 dest: '<%= buildDir %>/themes/material/fonts/',
189 cwd: '<%= appDir %>/themes/_global/',
191 dest: '<%= buildDir %>/themes/_global/',
198 src: ['<%= buildDir %>/**/*.css'],
201 src: ['<%= buildDir %>/**/*.js', '<%= buildDir %>/**/*.map'],
204 src: ['./<%= buildDir %>'],
212 ['symlink:baggyfonts', 'symlink:materialfonts']
217 'Build and install js files',
218 ['clean:js', 'copy:pickerjs', 'browserify', 'uglify']
223 'Build and install everything',
224 ['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'symlink']
229 'Compiles the stylesheets.',
230 ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss']