grunt.initConfig({
appDir: 'app/Resources/static',
buildDir: 'web/bundles/wallabagcore',
+ modulesDir: 'node_modules',
postcss: {
material: {
transform: [
["babelify", {
presets: ["es2015"]
- }], "browserify-shim"
+ }], ["browserify-shim", {
+ "jquery": {
+ "exports": "$"
+ },
+ "materialize": "materialize",
+ "jquery-ui": {
+ "depends": "jquery",
+ "exports": null
+ }
+ }]
],
browserifyOptions: {
browser: {
"jQuery": "./node_modules/jquery/dist/jquery.js",
- "jquery.tinydot": "./nodes_modules/jquery.tinydot/src/jquery.tinydot.js"
+ "jquery.tinydot": "./node_modules/jquery.tinydot/src/jquery.tinydot.js",
+ "jquery.ui": "./node_modules/jquery-ui-browserify/dist/jquery-ui.js"
}
}
}
copy: {
pickerjs: {
expand: true,
- cwd: 'node_modules/pickadate/lib',
+ cwd: '<%= modulesDir %>/pickadate/lib',
src: 'picker.js',
dest: '<%= buildDir %>',
},
annotator: {
expand: true,
- cwd: 'node_modules/annotator/pkg',
+ cwd: '<%= modulesDir %>/annotator/pkg',
src: 'annotator.min.js',
dest: '<%= buildDir %>/themes/_global/js/',
},
{
expand: true,
overwrite: true,
- cwd: '<%= appDir %>/lib/icomoon-bower/',
- src: 'fonts',
- dest: '<%= buildDir %>/themes/baggy/',
+ cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
+ src: 'IcoMoon-Free.ttf',
+ dest: '<%= buildDir %>/themes/baggy/fonts/',
+ },
+ {
+ expand: true,
+ overwrite: true,
+ cwd: '<%= modulesDir %>/ptsans-npm-webfont/fonts',
+ src: '*',
+ dest: '<%= buildDir %>/themes/baggy/fonts/',
},
{
expand: true,
overwrite: true,
- cwd: '<%= appDir %>/lib/bower-pt-sans/fonts',
+ cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
src: '*',
dest: '<%= buildDir %>/themes/baggy/fonts/',
},
{
expand: true,
overwrite: true,
- cwd: '<%= appDir %>/lib/icomoon-bower/',
- src: 'fonts',
- dest: '<%= buildDir %>/themes/material/',
+ cwd: '<%= modulesDir %>/icomoon-free-npm/Font',
+ src: 'IcoMoon-Free.ttf',
+ dest: '<%= buildDir %>/themes/material/fonts',
},
{
expand: true,
overwrite: true,
- cwd: 'node_modules/materialize-css/',
+ cwd: '<%= modulesDir %>/materialize-css/',
src: 'font',
dest: '<%= buildDir %>/themes/material',
},
{
expand: true,
overwrite: true,
- cwd: '<%= appDir %>/lib/roboto-fontface/fonts/',
+ cwd: '<%= modulesDir %>/roboto-fontface/fonts/Roboto',
src: '*',
- dest: '<%= buildDir %>/themes/material/fonts/roboto/',
+ dest: '<%= buildDir %>/themes/material/fonts/',
},
{
expand: true,
overwrite: true,
- cwd: '<%= appDir %>/lib/material-design-icons-iconfont/dist/fonts/',
+ cwd: '<%= modulesDir %>/material-design-icons-iconfont/dist/fonts/',
src: '*',
dest: '<%= buildDir %>/themes/material/fonts/',
},