From 2f03b43221b11bb8add131a9e65c8533379cceac Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sat, 27 Jan 2018 03:09:40 -0800 Subject: [PATCH] fix: scope templates --- src/generators/app/index.ts | 2 +- templates/{ => app}/README.md.ejs | 0 templates/{ => app}/appveyor.yml | 0 templates/{ => app}/base/src/index.js | 0 templates/{ => app}/base/src/index.ts | 0 templates/{ => app}/base/test/index.test.js | 0 templates/{ => app}/base/test/index.test.ts | 0 templates/{ => app}/circle.yml.ejs | 0 templates/{ => app}/editorconfig | 0 templates/{ => app}/eslintrc | 0 templates/{ => app}/gitattributes | 0 templates/{ => app}/multi/bin/run.js | 0 templates/{ => app}/multi/bin/run.ts | 0 templates/{ => app}/multi/src/index.js | 0 templates/{ => app}/multi/src/index.ts | 0 templates/{ => app}/package-scripts.js.ejs | 0 templates/{ => app}/plugin/src/commands/hello.js | 0 templates/{ => app}/plugin/src/commands/hello.ts | 0 templates/{ => app}/plugin/src/hooks/init.js | 0 templates/{ => app}/plugin/src/hooks/init.ts | 0 templates/{ => app}/plugin/src/index.ts | 0 templates/{ => app}/plugin/test/commands/hello.test.js | 0 templates/{ => app}/plugin/test/commands/hello.test.ts | 0 templates/{ => app}/plugin/test/hooks/init.test.js | 0 templates/{ => app}/plugin/test/hooks/init.test.ts | 0 templates/{ => app}/scripts/setup_git | 0 templates/{ => app}/scripts/yarn | 0 templates/{ => app}/single/bin/run.js | 0 templates/{ => app}/single/bin/run.ts | 0 templates/{ => app}/single/src/index.js | 0 templates/{ => app}/single/src/index.ts | 0 templates/{ => app}/single/test/index.test.js | 0 templates/{ => app}/single/test/index.test.ts | 0 templates/{ => app}/test/helpers/init.js | 0 templates/{ => app}/test/mocha.opts | 0 templates/{ => app}/test/tsconfig.json | 0 templates/{ => app}/tsconfig.json | 0 templates/{ => app}/tslint.json | 0 38 files changed, 1 insertion(+), 1 deletion(-) rename templates/{ => app}/README.md.ejs (100%) rename templates/{ => app}/appveyor.yml (100%) rename templates/{ => app}/base/src/index.js (100%) rename templates/{ => app}/base/src/index.ts (100%) rename templates/{ => app}/base/test/index.test.js (100%) rename templates/{ => app}/base/test/index.test.ts (100%) rename templates/{ => app}/circle.yml.ejs (100%) rename templates/{ => app}/editorconfig (100%) rename templates/{ => app}/eslintrc (100%) rename templates/{ => app}/gitattributes (100%) rename templates/{ => app}/multi/bin/run.js (100%) rename templates/{ => app}/multi/bin/run.ts (100%) rename templates/{ => app}/multi/src/index.js (100%) rename templates/{ => app}/multi/src/index.ts (100%) rename templates/{ => app}/package-scripts.js.ejs (100%) rename templates/{ => app}/plugin/src/commands/hello.js (100%) rename templates/{ => app}/plugin/src/commands/hello.ts (100%) rename templates/{ => app}/plugin/src/hooks/init.js (100%) rename templates/{ => app}/plugin/src/hooks/init.ts (100%) rename templates/{ => app}/plugin/src/index.ts (100%) rename templates/{ => app}/plugin/test/commands/hello.test.js (100%) rename templates/{ => app}/plugin/test/commands/hello.test.ts (100%) rename templates/{ => app}/plugin/test/hooks/init.test.js (100%) rename templates/{ => app}/plugin/test/hooks/init.test.ts (100%) rename templates/{ => app}/scripts/setup_git (100%) rename templates/{ => app}/scripts/yarn (100%) rename templates/{ => app}/single/bin/run.js (100%) rename templates/{ => app}/single/bin/run.ts (100%) rename templates/{ => app}/single/src/index.js (100%) rename templates/{ => app}/single/src/index.ts (100%) rename templates/{ => app}/single/test/index.test.js (100%) rename templates/{ => app}/single/test/index.test.ts (100%) rename templates/{ => app}/test/helpers/init.js (100%) rename templates/{ => app}/test/mocha.opts (100%) rename templates/{ => app}/test/tsconfig.json (100%) rename templates/{ => app}/tsconfig.json (100%) rename templates/{ => app}/tslint.json (100%) diff --git a/src/generators/app/index.ts b/src/generators/app/index.ts index a3ccb3d..b689e65 100644 --- a/src/generators/app/index.ts +++ b/src/generators/app/index.ts @@ -232,7 +232,7 @@ class App extends Generator { } writing() { - this.sourceRoot(path.join(__dirname, '../../../templates')) + this.sourceRoot(path.join(__dirname, '../../../templates/app')) switch (this.type) { case 'multi': diff --git a/templates/README.md.ejs b/templates/app/README.md.ejs similarity index 100% rename from templates/README.md.ejs rename to templates/app/README.md.ejs diff --git a/templates/appveyor.yml b/templates/app/appveyor.yml similarity index 100% rename from templates/appveyor.yml rename to templates/app/appveyor.yml diff --git a/templates/base/src/index.js b/templates/app/base/src/index.js similarity index 100% rename from templates/base/src/index.js rename to templates/app/base/src/index.js diff --git a/templates/base/src/index.ts b/templates/app/base/src/index.ts similarity index 100% rename from templates/base/src/index.ts rename to templates/app/base/src/index.ts diff --git a/templates/base/test/index.test.js b/templates/app/base/test/index.test.js similarity index 100% rename from templates/base/test/index.test.js rename to templates/app/base/test/index.test.js diff --git a/templates/base/test/index.test.ts b/templates/app/base/test/index.test.ts similarity index 100% rename from templates/base/test/index.test.ts rename to templates/app/base/test/index.test.ts diff --git a/templates/circle.yml.ejs b/templates/app/circle.yml.ejs similarity index 100% rename from templates/circle.yml.ejs rename to templates/app/circle.yml.ejs diff --git a/templates/editorconfig b/templates/app/editorconfig similarity index 100% rename from templates/editorconfig rename to templates/app/editorconfig diff --git a/templates/eslintrc b/templates/app/eslintrc similarity index 100% rename from templates/eslintrc rename to templates/app/eslintrc diff --git a/templates/gitattributes b/templates/app/gitattributes similarity index 100% rename from templates/gitattributes rename to templates/app/gitattributes diff --git a/templates/multi/bin/run.js b/templates/app/multi/bin/run.js similarity index 100% rename from templates/multi/bin/run.js rename to templates/app/multi/bin/run.js diff --git a/templates/multi/bin/run.ts b/templates/app/multi/bin/run.ts similarity index 100% rename from templates/multi/bin/run.ts rename to templates/app/multi/bin/run.ts diff --git a/templates/multi/src/index.js b/templates/app/multi/src/index.js similarity index 100% rename from templates/multi/src/index.js rename to templates/app/multi/src/index.js diff --git a/templates/multi/src/index.ts b/templates/app/multi/src/index.ts similarity index 100% rename from templates/multi/src/index.ts rename to templates/app/multi/src/index.ts diff --git a/templates/package-scripts.js.ejs b/templates/app/package-scripts.js.ejs similarity index 100% rename from templates/package-scripts.js.ejs rename to templates/app/package-scripts.js.ejs diff --git a/templates/plugin/src/commands/hello.js b/templates/app/plugin/src/commands/hello.js similarity index 100% rename from templates/plugin/src/commands/hello.js rename to templates/app/plugin/src/commands/hello.js diff --git a/templates/plugin/src/commands/hello.ts b/templates/app/plugin/src/commands/hello.ts similarity index 100% rename from templates/plugin/src/commands/hello.ts rename to templates/app/plugin/src/commands/hello.ts diff --git a/templates/plugin/src/hooks/init.js b/templates/app/plugin/src/hooks/init.js similarity index 100% rename from templates/plugin/src/hooks/init.js rename to templates/app/plugin/src/hooks/init.js diff --git a/templates/plugin/src/hooks/init.ts b/templates/app/plugin/src/hooks/init.ts similarity index 100% rename from templates/plugin/src/hooks/init.ts rename to templates/app/plugin/src/hooks/init.ts diff --git a/templates/plugin/src/index.ts b/templates/app/plugin/src/index.ts similarity index 100% rename from templates/plugin/src/index.ts rename to templates/app/plugin/src/index.ts diff --git a/templates/plugin/test/commands/hello.test.js b/templates/app/plugin/test/commands/hello.test.js similarity index 100% rename from templates/plugin/test/commands/hello.test.js rename to templates/app/plugin/test/commands/hello.test.js diff --git a/templates/plugin/test/commands/hello.test.ts b/templates/app/plugin/test/commands/hello.test.ts similarity index 100% rename from templates/plugin/test/commands/hello.test.ts rename to templates/app/plugin/test/commands/hello.test.ts diff --git a/templates/plugin/test/hooks/init.test.js b/templates/app/plugin/test/hooks/init.test.js similarity index 100% rename from templates/plugin/test/hooks/init.test.js rename to templates/app/plugin/test/hooks/init.test.js diff --git a/templates/plugin/test/hooks/init.test.ts b/templates/app/plugin/test/hooks/init.test.ts similarity index 100% rename from templates/plugin/test/hooks/init.test.ts rename to templates/app/plugin/test/hooks/init.test.ts diff --git a/templates/scripts/setup_git b/templates/app/scripts/setup_git similarity index 100% rename from templates/scripts/setup_git rename to templates/app/scripts/setup_git diff --git a/templates/scripts/yarn b/templates/app/scripts/yarn similarity index 100% rename from templates/scripts/yarn rename to templates/app/scripts/yarn diff --git a/templates/single/bin/run.js b/templates/app/single/bin/run.js similarity index 100% rename from templates/single/bin/run.js rename to templates/app/single/bin/run.js diff --git a/templates/single/bin/run.ts b/templates/app/single/bin/run.ts similarity index 100% rename from templates/single/bin/run.ts rename to templates/app/single/bin/run.ts diff --git a/templates/single/src/index.js b/templates/app/single/src/index.js similarity index 100% rename from templates/single/src/index.js rename to templates/app/single/src/index.js diff --git a/templates/single/src/index.ts b/templates/app/single/src/index.ts similarity index 100% rename from templates/single/src/index.ts rename to templates/app/single/src/index.ts diff --git a/templates/single/test/index.test.js b/templates/app/single/test/index.test.js similarity index 100% rename from templates/single/test/index.test.js rename to templates/app/single/test/index.test.js diff --git a/templates/single/test/index.test.ts b/templates/app/single/test/index.test.ts similarity index 100% rename from templates/single/test/index.test.ts rename to templates/app/single/test/index.test.ts diff --git a/templates/test/helpers/init.js b/templates/app/test/helpers/init.js similarity index 100% rename from templates/test/helpers/init.js rename to templates/app/test/helpers/init.js diff --git a/templates/test/mocha.opts b/templates/app/test/mocha.opts similarity index 100% rename from templates/test/mocha.opts rename to templates/app/test/mocha.opts diff --git a/templates/test/tsconfig.json b/templates/app/test/tsconfig.json similarity index 100% rename from templates/test/tsconfig.json rename to templates/app/test/tsconfig.json diff --git a/templates/tsconfig.json b/templates/app/tsconfig.json similarity index 100% rename from templates/tsconfig.json rename to templates/app/tsconfig.json diff --git a/templates/tslint.json b/templates/app/tslint.json similarity index 100% rename from templates/tslint.json rename to templates/app/tslint.json