mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
✌️
This commit is contained in:
parent
cafc666ed7
commit
52b4e7b574
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 New Issue
Block a user