Merge branch 'release-1.2' into dev

pull/3897/head
Laurent Cozic 2020-10-10 13:13:19 +01:00
commit c874aee774
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,11 @@
const utils = require('../utils');
const rootDir = utils.rootDir();
const fs = require('fs-extra');
module.exports = {
src: '',
fn: async function() {
await fs.remove(`${rootDir}/CliClient/tests-build`);
await fs.remove(`${rootDir}/CliClient/build`);
},
};

View File

@ -5,8 +5,13 @@ const tasks = {
copyLib: require('./Tools/gulp/tasks/copyLib'),
tsc: require('./Tools/gulp/tasks/tsc'),
updateIgnoredTypeScriptBuild: require('./Tools/gulp/tasks/updateIgnoredTypeScriptBuild'),
deleteBuildDirs: require('./Tools/gulp/tasks/deleteBuildDirs'),
};
utils.registerGulpTasks(gulp, tasks);
gulp.task('build', gulp.series('copyLib', 'tsc', 'updateIgnoredTypeScriptBuild'));
// The clean task removes build directories and copy back the library. This is useful
// when switching from one branch to another.
gulp.task('clean', gulp.series('deleteBuildDirs', 'copyLib'));

View File

@ -14,6 +14,7 @@
"generatePluginTypes": "rm -rf ./plugin_types && node node_modules/typescript/bin/tsc --declaration --declarationDir ./plugin_types --project tsconfig.json",
"setupNewRelease": "node ./Tools/setupNewRelease",
"linkChecker": "linkchecker https://joplinapp.org",
"clean": "npm run clean",
"postinstall": "cd Tools && npm i && cd .. && cd ReactNativeClient && npm i && cd .. && cd ElectronClient && npm i && cd .. && cd CliClient && npm i && cd .. && gulp build"
},
"husky": {