grunt
This commit is contained in:
@@ -9,3 +9,5 @@ application/Espo/Resources/layouts/CustomTest/*
|
||||
application/Espo/Modules/Crm/Resources/layouts/CustomTest/*
|
||||
application/Espo/Resources/metadata/customTest/*
|
||||
application/Espo/Modules/Crm/Resources/metadata/customTest/*
|
||||
build
|
||||
node_modules
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
clean: {
|
||||
build: ['build/*'],
|
||||
},
|
||||
copy: {
|
||||
build: {
|
||||
expand: true,
|
||||
src: [
|
||||
'api/**',
|
||||
'application/**',
|
||||
'data',
|
||||
'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',
|
||||
]);
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "espo-backend",
|
||||
"version": "0.1.0",
|
||||
"description": "",
|
||||
"main": "index.php",
|
||||
"repository": "",
|
||||
"author": "",
|
||||
"license": "GPL",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-copy": "~0.4.1",
|
||||
"grunt-contrib-clean": "~0.5.0",
|
||||
"grunt-replace": "~0.5.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user