Skip to content

Commit

Permalink
feat(template): remove author and description from prompt (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored Apr 17, 2020
1 parent 71d84b1 commit 1d7d0c4
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 43 deletions.
2 changes: 0 additions & 2 deletions packages/cna-template/template/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# <%= name %>

> <%= description %>
## Build Setup

```bash
Expand Down
2 changes: 0 additions & 2 deletions packages/cna-template/template/_package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"name": "<%= name %>",
"version": "1.0.0",
"description": "<%= description %>",
"author": "<%= author %>",
"private": true,
"scripts": {
<%_ if (server === 'none') { _%>
Expand Down
3 changes: 0 additions & 3 deletions packages/cna-template/template/nuxt/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<h1 class="title">
<%= name %>
</h1>
<h2 class="subtitle">
<%= description %>
</h2>
<div class="links">
<a
href="https://nuxtjs.org/"
Expand Down
14 changes: 0 additions & 14 deletions packages/create-nuxt-app/lib/prompts.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
const { random } = require('superb')

module.exports = [
{
name: 'name',
message: 'Project name',
default: '{outFolder}'
},
{
name: 'description',
message: 'Project description',
default: `My ${random()} Nuxt.js project`
},
{
name: 'author',
type: 'string',
message: 'Author name',
default: '{gitUser.name}',
store: true
},
{
name: 'language',
message: 'Choose programming language',
Expand Down
1 change: 0 additions & 1 deletion packages/create-nuxt-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"glob": "^7.1.6",
"lodash": "^4.17.15",
"sao": "^1.7.0",
"superb": "^4.0.0",
"validate-npm-package-name": "^3.0.0"
},
"authors": [
Expand Down
2 changes: 0 additions & 2 deletions packages/create-nuxt-app/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const generator = path.join(__dirname, '../lib')
const getPkgFields = (pkg) => {
pkg = JSON.parse(pkg)
delete pkg.name
delete pkg.author
delete pkg.version
delete pkg.description
return pkg
}

Expand Down
19 changes: 0 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7241,13 +7241,6 @@ strong-log-transformer@^2.0.0:
minimist "^1.2.0"
through "^2.3.4"

superb@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/superb/-/superb-4.0.0.tgz#1d1ec7b29559e39bdf5d3f45f24dd3974762b903"
integrity sha512-4Kie62y4kBxNGXXWJAVR63sdQlswBZq2G/x1d37pRQbjqfhIH1WPhirZFHZUpI76uCDrFnxej0F3NtEy1/H+OQ==
dependencies:
unique-random-array "^2.0.0"

supertap@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/supertap/-/supertap-1.0.0.tgz#bd9751c7fafd68c68cf8222a29892206a119fa9e"
Expand Down Expand Up @@ -7589,18 +7582,6 @@ unique-filename@^1.1.1:
dependencies:
unique-slug "^2.0.0"

unique-random-array@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/unique-random-array/-/unique-random-array-2.0.0.tgz#9e639b1a9dc141e97350a6fc6f17da4b0717b1ad"
integrity sha512-xR87O95fZ7hljw84J8r1YDXrvffPLWN513BNOP4Bv0KcgG5dyEUrHwsvP7mVAOKg4Y80uqRbpUk0GKr8il70qg==
dependencies:
unique-random "^2.1.0"

unique-random@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/unique-random/-/unique-random-2.1.0.tgz#7a8413da5176d028567168b57125ac5c0cec5c25"
integrity sha512-iQ1ZgWac3b8YxGThecQFRQiqgk6xFERRwHZIWeVVsqlbmgCRl0PY13R4mUkodNgctmg5b5odG1nyW/IbOxQTqg==

unique-slug@^2.0.0:
version "2.0.2"
resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.2.tgz#baabce91083fc64e945b0f3ad613e264f7cd4e6c"
Expand Down

0 comments on commit 1d7d0c4

Please sign in to comment.