1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-12 08:54:00 +02:00
joplin/packages/app-desktop/gulpfile.js

53 lines
1.3 KiB
JavaScript
Raw Normal View History

2020-11-05 18:58:23 +02:00
const gulp = require('gulp');
const utils = require('@joplin/tools/gulp/utils');
const compileSass = require('@joplin/tools/compileSass');
const compilePackageInfo = require('@joplin/tools/compilePackageInfo');
2020-11-05 18:58:23 +02:00
const tasks = {
compileScripts: {
fn: require('./tools/compileScripts'),
},
compilePackageInfo: {
fn: async () => {
await compilePackageInfo(`${__dirname}/package.json`, `${__dirname}/packageInfo.js`);
},
2020-11-05 18:58:23 +02:00
},
copyPluginAssets: {
fn: require('./tools/copyPluginAssets.js'),
},
copyApplicationAssets: {
fn: require('./tools/copyApplicationAssets.js'),
2020-11-05 18:58:23 +02:00
},
electronRebuild: {
fn: require('./tools/electronRebuild.js'),
},
electronBuilder: {
fn: require('./tools/electronBuilder.js'),
},
tsc: require('@joplin/tools/gulp/tasks/tsc'),
updateIgnoredTypeScriptBuild: require('@joplin/tools/gulp/tasks/updateIgnoredTypeScriptBuild'),
buildCommandIndex: require('@joplin/tools/gulp/tasks/buildCommandIndex'),
compileSass: {
fn: async () => {
await compileSass(
`${__dirname}/style.scss`,
`${__dirname}/style.min.css`,
);
},
},
2020-11-05 18:58:23 +02:00
};
utils.registerGulpTasks(gulp, tasks);
const buildParallel = [
'compileScripts',
'compilePackageInfo',
'copyPluginAssets',
'copyApplicationAssets',
'updateIgnoredTypeScriptBuild',
'buildCommandIndex',
'compileSass',
2020-11-05 18:58:23 +02:00
];
gulp.task('build', gulp.parallel(...buildParallel));