grunt run npm install

This commit is contained in:
Yuri Kuznetsov
2021-06-19 18:48:42 +03:00
parent d853f0e7f9
commit 8c9a4f9d3b
2 changed files with 13 additions and 3 deletions
+5
View File
@@ -382,6 +382,10 @@ module.exports = grunt => {
.finalize();
});
grunt.registerTask('npm-install', () => {
cp.execSync("npm install", {stdio: 'inherit'});
});
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-mkdir');
grunt.loadNpmTasks('grunt-contrib-less');
@@ -412,6 +416,7 @@ module.exports = grunt => {
grunt.registerTask('default', [
'composer',
'npm-install',
'offline',
]);
+8 -3
View File
@@ -1,13 +1,18 @@
{
"name": "espocrm",
"version": "6.1.7",
"description": "",
"main": "index.php",
"description": "Open-source CRM.",
"repository": {
"type": "git",
"url": "git://github.com/espocrm/espocrm.git"
},
"author": "",
"scripts": {
"build": "grunt",
"test": "grunt run-tests",
"test-unit": "grunt run-unit-tests",
"test-integration": "grunt run-integration-tests"
},
"author": "Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko",
"license": "GPL-3.0",
"devDependencies": {
"archiver": "^3.1.1",