2016-07-03 20:54:55 -07:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
|
|
|
|
grunt.initConfig({
|
|
|
|
bower: {
|
2016-07-03 22:17:58 -07:00
|
|
|
js: {
|
2016-07-03 20:54:55 -07:00
|
|
|
dest: 'web/js/vendor',
|
|
|
|
options: {
|
|
|
|
checkExistence: false,
|
|
|
|
debugging: true,
|
|
|
|
paths: {
|
|
|
|
bowerDirectory: 'vendor/bower',
|
|
|
|
bowerrc: '.bowerrc',
|
|
|
|
bowerJson: 'bower.json'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-07-03 22:17:58 -07:00
|
|
|
copy: {
|
|
|
|
dist: {
|
|
|
|
files: [
|
|
|
|
{
|
|
|
|
expand: true,
|
|
|
|
cwd: 'vendor/bower/uikit/fonts',
|
|
|
|
src: ['*'],
|
|
|
|
dest: 'web/fonts',
|
|
|
|
filter: 'isFile'
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-07-03 20:54:55 -07:00
|
|
|
less: {
|
|
|
|
build: {
|
|
|
|
options: {
|
|
|
|
plugins: [new (require('less-plugin-autoprefix'))({browsers: ["last 3 versions"]}),],
|
|
|
|
paths: [
|
|
|
|
'vendor/bower/uikit/less',
|
|
|
|
'src/Sikofitt/less'
|
|
|
|
],
|
|
|
|
strictImports: true,
|
|
|
|
compress: true
|
|
|
|
},
|
|
|
|
files: {
|
|
|
|
'web/css/resume.min.css': 'src/Sikofitt/less/resume.less'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-less');
|
|
|
|
grunt.loadNpmTasks('main-bower-files');
|
|
|
|
grunt.loadNpmTasks('grunt-phpunit');
|
2016-07-03 22:17:58 -07:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
2016-07-03 20:54:55 -07:00
|
|
|
grunt.registerTask('dist', ['bower', 'less']);
|
|
|
|
grunt.registerTask('default', 'dist');
|
|
|
|
|
|
|
|
};
|