chore: 编译分一下阶段方便排查错误

This commit is contained in:
吴多益 2021-10-13 12:31:11 +08:00 committed by GitHub
parent 84d1023d99
commit 4cd472f719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,14 +6,17 @@ export NODE_ENV=production
rm -rf lib rm -rf lib
rm -rf output rm -rf output
echo "===fis release==="
./node_modules/.bin/fis3 release publish -c ./node_modules/.bin/fis3 release publish -c
rm -rf lib/node_modules rm -rf lib/node_modules
# 生成 sdk # 生成 sdk
echo "===fis sdk==="
rm -rf sdk && ./node_modules/.bin/fis3 release publish-sdk -c rm -rf sdk && ./node_modules/.bin/fis3 release publish-sdk -c
cp -r node_modules/monaco-editor/min/vs/base/browser sdk/thirds/monaco-editor/min/vs/base cp -r node_modules/monaco-editor/min/vs/base/browser sdk/thirds/monaco-editor/min/vs/base
echo "===postcss ie11==="
# 生成去掉变量的 css # 生成去掉变量的 css
./node_modules/.bin/postcss sdk/sdk.css >sdk/sdk-ie11.css ./node_modules/.bin/postcss sdk/sdk.css >sdk/sdk-ie11.css
./node_modules/.bin/postcss sdk/ang.css >sdk/ang-ie11.css ./node_modules/.bin/postcss sdk/ang.css >sdk/ang-ie11.css
@ -31,9 +34,12 @@ cp examples/static/iconfont.eot sdk/
mkdir sdk/locale mkdir sdk/locale
echo "===sdk locale==="
node scripts/generate-sdk-locale.js src/locale/de-DE.ts > sdk/locale/de-DE.js node scripts/generate-sdk-locale.js src/locale/de-DE.ts > sdk/locale/de-DE.js
# 生成 .d.ts 文件 # 生成 .d.ts 文件
echo "===generate .d.ts==="
./node_modules/.bin/tsc --declaration --emitDeclarationOnly --outDir ./lib --project ./tsconfig-for-declaration.json ./node_modules/.bin/tsc --declaration --emitDeclarationOnly --outDir ./lib --project ./tsconfig-for-declaration.json
echo "===build-schemas==="
npm run build-schemas npm run build-schemas