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.
Files changed (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -2
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +23 -0
  5. package/dist/eslint.d.ts +16 -0
  6. package/dist/eslint.js +237 -0
  7. package/dist/hooks/format.d.ts +1 -0
  8. package/dist/hooks/format.js +26 -0
  9. package/dist/hooks/typecheck.d.ts +1 -0
  10. package/dist/hooks/typecheck.js +24 -0
  11. package/dist/lib/doctor.d.ts +2 -0
  12. package/dist/lib/doctor.js +271 -0
  13. package/dist/lib/files.d.ts +2 -0
  14. package/dist/lib/files.js +28 -0
  15. package/dist/lib/jsonc.d.ts +1 -0
  16. package/dist/lib/jsonc.js +31 -0
  17. package/dist/lib/sync.d.ts +6 -0
  18. package/dist/lib/sync.js +52 -0
  19. package/dist/meta.d.ts +4 -0
  20. package/dist/meta.js +9 -0
  21. package/dist/next.d.ts +4 -0
  22. package/dist/next.js +15 -0
  23. package/dist/prettier.d.ts +3 -0
  24. package/dist/prettier.js +7 -0
  25. package/dist/rules/class-rule.d.ts +2 -0
  26. package/dist/rules/class-rule.js +29 -0
  27. package/dist/rules/feature-layout.d.ts +2 -0
  28. package/dist/rules/feature-layout.js +16 -0
  29. package/dist/rules/spacing.d.ts +1 -0
  30. package/dist/rules/spacing.js +23 -0
  31. package/dist/rules/typography.d.ts +5 -0
  32. package/dist/rules/typography.js +7 -0
  33. package/package.json +81 -4
  34. package/templates/init/claude-settings.json +25 -0
  35. package/templates/init/eslint.config.mjs +4 -0
  36. package/templates/init/gitignore +30 -0
  37. package/templates/init/knip.json +7 -0
  38. package/templates/init/mcp.json +8 -0
  39. package/templates/init/prettier.config.mjs +5 -0
  40. package/templates/init/prettierignore +4 -0
  41. package/templates/init/tsconfig.json +14 -0
  42. package/templates/synced/CLAUDE.md +1 -0
  43. package/templates/synced/dependabot.yml +19 -0
  44. package/templates/synced/editorconfig +12 -0
  45. package/templates/synced/gitattributes +1 -0
  46. package/templates/synced/lefthook.yml +9 -0
  47. package/templates/synced/npmrc +1 -0
  48. package/templates/synced/nvmrc +1 -0
  49. package/tsconfig.base.json +28 -0
@@ -0,0 +1,4 @@
1
+ import { defineConfig } from "eslint/config";
2
+ import { config } from "{{package}}/eslint";
3
+
4
+ export default defineConfig([...config({ root: import.meta.dirname })]);
@@ -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,7 @@
1
+ {
2
+ "$schema": "https://unpkg.com/knip@6/schema.json",
3
+ "entry": ["open-next.config.ts"],
4
+ "ignoreIssues": {
5
+ "src/components/ui/**": ["exports", "types"]
6
+ }
7
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "next-devtools": {
4
+ "command": "npx",
5
+ "args": ["-y", "next-devtools-mcp@latest"]
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,5 @@
1
+ import base from "{{package}}/prettier";
2
+
3
+ const config = { ...base, tailwindStylesheet: "./src/app/globals.css" };
4
+
5
+ export default config;
@@ -0,0 +1,4 @@
1
+ package-lock.json
2
+ cloudflare-env.d.ts
3
+ src/components/ui
4
+ AGENTS.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,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+ indent_size = 2
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
@@ -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
+ }