mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
38 lines
601 B
JavaScript
38 lines
601 B
JavaScript
module.exports = function (grunt) {
|
|
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
clean: {
|
|
build: ['build/*'],
|
|
},
|
|
copy: {
|
|
build: {
|
|
expand: true,
|
|
dot: true,
|
|
src: [
|
|
'api/**',
|
|
'application/**',
|
|
'custom/**',
|
|
'data',
|
|
'install/**',
|
|
'vendor/**',
|
|
'bootstrap.php',
|
|
'cron.php',
|
|
'index.php',
|
|
'LICENSE.txt',
|
|
'.htaccess',
|
|
],
|
|
dest: 'build/',
|
|
},
|
|
},
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
|
|
grunt.registerTask('default', [
|
|
'clean',
|
|
'copy',
|
|
]);
|
|
};
|