From 578d8a91cc19419a9bfb48740ef18e445f2e618e Mon Sep 17 00:00:00 2001 From: Erisu Date: Mon, 22 Nov 2021 13:30:16 +0900 Subject: [PATCH] refactor: move cordova minimum template - moved 'bin/templates/scripts/cordova' to 'templates/cordova' --- lib/create.js | 2 +- package.json | 2 +- {bin/templates/scripts => templates}/cordova/Api.js | 0 {bin/templates/scripts => templates}/cordova/apple_ios_version | 0 {bin/templates/scripts => templates}/cordova/apple_osx_version | 0 .../templates/scripts => templates}/cordova/apple_xcode_version | 0 .../scripts => templates}/cordova/build-debug.xcconfig | 0 .../scripts => templates}/cordova/build-extras.xcconfig | 0 .../scripts => templates}/cordova/build-release.xcconfig | 0 {bin/templates/scripts => templates}/cordova/build.xcconfig | 0 {bin/templates/scripts => templates}/cordova/defaults.xml | 0 {bin/templates/scripts => templates}/cordova/loggingHelper.js | 0 {bin/templates/scripts => templates}/cordova/version | 0 13 files changed, 2 insertions(+), 2 deletions(-) rename {bin/templates/scripts => templates}/cordova/Api.js (100%) rename {bin/templates/scripts => templates}/cordova/apple_ios_version (100%) rename {bin/templates/scripts => templates}/cordova/apple_osx_version (100%) rename {bin/templates/scripts => templates}/cordova/apple_xcode_version (100%) rename {bin/templates/scripts => templates}/cordova/build-debug.xcconfig (100%) rename {bin/templates/scripts => templates}/cordova/build-extras.xcconfig (100%) rename {bin/templates/scripts => templates}/cordova/build-release.xcconfig (100%) rename {bin/templates/scripts => templates}/cordova/build.xcconfig (100%) rename {bin/templates/scripts => templates}/cordova/defaults.xml (100%) rename {bin/templates/scripts => templates}/cordova/loggingHelper.js (100%) rename {bin/templates/scripts => templates}/cordova/version (100%) diff --git a/lib/create.js b/lib/create.js index 5d79cef0b..e1dae1440 100755 --- a/lib/create.js +++ b/lib/create.js @@ -98,7 +98,7 @@ class ProjectCreator { } provideBuildScripts () { - const srcScriptsDir = path.join(ROOT, 'bin/templates/scripts/cordova'); + const srcScriptsDir = path.join(ROOT, 'templates/cordova'); const destScriptsDir = this.projectPath('cordova'); fs.copySync(srcScriptsDir, destScriptsDir); } diff --git a/package.json b/package.json index 68a647c49..215ec9070 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "xcodebuild": "xcodebuild -quiet test -workspace tests/cordova-ios.xcworkspace -destination \"platform=iOS Simulator,name=iPhone 8\" CONFIGURATION_BUILD_DIR=\"`mktemp -d 2>/dev/null || mktemp -d -t 'cordova-ios'`\"", "preobjc-tests": "killall Simulator || true", "unit-tests": "jasmine --config=tests/spec/unit.json", - "lint": "eslint . \"bin/**/!(*.*)\"" + "lint": "eslint . \"lib/**/!(*.*)\"" }, "author": "Apache Software Foundation", "license": "Apache-2.0", diff --git a/bin/templates/scripts/cordova/Api.js b/templates/cordova/Api.js similarity index 100% rename from bin/templates/scripts/cordova/Api.js rename to templates/cordova/Api.js diff --git a/bin/templates/scripts/cordova/apple_ios_version b/templates/cordova/apple_ios_version similarity index 100% rename from bin/templates/scripts/cordova/apple_ios_version rename to templates/cordova/apple_ios_version diff --git a/bin/templates/scripts/cordova/apple_osx_version b/templates/cordova/apple_osx_version similarity index 100% rename from bin/templates/scripts/cordova/apple_osx_version rename to templates/cordova/apple_osx_version diff --git a/bin/templates/scripts/cordova/apple_xcode_version b/templates/cordova/apple_xcode_version similarity index 100% rename from bin/templates/scripts/cordova/apple_xcode_version rename to templates/cordova/apple_xcode_version diff --git a/bin/templates/scripts/cordova/build-debug.xcconfig b/templates/cordova/build-debug.xcconfig similarity index 100% rename from bin/templates/scripts/cordova/build-debug.xcconfig rename to templates/cordova/build-debug.xcconfig diff --git a/bin/templates/scripts/cordova/build-extras.xcconfig b/templates/cordova/build-extras.xcconfig similarity index 100% rename from bin/templates/scripts/cordova/build-extras.xcconfig rename to templates/cordova/build-extras.xcconfig diff --git a/bin/templates/scripts/cordova/build-release.xcconfig b/templates/cordova/build-release.xcconfig similarity index 100% rename from bin/templates/scripts/cordova/build-release.xcconfig rename to templates/cordova/build-release.xcconfig diff --git a/bin/templates/scripts/cordova/build.xcconfig b/templates/cordova/build.xcconfig similarity index 100% rename from bin/templates/scripts/cordova/build.xcconfig rename to templates/cordova/build.xcconfig diff --git a/bin/templates/scripts/cordova/defaults.xml b/templates/cordova/defaults.xml similarity index 100% rename from bin/templates/scripts/cordova/defaults.xml rename to templates/cordova/defaults.xml diff --git a/bin/templates/scripts/cordova/loggingHelper.js b/templates/cordova/loggingHelper.js similarity index 100% rename from bin/templates/scripts/cordova/loggingHelper.js rename to templates/cordova/loggingHelper.js diff --git a/bin/templates/scripts/cordova/version b/templates/cordova/version similarity index 100% rename from bin/templates/scripts/cordova/version rename to templates/cordova/version