mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
chore: 编译分一下阶段方便排查错误
This commit is contained in:
parent
84d1023d99
commit
4cd472f719
6
build.sh
6
build.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user