mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
build: use prepare+build
This commit is contained in:
1 parent
3b985fdba2
commit
5d16bc740b
4 files changed
+4
-14
No files matched your search
@@ -31,7 +31,7 @@ jobs:
|
|||||||
run: yarn
|
run: yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
yarn build
|
yarn build --verbose
|
||||||
yarn build:ui:production
|
yarn build:ui:production
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn lint:ci
|
run: yarn lint:ci
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { argv } = require('yargs');
|
|
||||||
const { sync } = require('cross-spawn');
|
|
||||||
|
|
||||||
const compilerOptionsBase = {
|
const compilerOptionsBase = {
|
||||||
target: 'es2019',
|
target: 'es2019',
|
||||||
@@ -69,11 +67,3 @@ for (const package of packages) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fs.writeFileSync(path.resolve(process.cwd(), 'tsconfig.json'), JSON.stringify(config));
|
fs.writeFileSync(path.resolve(process.cwd(), 'tsconfig.json'), JSON.stringify(config));
|
||||||
|
|
||||||
sync('./node_modules/.bin/tsc -b packages/hydrooj', { stdio: 'inherit' });
|
|
||||||
|
|
||||||
if (argv.watch) {
|
|
||||||
sync('./node_modules/.bin/tsc -b --watch', { stdio: 'inherit' });
|
|
||||||
} else {
|
|
||||||
sync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
|
|
||||||
}
|
|
||||||
+2
-2
@@ -6,8 +6,8 @@
|
|||||||
],
|
],
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node build/build.js",
|
"build": "node build/prepare.js && tsc -b",
|
||||||
"build:watch": "node build/build.js --watch",
|
"build:watch": "node build/build.js && tsc -b --watch",
|
||||||
"build:ui": "node packages/ui-default/build",
|
"build:ui": "node packages/ui-default/build",
|
||||||
"build:ui:dev": "node packages/ui-default/build --dev",
|
"build:ui:dev": "node packages/ui-default/build --dev",
|
||||||
"build:ui:production": "node packages/ui-default/build --production",
|
"build:ui:production": "node packages/ui-default/build --production",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"koa-router": "^10.0.0",
|
"koa-router": "^10.0.0",
|
||||||
"koa-static-cache": "^5.1.3",
|
"koa-static-cache": "^5.1.3",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"minio": "7.0.18",
|
"minio": "7.0.17",
|
||||||
"moment-timezone": "^0.5.32",
|
"moment-timezone": "^0.5.32",
|
||||||
"mongodb": "^3.6.6",
|
"mongodb": "^3.6.6",
|
||||||
"nodemailer": "^6.5.0",
|
"nodemailer": "^6.5.0",
|
||||||
|
|||||||
Reference in new issue
Block a user