@vpnsin/devkit 0.1.3

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 (57) hide show
  1. package/README.md +318 -0
  2. package/bin/cli.js +431 -0
  3. package/commitlint/index.js +7 -0
  4. package/eslint/base.js +50 -0
  5. package/eslint/next.js +27 -0
  6. package/jest/index.js +20 -0
  7. package/lint-staged/index.js +8 -0
  8. package/package.json +80 -0
  9. package/prettier/index.js +11 -0
  10. package/templates/README.template.md +51 -0
  11. package/templates/app/backend/Dockerfile +24 -0
  12. package/templates/app/backend/dockerignore +7 -0
  13. package/templates/app/backend/env.example +2 -0
  14. package/templates/app/backend/src/app.ts +22 -0
  15. package/templates/app/backend/src/env.ts +8 -0
  16. package/templates/app/backend/src/routes/health.ts +7 -0
  17. package/templates/app/backend/src/server.ts +19 -0
  18. package/templates/app/frontend/app/globals.css +28 -0
  19. package/templates/app/frontend/app/layout.tsx +16 -0
  20. package/templates/app/frontend/app/page.tsx +10 -0
  21. package/templates/app/frontend/env.example +5 -0
  22. package/templates/app/frontend/next.config.mjs +6 -0
  23. package/templates/claude/skills/design-craft/SKILL.md +226 -0
  24. package/templates/cspell.json +30 -0
  25. package/templates/dependabot.yml +18 -0
  26. package/templates/editorconfig +15 -0
  27. package/templates/github/CODEOWNERS +12 -0
  28. package/templates/github/CONTRIBUTING.md +51 -0
  29. package/templates/github/ISSUE_TEMPLATE/bug_report.yml +34 -0
  30. package/templates/github/ISSUE_TEMPLATE/config.yml +5 -0
  31. package/templates/github/ISSUE_TEMPLATE/feature_request.yml +23 -0
  32. package/templates/github/PULL_REQUEST_TEMPLATE.md +27 -0
  33. package/templates/github/SECURITY.md +24 -0
  34. package/templates/github/workflows/ci.yml +55 -0
  35. package/templates/github/workflows/codeql.yml +35 -0
  36. package/templates/github/workflows/dependency-review.yml +23 -0
  37. package/templates/github/workflows/lighthouse.yml +39 -0
  38. package/templates/github/workflows/publish.yml +38 -0
  39. package/templates/github/workflows/release-please-publish.yml +54 -0
  40. package/templates/github/workflows/release-please.yml +22 -0
  41. package/templates/github/workflows/scorecard.yml +41 -0
  42. package/templates/github/workflows/sonarqube.yml +31 -0
  43. package/templates/github/workflows/trivy.yml +43 -0
  44. package/templates/husky/commit-msg +1 -0
  45. package/templates/husky/pre-commit +1 -0
  46. package/templates/lighthouserc.json +23 -0
  47. package/templates/markdownlint-cli2.jsonc +20 -0
  48. package/templates/npmrc +9 -0
  49. package/templates/nvmrc +1 -0
  50. package/templates/release-please-config.json +14 -0
  51. package/templates/sonar-project.properties +13 -0
  52. package/templates/vscode/extensions.json +53 -0
  53. package/templates/vscode/settings.json +70 -0
  54. package/tsconfig/base.json +17 -0
  55. package/tsconfig/next.json +16 -0
  56. package/tsconfig/node.json +14 -0
  57. package/vitest/index.js +22 -0
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "devkit node",
4
+ "_comment": "For Node.js libraries/services. Set outDir/rootDir/include in your repo tsconfig (path options must be relative to your project, not this base).",
5
+ "extends": "./base.json",
6
+ "compilerOptions": {
7
+ "lib": ["ES2022"],
8
+ "module": "NodeNext",
9
+ "moduleResolution": "NodeNext",
10
+ "declaration": true,
11
+ "declarationMap": true,
12
+ "sourceMap": true
13
+ }
14
+ }
@@ -0,0 +1,22 @@
1
+ // Base Vitest config (Node). Wrap with defineConfig in your repo so Vitest's
2
+ // types apply:
3
+ // // vitest.config.mjs
4
+ // import { defineConfig } from 'vitest/config';
5
+ // import base from 'devkit/vitest';
6
+ // export default defineConfig(base);
7
+ //
8
+ // Requires `vitest` and `@vitest/coverage-v8` in the consuming repo (the
9
+ // `devkit init --vitest` CLI installs them). For component tests in a
10
+ // browser-like DOM, set `test.environment` to 'jsdom' and add the dep.
11
+ export default {
12
+ test: {
13
+ environment: 'node',
14
+ globals: true,
15
+ include: ['**/*.{test,spec}.{ts,tsx,js,jsx}'],
16
+ coverage: {
17
+ provider: 'v8',
18
+ reportsDirectory: 'coverage',
19
+ include: ['src/**'],
20
+ },
21
+ },
22
+ };