]>
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 'node_modules/jquery/dist/jquery.js',
47 'node_modules/jquery-ui/jquery-ui.js',
48 'node_modules/materialize-css/bin/materialize.js',
49 '<%= appDir %>/themes/_global/js/restoreScroll.js',
50 '<%= appDir %>/themes/material/js/init.js'
52 dest: '<%= buildDir %>/material.js'
56 'node_modules/jquery/dist/jquery.js',
57 'node_modules/jquery-ui/jquery-ui.js',
58 '<%= appDir %>/themes/baggy/js/init.js',
59 '<%= appDir %>/themes/_global/js/restoreScroll.js',
60 '<%= appDir %>/themes/baggy/js/autoClose.js',
61 '<%= appDir %>/themes/baggy/js/autoCompleteTags.js',
62 '<%= appDir %>/themes/baggy/js/closeMessage.js',
63 '<%= appDir %>/themes/baggy/js/popupForm.js',
64 '<%= appDir %>/themes/baggy/js/saveLink.js'
66 dest: '<%= buildDir %>/baggy.js'
70 'node_modules/materialize-css/bin/materialize.css',
71 '<%= appDir %>/themes/material/css/*.css'
73 dest: '<%= buildDir %>/material.css'
77 '<%= appDir %>/themes/baggy/css/*.css'
79 dest: '<%= buildDir %>/baggy.css'
83 '<%= buildDir %>/material.browser.js': ['<%= buildDir %>/material.js'],
84 '<%= buildDir %>/baggy.browser.js': ['<%= buildDir %>/baggy.js']
89 '<%= buildDir %>/themes/material/js/material.min.js':
90 ['<%= buildDir %>/material.browser.js']
98 '<%= buildDir %>/themes/baggy/js/baggy.min.js':
99 ['<%= buildDir %>/baggy.browser.js']
109 cwd: 'node_modules/pickadate/lib',
111 dest: '<%= buildDir %>'
115 cwd: 'node_modules/annotator/pkg',
116 src: 'annotator.min.js',
117 dest: '<%= buildDir %>/themes/_global/js/'
126 cwd: "<%= appDir %>/lib/icomoon-bower/",
128 dest: "<%= buildDir %>/themes/baggy/"
133 cwd: "<%= appDir %>/lib/bower-pt-sans/fonts",
135 dest: "<%= buildDir %>/themes/baggy/fonts/"
144 cwd: "<%= appDir %>/lib/icomoon-bower/",
146 dest: "<%= buildDir %>/themes/material/"
151 cwd: "node_modules/materialize-css/",
153 dest: "<%= buildDir %>/themes/material"
158 cwd: "<%= appDir %>/lib/roboto-fontface/fonts/",
160 dest: "<%= buildDir %>/themes/material/fonts/roboto/"
165 cwd: "<%= appDir %>/lib/material-design-icons/iconfont/",
167 dest: "<%= buildDir %>/themes/material/fonts/"
176 cwd: '<%= appDir %>/themes/_global/',
178 dest: '<%= buildDir %>/themes/_global/'
185 src: [ '<%= buildDir %>/**/*.css' ]
188 src: ['<%= buildDir %>/**/*.js', '<%= buildDir %>/**/*.map']
191 src: ['./<%= buildDir %>']
199 ['symlink:baggyfonts', 'symlink:materialfonts']
204 'Build and install js files',
205 ['clean:js', 'copy:pickerjs', 'concat:jsMaterial', 'concat:jsBaggy', 'browserify', 'uglify']
210 'Build and install everything',
211 ['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'symlink']
216 'Compiles the stylesheets.',
217 ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss']