From de184787efe64e4f52d5cd370abfcbfbbac6470b Mon Sep 17 00:00:00 2001 From: kangwei Date: Sun, 29 Mar 2020 15:56:27 +0800 Subject: [PATCH 1/3] chore: cloud build test * n --- scripts/deploy.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 798b1ee61..9bee51f83 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -8,7 +8,8 @@ echo "Deploy ${PWD} -> ${BUILD_DEST} ..." cd deploy-space # basic environment preparing tnpm install yarn lerna --install-node=10 -export PATH=$WORK_DIR/deploy-space/node_modules/.bin:$PATH +mv node_modules env +export PATH=$WORK_DIR/deploy-space/env/.bin:$PATH echo "" echo "Use node version:" @@ -20,15 +21,16 @@ yarn config set registry https://registry.npm.alibaba-inc.com # work mkdir packages -cp -r $WORK_DIR/packages/demo packages/demo -cp -r $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer -cp -r $WORK_DIR/packages/globals packages/globals +mv $WORK_DIR/packages/demo packages/demo +mv $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer +mv $WORK_DIR/packages/globals packages/globals +yarn lerna bootstrap lerna run cloud-build --stream -mv packages/demo/build $BUILD_DEST -mv packages/react-simulator-renderer/dist/* $BUILD_DEST -mv packages/globals/dist/* $BUILD_DEST +cp -r packages/demo/build $BUILD_DEST +cp -r packages/react-simulator-renderer/dist/* $BUILD_DEST +cp -r packages/globals/dist/* $BUILD_DEST cp html/* $BUILD_DEST echo "complete" From a3825693e72265bda8d1de5e46b62f2ac45f578a Mon Sep 17 00:00:00 2001 From: kangwei Date: Sun, 29 Mar 2020 16:08:32 +0800 Subject: [PATCH 2/3] chore: cloud build test 16 --- deploy-space/tsconfig.json | 39 ++++++++++++++++++++++++++++++++++++++ scripts/deploy.sh | 15 ++++++++------- 2 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 deploy-space/tsconfig.json diff --git a/deploy-space/tsconfig.json b/deploy-space/tsconfig.json new file mode 100644 index 000000000..462d7443c --- /dev/null +++ b/deploy-space/tsconfig.json @@ -0,0 +1,39 @@ +{ + "compilerOptions": { + "declaration": false, + "lib": ["es2015", "dom"], + // Target latest version of ECMAScript. + "target": "esnext", + // Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. + "module": "commonjs", + // Search under node_modules for non-relative imports. + "moduleResolution": "node", + // Process & infer types from .js files. + "allowJs": true, + // Report errors in .js files. + "checkJs": false, + // Don't emit; allow Babel to transform files. + // "noEmit": true, + // Enable strictest settings like strictNullChecks & noImplicitAny. + "strict": false, + // Allow default imports from modules with no default export. This does not affect code emit, just typechecking. + "allowSyntheticDefaultImports": true, + // Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. + "esModuleInterop": true, + // Specify JSX code generation: 'preserve', 'react-native', or 'react'. + "jsx": "preserve", + // Import emit helpers (e.g. __extends, __rest, etc..) from tslib + "importHelpers": true, + // Enables experimental support for ES7 decorators. + "experimentalDecorators": true, + // Generates corresponding .map file. + "sourceMap": false, + // Disallow inconsistently-cased references to the same file. + "forceConsistentCasingInFileNames": true, + // Allow json import + "resolveJsonModule": true, + // skip type checking of declaration files + "skipLibCheck": true, + }, + "exclude": ["**/test", "**/lib", "**/es", "node_modules"] +} diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 9bee51f83..a0561e84d 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -21,16 +21,17 @@ yarn config set registry https://registry.npm.alibaba-inc.com # work mkdir packages -mv $WORK_DIR/packages/demo packages/demo -mv $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer -mv $WORK_DIR/packages/globals packages/globals +cp -r $WORK_DIR/packages/demo packages/demo +cp -r $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer +cp -r $WORK_DIR/packages/globals packages/globals yarn lerna bootstrap lerna run cloud-build --stream -cp -r packages/demo/build $BUILD_DEST -cp -r packages/react-simulator-renderer/dist/* $BUILD_DEST -cp -r packages/globals/dist/* $BUILD_DEST +cd $WORK_DIR +mv deploy-space/packages/demo/build $BUILD_DEST +mv deploy-space/packages/react-simulator-renderer/dist/* $BUILD_DEST +mv deploy-space/packages/globals/dist/* $BUILD_DEST +cp deploy-space/html/* $BUILD_DEST -cp html/* $BUILD_DEST echo "complete" From 2c285f8fa1bfb862bcb61d8294da28dd46b85804 Mon Sep 17 00:00:00 2001 From: kangwei Date: Sun, 29 Mar 2020 16:14:01 +0800 Subject: [PATCH 3/3] chore: cloud build test 17 --- scripts/deploy.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a0561e84d..a10109817 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -24,7 +24,6 @@ mkdir packages cp -r $WORK_DIR/packages/demo packages/demo cp -r $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer cp -r $WORK_DIR/packages/globals packages/globals -yarn lerna bootstrap lerna run cloud-build --stream