Skip to content

Commit 90eb64f

Browse files
committed
More fixes
1 parent e07e163 commit 90eb64f

File tree

9 files changed

+31
-33
lines changed

9 files changed

+31
-33
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# create-web3-frontend
2+
3+
The fastest way to get started with a fully-fledged web3 frontend setup consisting of Next.js, [wagmi](https://wagmi.sh) and [Tailwind CSS](https://tailwindcss.com).
4+
5+
```bash
6+
npx create-web3-frontend my-app
7+
8+
# For TypeScript
9+
npx create-web3-frontend --ts my-app
10+
```
11+
12+
## Available options
13+
14+
1. `--ts` or `--typescript`: Use TypeScript instead of JavaScript.
15+
2. `'--use-npm`: Use `npm` for installing dependencies.
16+
3. `'--use-pnpm`: Use `pnpm` for installing dependencies.
17+
18+
## Thanks
19+
20+
This project is inspired by and re-uses a lot of code from [create-next-app](https://github.com/vercel/next.js/tree/canary/packages/create-next-app/).

create-app.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable import/no-extraneous-dependencies */
2-
import retry from 'async-retry';
32
import chalk from 'chalk';
43
import cpy from 'cpy';
54
import fs from 'fs';
@@ -49,7 +48,9 @@ export async function createApp({
4948
const isOnline = !useYarn || (await getOnline());
5049
const originalDirectory = process.cwd();
5150

52-
console.log(`Creating a new Next.js app in ${chalk.green(root)}.`);
51+
console.log(
52+
`🚀 Setting up your new Web3 frontend in ${chalk.green(root)}.`
53+
);
5354
console.log();
5455

5556
process.chdir(root);
@@ -145,6 +146,7 @@ export async function createApp({
145146
cwd: path.join(__dirname, 'templates', template),
146147
rename: (name) => {
147148
switch (name) {
149+
case 'env.example':
148150
case 'gitignore':
149151
case 'eslintrc.json': {
150152
return '.'.concat(name);

index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,16 @@ async function notifyUpdate(): Promise<void> {
146146

147147
console.log();
148148
console.log(
149-
chalk.yellow.bold('A new version of `create-next-app` is available!')
149+
chalk.yellow.bold(
150+
'A new version of `create-web3-frontend` is available!'
151+
)
150152
);
151153
console.log(
152154
'You can update by running: ' +
153155
chalk.cyan(
154156
pkgManager === 'yarn'
155-
? 'yarn global add create-next-app'
156-
: `${pkgManager} install --global create-next-app`
157+
? 'yarn global add create-web3-frontend'
158+
: `${pkgManager} install --global create-web3-frontend`
157159
)
158160
);
159161
console.log();

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@
2727
"prepublish": "yarn release"
2828
},
2929
"devDependencies": {
30-
"@types/async-retry": "1.4.2",
3130
"@types/cross-spawn": "^6.0.2",
3231
"@types/node": "^12.6.8",
3332
"@types/prompts": "2.0.1",
3433
"@types/rimraf": "3.0.0",
3534
"@types/tar": "4.0.3",
3635
"@types/validate-npm-package-name": "3.0.0",
3736
"@vercel/ncc": "0.33.1",
38-
"async-retry": "1.3.1",
3937
"chalk": "2.4.2",
4038
"commander": "2.20.0",
4139
"cpy": "7.3.0",

templates/default/README-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-web3-frontend`](https://github.com/dhaiwat10/create-web3-frontend).
22

33
## Getting Started
44

File renamed without changes.

templates/typescript/README-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-web3-frontend`](https://github.com/dhaiwat10/create-web3-frontend).
22

33
## Getting Started
44

File renamed without changes.

yarn.lock

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727
dependencies:
2828
defer-to-connect "^2.0.0"
2929

30-
31-
version "1.4.2"
32-
resolved "https://registry.yarnpkg.com/@types/async-retry/-/async-retry-1.4.2.tgz#7f910188cd3893b51e32df51765ee8d5646053e3"
33-
integrity sha512-GUDuJURF0YiJZ+CBjNQA0+vbP/VHlJbB0sFqkzsV7EcOPRfurVonXpXKAt3w8qIjM1TEzpz6hc6POocPvHOS3w==
34-
dependencies:
35-
"@types/retry" "*"
36-
3730
"@types/cacheable-request@^6.0.1":
3831
version "6.0.2"
3932
resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.2.tgz#c324da0197de0a98a2312156536ae262429ff6b9"
@@ -105,11 +98,6 @@
10598
dependencies:
10699
"@types/node" "*"
107100

108-
"@types/retry@*":
109-
version "0.12.1"
110-
resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.1.tgz#d8f1c0d0dc23afad6dc16a9e993a0865774b4065"
111-
integrity sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==
112-
113101
114102
version "3.0.0"
115103
resolved "https://registry.yarnpkg.com/@types/rimraf/-/rimraf-3.0.0.tgz#b9d03f090ece263671898d57bb7bb007023ac19f"
@@ -185,13 +173,6 @@ assign-symbols@^1.0.0:
185173
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
186174
integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=
187175

188-
189-
version "1.3.1"
190-
resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.3.1.tgz#139f31f8ddce50c0870b0ba558a6079684aaed55"
191-
integrity sha512-aiieFW/7h3hY0Bq5d+ktDBejxuwR78vRu9hDUdR8rNhSaQ29VzPL4AoIRG7D/c7tdenwOcKvgPM6tIxB3cB6HA==
192-
dependencies:
193-
retry "0.12.0"
194-
195176
atob@^2.1.2:
196177
version "2.1.2"
197178
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
@@ -1166,11 +1147,6 @@ ret@~0.1.10:
11661147
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
11671148
integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==
11681149

1169-
1170-
version "0.12.0"
1171-
resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b"
1172-
integrity sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=
1173-
11741150
11751151
version "3.0.0"
11761152
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b"

0 commit comments

Comments
 (0)