next-workers-kit 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +138 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +23 -0
- package/dist/eslint.d.ts +16 -0
- package/dist/eslint.js +237 -0
- package/dist/hooks/format.d.ts +1 -0
- package/dist/hooks/format.js +26 -0
- package/dist/hooks/typecheck.d.ts +1 -0
- package/dist/hooks/typecheck.js +24 -0
- package/dist/lib/doctor.d.ts +2 -0
- package/dist/lib/doctor.js +271 -0
- package/dist/lib/files.d.ts +2 -0
- package/dist/lib/files.js +28 -0
- package/dist/lib/jsonc.d.ts +1 -0
- package/dist/lib/jsonc.js +31 -0
- package/dist/lib/sync.d.ts +6 -0
- package/dist/lib/sync.js +52 -0
- package/dist/meta.d.ts +4 -0
- package/dist/meta.js +9 -0
- package/dist/next.d.ts +4 -0
- package/dist/next.js +15 -0
- package/dist/prettier.d.ts +3 -0
- package/dist/prettier.js +7 -0
- package/dist/rules/class-rule.d.ts +2 -0
- package/dist/rules/class-rule.js +29 -0
- package/dist/rules/feature-layout.d.ts +2 -0
- package/dist/rules/feature-layout.js +16 -0
- package/dist/rules/spacing.d.ts +1 -0
- package/dist/rules/spacing.js +23 -0
- package/dist/rules/typography.d.ts +5 -0
- package/dist/rules/typography.js +7 -0
- package/package.json +81 -4
- package/templates/init/claude-settings.json +25 -0
- package/templates/init/eslint.config.mjs +4 -0
- package/templates/init/gitignore +30 -0
- package/templates/init/knip.json +7 -0
- package/templates/init/mcp.json +8 -0
- package/templates/init/prettier.config.mjs +5 -0
- package/templates/init/prettierignore +4 -0
- package/templates/init/tsconfig.json +14 -0
- package/templates/synced/CLAUDE.md +1 -0
- package/templates/synced/dependabot.yml +19 -0
- package/templates/synced/editorconfig +12 -0
- package/templates/synced/gitattributes +1 -0
- package/templates/synced/lefthook.yml +9 -0
- package/templates/synced/npmrc +1 -0
- package/templates/synced/nvmrc +1 -0
- package/tsconfig.base.json +28 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# dependencies
|
|
2
|
+
/node_modules
|
|
3
|
+
|
|
4
|
+
# next.js
|
|
5
|
+
/.next/
|
|
6
|
+
/out/
|
|
7
|
+
/build
|
|
8
|
+
next-env.d.ts
|
|
9
|
+
*.tsbuildinfo
|
|
10
|
+
|
|
11
|
+
# testing
|
|
12
|
+
/coverage
|
|
13
|
+
|
|
14
|
+
# misc
|
|
15
|
+
.DS_Store
|
|
16
|
+
*.pem
|
|
17
|
+
npm-debug.log*
|
|
18
|
+
|
|
19
|
+
# env files
|
|
20
|
+
.env*
|
|
21
|
+
.dev.vars*
|
|
22
|
+
!.dev.vars.example
|
|
23
|
+
|
|
24
|
+
# cloudflare
|
|
25
|
+
/.open-next/
|
|
26
|
+
/.wrangler/
|
|
27
|
+
|
|
28
|
+
# agents
|
|
29
|
+
.claude/settings.local.json
|
|
30
|
+
CLAUDE.local.md
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "{{package}}/tsconfig.json",
|
|
3
|
+
"compilerOptions": { "paths": { "@/*": ["./src/*"] } },
|
|
4
|
+
"include": [
|
|
5
|
+
"next-env.d.ts",
|
|
6
|
+
"cloudflare-env.d.ts",
|
|
7
|
+
"**/*.ts",
|
|
8
|
+
"**/*.tsx",
|
|
9
|
+
"**/*.mts",
|
|
10
|
+
".next/types/**/*.ts",
|
|
11
|
+
".next/dev/types/**/*.ts"
|
|
12
|
+
],
|
|
13
|
+
"exclude": ["node_modules"]
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: npm
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: daily
|
|
7
|
+
cooldown:
|
|
8
|
+
default-days: 3
|
|
9
|
+
ignore:
|
|
10
|
+
# typescript-eslint supports TypeScript below 6.1.
|
|
11
|
+
- dependency-name: typescript
|
|
12
|
+
versions: [">=6.1"]
|
|
13
|
+
groups:
|
|
14
|
+
next:
|
|
15
|
+
patterns: ["next", "eslint-config-next"]
|
|
16
|
+
react:
|
|
17
|
+
patterns: ["react", "react-dom", "@types/react", "@types/react-dom"]
|
|
18
|
+
cloudflare:
|
|
19
|
+
patterns: ["@opennextjs/cloudflare", "wrangler"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
pre-commit:
|
|
2
|
+
parallel: true
|
|
3
|
+
jobs:
|
|
4
|
+
- name: prettier
|
|
5
|
+
glob: "*.{js,mjs,cjs,ts,tsx,mts,json,jsonc,css,md,yml,yaml}"
|
|
6
|
+
run: npx prettier --check {staged_files}
|
|
7
|
+
- name: eslint
|
|
8
|
+
glob: "*.{js,mjs,cjs,ts,tsx,mts}"
|
|
9
|
+
run: npx eslint --max-warnings=0 --no-warn-ignored {staged_files}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
allow-scripts-pin=false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"jsx": "react-jsx",
|
|
9
|
+
"types": ["node"],
|
|
10
|
+
"allowJs": false,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"incremental": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUncheckedIndexedAccess": true,
|
|
20
|
+
"noImplicitOverride": true,
|
|
21
|
+
"noImplicitReturns": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true,
|
|
23
|
+
"verbatimModuleSyntax": true,
|
|
24
|
+
"erasableSyntaxOnly": true,
|
|
25
|
+
"noUncheckedSideEffectImports": true,
|
|
26
|
+
"plugins": [{ "name": "next" }]
|
|
27
|
+
}
|
|
28
|
+
}
|