build(electron): use nx (#2942)

This commit is contained in:
Alex Yang
2023-06-30 16:10:35 +08:00
committed by GitHub
parent 9e90242ddb
commit 38a2aa9d17
18 changed files with 134 additions and 148 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
"./*": "./src/components/*/index.tsx"
},
"scripts": {
"build": "yarn workspace @affine/i18n build"
"build": "yarn workspace @affine/i18n build",
"dev": "yarn workspace @affine/i18n dev"
},
"peerDependencies": {
"@blocksuite/blocks": "*",
+12
View File
@@ -0,0 +1,12 @@
import { runCli } from '@magic-works/i18n-codegen';
import { fileURLToPath } from 'url';
runCli(
{
config: fileURLToPath(new URL('../../.i18n-codegen.json', import.meta.url)),
watch: true,
},
error => {
console.error(error);
}
);
+1
View File
@@ -16,6 +16,7 @@
},
"scripts": {
"build": "node build.mjs",
"dev": "node dev.mjs",
"sync-languages": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/sync.ts",
"sync-languages:check": "yarn run sync-languages --check",
"download-resources": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/download.ts"