mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 06:00:21 +01:00
✌️
This commit is contained in:
parent
cec1035f06
commit
165c93b248
2 changed files with 4 additions and 15 deletions
15
gulpfile.ts
15
gulpfile.ts
|
@ -111,23 +111,11 @@ gulp.task('default', ['build']);
|
|||
gulp.task('build:client', [
|
||||
'build:ts',
|
||||
'build:js',
|
||||
'webpack',
|
||||
'build:client:script',
|
||||
'build:client:pug',
|
||||
'copy:client'
|
||||
]);
|
||||
|
||||
gulp.task('webpack', done => {
|
||||
const webpack = childProcess.spawn(
|
||||
Path.join('.', 'node_modules', '.bin', 'webpack'),
|
||||
['--config', './webpack/webpack.config.ts'], {
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
});
|
||||
|
||||
webpack.on('exit', done);
|
||||
});
|
||||
|
||||
gulp.task('build:client:script', () =>
|
||||
gulp.src(['./src/web/app/boot.js', './src/web/app/safe.js'])
|
||||
.pipe(replace('VERSION', JSON.stringify(version)))
|
||||
|
@ -147,8 +135,7 @@ gulp.task('build:client:styles', () =>
|
|||
);
|
||||
|
||||
gulp.task('copy:client', [
|
||||
'build:client:script',
|
||||
'webpack'
|
||||
'build:client:script'
|
||||
], () =>
|
||||
gulp.src([
|
||||
'./assets/**/*',
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
"start": "node ./built",
|
||||
"debug": "DEBUG=misskey:* node ./built",
|
||||
"swagger": "node ./swagger.js",
|
||||
"build": "gulp build",
|
||||
"build": "./node_modules/.bin/webpack --config ./webpack/webpack.config.ts && gulp build",
|
||||
"webpack": "./node_modules/.bin/webpack --config ./webpack/webpack.config.ts",
|
||||
"gulp": "gulp build",
|
||||
"rebuild": "gulp rebuild",
|
||||
"clean": "gulp clean",
|
||||
"cleanall": "gulp cleanall",
|
||||
|
|
Loading…
Reference in a new issue