]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - Gruntfile.js
bd0d6dda40092f6c99013689f65d676cff379e8b
1 module
.exports = function (grunt
) {
2 require('load-grunt-tasks')(grunt
);
5 appDir: 'app/Resources/static',
6 buildDir: 'app/Resources/build',
7 modulesDir: 'node_modules',
8 releaseDir: 'web/bundles/wallabagcore',
19 require('autoprefixer')({ browsers: 'last 2 versions' }),
23 src: '<%= buildDir %>/material.css',
24 dest: '<%= releaseDir %>/themes/material/css/style.min.css',
34 require('autoprefixer')({ browsers: 'last 2 versions' }),
38 src: '<%= buildDir %>/baggy.css',
39 dest: '<%= releaseDir %>/themes/baggy/css/style.min.css',
48 'node_modules/materialize-css/bin/materialize.css',
49 '<%= appDir %>/themes/material/css/*.css',
51 dest: '<%= buildDir %>/material.css',
55 '<%= appDir %>/themes/baggy/css/*.css',
57 dest: '<%= buildDir %>/baggy.css',
63 '<%= buildDir %>/material.browser.js': ['<%= appDir %>/themes/material/js/init.js'],
64 '<%= buildDir %>/baggy.browser.js': ['<%= appDir %>/themes/baggy/js/init.js']
72 }], ["browserify-shim", {
76 "materialize": "materialize",
85 "jQuery": "./node_modules/jquery/dist/jquery.js",
86 "jquery.tinydot": "./node_modules/jquery.tinydot/src/jquery.tinydot.js",
87 "jquery.ui": "./node_modules/jquery-ui-browserify/dist/jquery-ui.js"
96 '<%= releaseDir %>/themes/material/js/material.min.js':
97 ['<%= buildDir %>/material.browser.js'],
105 '<%= releaseDir %>/themes/baggy/js/baggy.min.js':
106 ['<%= buildDir %>/baggy.browser.js'],
116 cwd: '<%= modulesDir %>/pickadate/lib',
118 dest: '<%= buildDir %>',
122 cwd: '<%= modulesDir %>/annotator/pkg',
123 src: 'annotator.min.js',
124 dest: '<%= buildDir %>/themes/_global/js/',
133 cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
134 src: 'IcoMoon-Free.ttf',
135 dest: '<%= releaseDir %>/themes/baggy/fonts/',
140 cwd: '<%= modulesDir %>/ptsans-npm-webfont/fonts',
141 src: 'ptsansbold.woff',
142 dest: '<%= releaseDir %>/themes/baggy/fonts/',
147 cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
148 src: ['MaterialIcons-Regular.eot', 'MaterialIcons-Regular.woff2', 'MaterialIcons-Regular.woff', 'MaterialIcons-Regular.ttf'],
149 dest: '<%= releaseDir %>/themes/baggy/fonts/',
158 cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
159 src: 'IcoMoon-Free.ttf',
160 dest: '<%= releaseDir %>/themes/material/fonts',
165 cwd: '<%= modulesDir %>/roboto-fontface/fonts/Roboto',
167 dest: '<%= releaseDir %>/themes/material/font/roboto',
172 cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
173 src: ['MaterialIcons-Regular.eot', 'MaterialIcons-Regular.woff2', 'MaterialIcons-Regular.woff', 'MaterialIcons-Regular.ttf'],
174 dest: '<%= releaseDir %>/themes/material/fonts/',
183 cwd: '<%= appDir %>/themes/_global/',
185 dest: '<%= releaseDir %>/themes/_global/',
192 src: ['<%= buildDir %>/**/*.css'],
195 src: ['<%= buildDir %>/**/*.js', '<%= buildDir %>/**/*.map'],
198 src: ['./<%= buildDir %>'],
201 src: ['./<%= releaseDir %>/*'],
209 ['symlink:baggyfonts', 'symlink:materialfonts']
214 'Build and install js files',
215 ['clean:js', 'copy:pickerjs', 'browserify', 'uglify']
220 'Build and install everything',
221 ['clean', 'copy:pickerjs', 'concat', 'browserify', 'uglify', 'postcss', 'symlink']
226 'Compiles the stylesheets.',
227 ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss']