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

Add template for tsconfig.json + getMetadata.ts + manifest.json #145

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions .changeset/soft-shrimps-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-eth": patch
---

templates: added template for tsconfig.json file
1 change: 1 addition & 0 deletions my-tsconfig-test
portdeveloper marked this conversation as resolved.
Show resolved Hide resolved
Submodule my-tsconfig-test added at 8bb8e7
1 change: 1 addition & 0 deletions pwa
portdeveloper marked this conversation as resolved.
Show resolved Hide resolved
Submodule pwa added at 9c7cbc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
import { stringify, withDefaults } from '../../../utils.js'

const contents = ({ extraPlugins, extraCompilerOptions }) => `${stringify({
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
Expand All @@ -20,9 +22,23 @@
"plugins": [
{
"name": "next"
}
]
},
...(extraPlugins?.[0] || [])
],
portdeveloper marked this conversation as resolved.
Show resolved Hide resolved
...(extraCompilerOptions?.[0] || {})
},
portdeveloper marked this conversation as resolved.
Show resolved Hide resolved
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
})}`

export default withDefaults(contents, {
extraPlugins: null,
extraCompilerOptions: null
})
portdeveloper marked this conversation as resolved.
Show resolved Hide resolved
Loading