]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
refactor: rename `source` folder to `code`
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 23 Jul 2021 07:12:07 +0000 (15:12 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 23 Jul 2021 07:12:07 +0000 (15:12 +0800)
35 files changed:
index.js
template/code/default/cypress/integration/example.spec.js [moved from template/source/default/cypress/integration/example.spec.js with 100% similarity]
template/code/default/src/App.vue [moved from template/source/default/src/App.vue with 100% similarity]
template/code/default/src/assets/logo.png [moved from template/source/default/src/assets/logo.png with 100% similarity]
template/code/default/src/components/HelloWorld.vue [moved from template/source/default/src/components/HelloWorld.vue with 100% similarity]
template/code/default/src/main.js [moved from template/source/default/src/main.js with 100% similarity]
template/code/spa/cypress/integration/example.spec.js [moved from template/source/spa/cypress/integration/example.spec.js with 100% similarity]
template/code/spa/package.json [moved from template/source/spa/package.json with 100% similarity]
template/code/spa/src/App.vue [moved from template/source/spa/src/App.vue with 100% similarity]
template/code/spa/src/assets/logo.png [moved from template/source/spa/src/assets/logo.png with 100% similarity]
template/code/spa/src/components/HelloWorld.vue [moved from template/source/spa/src/components/HelloWorld.vue with 100% similarity]
template/code/spa/src/components/__tests__/HelloWorld.spec.js [moved from template/source/spa/src/components/__tests__/HelloWorld.spec.js with 100% similarity]
template/code/spa/src/main.js [moved from template/source/spa/src/main.js with 100% similarity]
template/code/spa/src/router/index.js [moved from template/source/spa/src/router/index.js with 100% similarity]
template/code/spa/src/store/index.js [moved from template/source/spa/src/store/index.js with 100% similarity]
template/code/spa/src/views/About.vue [moved from template/source/spa/src/views/About.vue with 100% similarity]
template/code/spa/src/views/Home.vue [moved from template/source/spa/src/views/Home.vue with 100% similarity]
template/code/typescript-default/cypress/integration/example.spec.ts [moved from template/source/typescript-default/cypress/integration/example.spec.ts with 100% similarity]
template/code/typescript-default/src/App.vue [moved from template/source/typescript-default/src/App.vue with 100% similarity]
template/code/typescript-default/src/assets/logo.png [moved from template/source/typescript-default/src/assets/logo.png with 100% similarity]
template/code/typescript-default/src/components/HelloWorld.vue [moved from template/source/typescript-default/src/components/HelloWorld.vue with 100% similarity]
template/code/typescript-default/src/main.ts [moved from template/source/typescript-default/src/main.ts with 100% similarity]
template/code/typescript-spa/cypress/integration/example.spec.ts [moved from template/source/typescript-spa/cypress/integration/example.spec.ts with 100% similarity]
template/code/typescript-spa/package.json [moved from template/source/typescript-spa/package.json with 100% similarity]
template/code/typescript-spa/src/App.vue [moved from template/source/typescript-spa/src/App.vue with 100% similarity]
template/code/typescript-spa/src/assets/logo.png [moved from template/source/typescript-spa/src/assets/logo.png with 100% similarity]
template/code/typescript-spa/src/components/HelloWorld.vue [moved from template/source/typescript-spa/src/components/HelloWorld.vue with 100% similarity]
template/code/typescript-spa/src/components/__tests__/HelloWorld.spec.ts [moved from template/source/typescript-spa/src/components/__tests__/HelloWorld.spec.ts with 100% similarity]
template/code/typescript-spa/src/main.ts [moved from template/source/typescript-spa/src/main.ts with 100% similarity]
template/code/typescript-spa/src/router/index.ts [moved from template/source/typescript-spa/src/router/index.ts with 100% similarity]
template/code/typescript-spa/src/shims-vue.d.ts [moved from template/source/typescript-spa/src/shims-vue.d.ts with 100% similarity]
template/code/typescript-spa/src/store/index.ts [moved from template/source/typescript-spa/src/store/index.ts with 100% similarity]
template/code/typescript-spa/src/views/About.vue [moved from template/source/typescript-spa/src/views/About.vue with 100% similarity]
template/code/typescript-spa/src/views/Home.vue [moved from template/source/typescript-spa/src/views/Home.vue with 100% similarity]
template/code/typescript-spa/src/vite-env.d.ts [moved from template/source/typescript-spa/src/vite-env.d.ts with 100% similarity]

index 0d33e063f7ce9fad11cc65181815c23fcc8fd5a6..cf411850a31e318e2bdf58e4535ed6ba18fbcff8 100644 (file)
--- a/index.js
+++ b/index.js
@@ -22,10 +22,10 @@ import renderTemplate from './renderTemplate.js'
 //   renderTemplate('config/typescript')
 // }
 
-// sourceTemplateName =
+// templateName =
 //   (isTs ? 'typescript-' : '') +
 //   (isSPA ? 'spa' : 'default')
-// renderTemplate(`source/${sourceTemplateName}`)
+// renderTemplate(`code/${templateName}`)
 
 // Cleanup.