bundled
This commit is contained in:
+8
-2
@@ -42,7 +42,7 @@ module.exports = grunt => {
|
||||
|
||||
const bundledDir = 'client/lib/bundled';
|
||||
|
||||
let bundleJsFileList = buildUtils.getBundleLibList(libs).concat(bundledDir + '/espo.js');
|
||||
let bundleJsFileList = buildUtils.getPreparedBundleLibList(libs).concat(bundledDir + '/espo.js');
|
||||
let copyJsFileList = buildUtils.getCopyLibDataList(libs);
|
||||
|
||||
let minifyLibFileList = copyJsFileList
|
||||
@@ -254,13 +254,18 @@ module.exports = grunt => {
|
||||
|
||||
let contents = (new Bundler()).bundle(bundleConfig.jsFiles);
|
||||
|
||||
if (!fs.existsSync(bundledDir)){
|
||||
if (!fs.existsSync(bundledDir)) {
|
||||
fs.mkdirSync(bundledDir);
|
||||
}
|
||||
|
||||
fs.writeFileSync(bundledDir + '/espo.js', contents, 'utf8');
|
||||
});
|
||||
|
||||
grunt.registerTask('prepare-bundled-libs', () => {
|
||||
// Even though `npm ci` runs the same script, 'clean:start' deletes files.
|
||||
cp.execSync("node js/scripts/prepare-bundled");
|
||||
});
|
||||
|
||||
grunt.registerTask('chmod-folders', () => {
|
||||
cp.execSync(
|
||||
"find . -type d -exec chmod 755 {} +",
|
||||
@@ -434,6 +439,7 @@ module.exports = grunt => {
|
||||
'less',
|
||||
'cssmin',
|
||||
'espo-bundle',
|
||||
'prepare-bundled-libs',
|
||||
'uglify:bundle',
|
||||
'copy:frontendLib',
|
||||
'uglify:lib',
|
||||
|
||||
Reference in New Issue
Block a user