From 8cd3bfe3bf297ee79fbaec4d8c7fb18e3535ecad Mon Sep 17 00:00:00 2001 From: woxtu Date: Wed, 2 Aug 2023 01:09:44 +0900 Subject: [PATCH] Replace with script executions --- package.json | 5 ++--- scripts/dev.mjs | 8 +++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 752c3a71ed..368054bb21 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "private": true, "scripts": { "build-pre": "node ./scripts/build-pre.js", - "build": "pnpm build-pre && pnpm -r build && pnpm gulp", + "build-assets": "node ./scripts/build-assets.mjs", + "build": "pnpm build-pre && pnpm -r build && pnpm build-assets", "build-storybook": "pnpm --filter frontend build-storybook", "start": "pnpm check:connect && cd packages/backend && node ./built/boot/index.js", "start:test": "cd packages/backend && cross-env NODE_ENV=test node ./built/boot/index.js", @@ -23,7 +24,6 @@ "migrate": "cd packages/backend && pnpm migrate", "check:connect": "cd packages/backend && pnpm check:connect", "migrateandstart": "pnpm migrate && pnpm start", - "gulp": "pnpm exec gulp build", "watch": "pnpm dev", "dev": "node ./scripts/dev.mjs", "lint": "pnpm -r lint", @@ -34,7 +34,6 @@ "jest-and-coverage": "cd packages/backend && pnpm jest-and-coverage", "test": "pnpm -r test", "test-and-coverage": "pnpm -r test-and-coverage", - "format": "pnpm exec gulp format", "clean": "node ./scripts/clean.js", "clean-all": "node ./scripts/clean-all.js", "cleanall": "pnpm clean-all" diff --git a/scripts/dev.mjs b/scripts/dev.mjs index 5240a5c4a8..655ad5ef13 100644 --- a/scripts/dev.mjs +++ b/scripts/dev.mjs @@ -23,7 +23,13 @@ await execa('pnpm', ['build-pre'], { stderr: process.stderr, }); -execa('pnpm', ['exec', 'gulp', 'watch'], { +await execa('pnpm', ['build-assets'], { + cwd: _dirname + '/../', + stdout: process.stdout, + stderr: process.stderr, +}); + +execa('pnpm', ['build-assets', '--watch'], { cwd: _dirname + '/../', stdout: process.stdout, stderr: process.stderr,