From 51be21da05ceb60d0f4e1c8f26ea96062a652c2a Mon Sep 17 00:00:00 2001 From: Takashi Sugimoto Date: Tue, 12 Sep 2023 14:30:46 +0900 Subject: [PATCH 1/5] =?UTF-8?q?fix:=20prebuild=E6=99=82=E3=81=AB.=E5=A7=8B?= =?UTF-8?q?=E3=81=BE=E3=82=8A=E3=81=AE=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?(.gitignore)=E3=81=AA=E3=81=A9=E3=81=8C=E3=82=B3=E3=83=94?= =?UTF-8?q?=E3=83=BC=E3=81=95=E3=82=8C=E3=81=A6=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 参考 How to copy hidden folders? · Issue 34 · mysticatea/cpx https://togithub.com/mysticatea/cpx/issues/34 --- example-app/SantokuApp/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/example-app/SantokuApp/package.json b/example-app/SantokuApp/package.json index 7b076aa875..178a63dbda 100644 --- a/example-app/SantokuApp/package.json +++ b/example-app/SantokuApp/package.json @@ -16,14 +16,14 @@ "postprebuild:stg": "run-p copy:stg:*", "postprebuild:prod": "run-p copy:prod:*", "build:plugin": "rimraf config/plugin/build && tsc --build config/plugin", - "copy:local:android": "rimraf prebuild/local/android && cpx \"android/**\" prebuild/local/android", - "copy:local:ios": "rimraf prebuild/local/ios && cpx \"ios/**\" prebuild/local/ios", - "copy:dev:android": "rimraf prebuild/dev/android && cpx \"android/**\" prebuild/dev/android", - "copy:dev:ios": "rimraf prebuild/dev/ios && cpx \"ios/**\" prebuild/dev/ios", - "copy:stg:android": "rimraf prebuild/stg/android && cpx \"android/**\" prebuild/stg/android", - "copy:stg:ios": "rimraf prebuild/stg/ios && cpx \"ios/**\" prebuild/stg/ios", - "copy:prod:android": "rimraf prebuild/prod/android && cpx \"android/**\" prebuild/prod/android", - "copy:prod:ios": "rimraf prebuild/prod/ios && cpx \"ios/**\" prebuild/prod/ios", + "copy:local:android": "rimraf prebuild/local/android && cpx \"android/**/{.*,*}\" prebuild/local/android", + "copy:local:ios": "rimraf prebuild/local/ios && cpx \"ios/**/{.*,*}\" prebuild/local/ios", + "copy:dev:android": "rimraf prebuild/dev/android && cpx \"android/**/{.*,*}\" prebuild/dev/android", + "copy:dev:ios": "rimraf prebuild/dev/ios && cpx \"ios/**/{.*,*}\" prebuild/dev/ios", + "copy:stg:android": "rimraf prebuild/stg/android && cpx \"android/**/{.*,*}\" prebuild/stg/android", + "copy:stg:ios": "rimraf prebuild/stg/ios && cpx \"ios/**/{.*,*}\" prebuild/stg/ios", + "copy:prod:android": "rimraf prebuild/prod/android && cpx \"android/**/{.*,*}\" prebuild/prod/android", + "copy:prod:ios": "rimraf prebuild/prod/ios && cpx \"ios/**/{.*,*}\" prebuild/prod/ios", "test:coverage": "jest --runInBand --forceExit --coverage", "test:report": "jest --runInBand --forceExit --reporters=default --reporters=jest-junit --coverage", "lint": "run-s --print-name --continue-on-error lint:*", From 67f0d32e2607b7966f66f0ed64093c7b2e0cab3c Mon Sep 17 00:00:00 2001 From: Takashi Sugimoto Date: Tue, 12 Sep 2023 14:36:54 +0900 Subject: [PATCH 2/5] feat: npm run prebuild --- .../prebuild/local/android/.gitignore | 15 ++++++++++ .../SantokuApp/prebuild/local/ios/.gitignore | 30 +++++++++++++++++++ .../SantokuApp/prebuild/local/ios/.xcode.env | 11 +++++++ 3 files changed, 56 insertions(+) create mode 100644 example-app/SantokuApp/prebuild/local/android/.gitignore create mode 100644 example-app/SantokuApp/prebuild/local/ios/.gitignore create mode 100644 example-app/SantokuApp/prebuild/local/ios/.xcode.env diff --git a/example-app/SantokuApp/prebuild/local/android/.gitignore b/example-app/SantokuApp/prebuild/local/android/.gitignore new file mode 100644 index 0000000000..877b87e9a5 --- /dev/null +++ b/example-app/SantokuApp/prebuild/local/android/.gitignore @@ -0,0 +1,15 @@ +# OSX +# +.DS_Store + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof + +# Bundle artifacts +*.jsbundle diff --git a/example-app/SantokuApp/prebuild/local/ios/.gitignore b/example-app/SantokuApp/prebuild/local/ios/.gitignore new file mode 100644 index 0000000000..8beb344303 --- /dev/null +++ b/example-app/SantokuApp/prebuild/local/ios/.gitignore @@ -0,0 +1,30 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace +.xcode.env.local + +# Bundle artifacts +*.jsbundle + +# CocoaPods +/Pods/ diff --git a/example-app/SantokuApp/prebuild/local/ios/.xcode.env b/example-app/SantokuApp/prebuild/local/ios/.xcode.env new file mode 100644 index 0000000000..3d5782c715 --- /dev/null +++ b/example-app/SantokuApp/prebuild/local/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) From 2b940dbb076d5467d6f2062cdd0dc6c30833f73d Mon Sep 17 00:00:00 2001 From: Takashi Sugimoto Date: Tue, 12 Sep 2023 14:37:43 +0900 Subject: [PATCH 3/5] npm run prebuild:dev --- .../prebuild/dev/android/.gitignore | 15 ++++++++++ .../SantokuApp/prebuild/dev/ios/.gitignore | 30 +++++++++++++++++++ .../SantokuApp/prebuild/dev/ios/.xcode.env | 11 +++++++ 3 files changed, 56 insertions(+) create mode 100644 example-app/SantokuApp/prebuild/dev/android/.gitignore create mode 100644 example-app/SantokuApp/prebuild/dev/ios/.gitignore create mode 100644 example-app/SantokuApp/prebuild/dev/ios/.xcode.env diff --git a/example-app/SantokuApp/prebuild/dev/android/.gitignore b/example-app/SantokuApp/prebuild/dev/android/.gitignore new file mode 100644 index 0000000000..877b87e9a5 --- /dev/null +++ b/example-app/SantokuApp/prebuild/dev/android/.gitignore @@ -0,0 +1,15 @@ +# OSX +# +.DS_Store + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof + +# Bundle artifacts +*.jsbundle diff --git a/example-app/SantokuApp/prebuild/dev/ios/.gitignore b/example-app/SantokuApp/prebuild/dev/ios/.gitignore new file mode 100644 index 0000000000..8beb344303 --- /dev/null +++ b/example-app/SantokuApp/prebuild/dev/ios/.gitignore @@ -0,0 +1,30 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace +.xcode.env.local + +# Bundle artifacts +*.jsbundle + +# CocoaPods +/Pods/ diff --git a/example-app/SantokuApp/prebuild/dev/ios/.xcode.env b/example-app/SantokuApp/prebuild/dev/ios/.xcode.env new file mode 100644 index 0000000000..3d5782c715 --- /dev/null +++ b/example-app/SantokuApp/prebuild/dev/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) From bfd25d74288655ece051bdff3c3bd1630375db5d Mon Sep 17 00:00:00 2001 From: Takashi Sugimoto Date: Tue, 12 Sep 2023 14:38:05 +0900 Subject: [PATCH 4/5] npm run prebuild:stg --- .../prebuild/stg/android/.gitignore | 15 ++++++++++ .../SantokuApp/prebuild/stg/ios/.gitignore | 30 +++++++++++++++++++ .../SantokuApp/prebuild/stg/ios/.xcode.env | 11 +++++++ 3 files changed, 56 insertions(+) create mode 100644 example-app/SantokuApp/prebuild/stg/android/.gitignore create mode 100644 example-app/SantokuApp/prebuild/stg/ios/.gitignore create mode 100644 example-app/SantokuApp/prebuild/stg/ios/.xcode.env diff --git a/example-app/SantokuApp/prebuild/stg/android/.gitignore b/example-app/SantokuApp/prebuild/stg/android/.gitignore new file mode 100644 index 0000000000..877b87e9a5 --- /dev/null +++ b/example-app/SantokuApp/prebuild/stg/android/.gitignore @@ -0,0 +1,15 @@ +# OSX +# +.DS_Store + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof + +# Bundle artifacts +*.jsbundle diff --git a/example-app/SantokuApp/prebuild/stg/ios/.gitignore b/example-app/SantokuApp/prebuild/stg/ios/.gitignore new file mode 100644 index 0000000000..8beb344303 --- /dev/null +++ b/example-app/SantokuApp/prebuild/stg/ios/.gitignore @@ -0,0 +1,30 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace +.xcode.env.local + +# Bundle artifacts +*.jsbundle + +# CocoaPods +/Pods/ diff --git a/example-app/SantokuApp/prebuild/stg/ios/.xcode.env b/example-app/SantokuApp/prebuild/stg/ios/.xcode.env new file mode 100644 index 0000000000..3d5782c715 --- /dev/null +++ b/example-app/SantokuApp/prebuild/stg/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) From 1ce2f112fcb20daa5da83a063ecaf31226dab788 Mon Sep 17 00:00:00 2001 From: Takashi Sugimoto Date: Tue, 12 Sep 2023 14:38:24 +0900 Subject: [PATCH 5/5] npm run prebuild:prod --- .../prebuild/prod/android/.gitignore | 15 ++++++++++ .../SantokuApp/prebuild/prod/ios/.gitignore | 30 +++++++++++++++++++ .../SantokuApp/prebuild/prod/ios/.xcode.env | 11 +++++++ 3 files changed, 56 insertions(+) create mode 100644 example-app/SantokuApp/prebuild/prod/android/.gitignore create mode 100644 example-app/SantokuApp/prebuild/prod/ios/.gitignore create mode 100644 example-app/SantokuApp/prebuild/prod/ios/.xcode.env diff --git a/example-app/SantokuApp/prebuild/prod/android/.gitignore b/example-app/SantokuApp/prebuild/prod/android/.gitignore new file mode 100644 index 0000000000..877b87e9a5 --- /dev/null +++ b/example-app/SantokuApp/prebuild/prod/android/.gitignore @@ -0,0 +1,15 @@ +# OSX +# +.DS_Store + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof + +# Bundle artifacts +*.jsbundle diff --git a/example-app/SantokuApp/prebuild/prod/ios/.gitignore b/example-app/SantokuApp/prebuild/prod/ios/.gitignore new file mode 100644 index 0000000000..8beb344303 --- /dev/null +++ b/example-app/SantokuApp/prebuild/prod/ios/.gitignore @@ -0,0 +1,30 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace +.xcode.env.local + +# Bundle artifacts +*.jsbundle + +# CocoaPods +/Pods/ diff --git a/example-app/SantokuApp/prebuild/prod/ios/.xcode.env b/example-app/SantokuApp/prebuild/prod/ios/.xcode.env new file mode 100644 index 0000000000..3d5782c715 --- /dev/null +++ b/example-app/SantokuApp/prebuild/prod/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node)