Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(create-next-app): add --ts, --typescript support #24655

Merged
merged 27 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
30d849b
fix: do not compile template/ contents
ctjlewis Apr 30, 2021
9ce18d6
feat: add TypeScript create-next-app template
ctjlewis Apr 30, 2021
f0284fd
feat: add support for `-t, --typescript` option
ctjlewis Apr 30, 2021
55183d6
Merge remote-tracking branch 'upstream/canary' into create-next-app-t…
ctjlewis Apr 30, 2021
2402e48
Merge remote-tracking branch 'upstream/canary' into create-next-app-t…
ctjlewis May 1, 2021
b4a63ea
fix: do not transpile output in dist/
ctjlewis May 1, 2021
cb9fc80
chore: update `--typescript` option description
ctjlewis May 1, 2021
dafce6d
chore: document `--typescript` option in README
ctjlewis May 1, 2021
5614659
chore: better documentation, refactoring
ctjlewis May 1, 2021
df59c93
chore: add `next` as `devDependency`
ctjlewis May 1, 2021
2e535cd
chore: added comments, refactored code
ctjlewis May 1, 2021
9af3f44
chore: formatting
ctjlewis May 1, 2021
1103ab5
chore: comments, refactor
ctjlewis May 1, 2021
b3bc8fa
fix: add create-next-app templates to eslintignore
ctjlewis May 1, 2021
9c2970f
fix: use `yarn install --offline` when offline
ctjlewis May 1, 2021
5faf149
fix: ensure gitignore is included in template
ctjlewis May 1, 2021
dc352a1
fix: prefer `--ts` over `-t`
ctjlewis May 1, 2021
d950d42
fix: add `typescript` as devDependency when `--typescript` flag passed
ctjlewis May 2, 2021
5ee6c33
chore: use hyphen when logging deps
ctjlewis May 2, 2021
1554eff
Merge branch 'canary' into create-next-app-typescript
ctjlewis May 2, 2021
874783a
Merge branch 'canary' into create-next-app-typescript
ctjlewis May 4, 2021
8c0887a
Default to strict mode for new apps
timneutkens May 6, 2021
7fd159e
Add types (same as docs)
timneutkens May 6, 2021
5231ccb
Next has to be in dependencies
timneutkens May 6, 2021
dde8297
Add note to getting-started doc
timneutkens May 6, 2021
95dfde4
Add test for typescript flag
timneutkens May 6, 2021
1371c4d
Update order of arguments
timneutkens May 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add create-next-app templates to eslintignore
This unused variable in a template was originally removed in order to prevent ESLint from throwing.
  • Loading branch information
ctjlewis committed May 1, 2021
commit b3bc8fad5b754fb6ced123365a4079ef7ca2fffd
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ packages/next-codemod/transforms/__tests__/**/*
packages/next-codemod/**/*.js
packages/next-codemod/**/*.d.ts
packages/next-env/**/*.d.ts
packages/create-next-app/templates/**
test/integration/async-modules/**
test/integration/eslint/**
test-timings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction

export default (res) => {
export default (req, res) => {
res.status(200).json({ name: 'John Doe' })
}