From 3c8c416deea80fcd50cdbf116bc3dbb221acbe45 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 +- {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 12 files changed, 1 insertion(+), 1 deletion(-) 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 5d79cef0b3..e1dae14400 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/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