@quilted/create 0.1.13 → 0.1.16

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 (73) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/build/cjs/_commonjsHelpers.cjs +10 -0
  3. package/build/cjs/app.cjs +303 -0
  4. package/build/cjs/index.cjs +5220 -5198
  5. package/build/cjs/index2.cjs +374 -0
  6. package/build/cjs/index3.cjs +7854 -0
  7. package/build/cjs/minimatch.cjs +1202 -0
  8. package/build/cjs/package-manager.cjs +305 -0
  9. package/build/cjs/package.cjs +410 -0
  10. package/build/cjs/parser-babel.cjs +59 -0
  11. package/build/cjs/parser-yaml.cjs +182 -0
  12. package/build/cjs/standalone.cjs +147 -0
  13. package/build/esm/_commonjsHelpers.mjs +7 -0
  14. package/build/esm/app.mjs +280 -0
  15. package/build/esm/index.mjs +5206 -5195
  16. package/build/esm/index2.mjs +365 -0
  17. package/build/esm/index3.mjs +7852 -0
  18. package/build/esm/minimatch.mjs +1200 -0
  19. package/build/esm/package-manager.mjs +275 -0
  20. package/build/esm/package.mjs +387 -0
  21. package/build/esm/parser-babel.mjs +57 -0
  22. package/build/esm/parser-yaml.mjs +180 -0
  23. package/build/esm/standalone.mjs +145 -0
  24. package/build/tsconfig.tsbuildinfo +1 -1
  25. package/build/typescript/app.d.ts +2 -0
  26. package/build/typescript/app.d.ts.map +1 -0
  27. package/build/typescript/help.d.ts +6 -0
  28. package/build/typescript/help.d.ts.map +1 -0
  29. package/build/typescript/package.d.ts +2 -0
  30. package/build/typescript/package.d.ts.map +1 -0
  31. package/build/typescript/shared/package-manager.d.ts +3 -0
  32. package/build/typescript/shared/package-manager.d.ts.map +1 -0
  33. package/build/typescript/shared/prompts.d.ts +22 -0
  34. package/build/typescript/shared/prompts.d.ts.map +1 -0
  35. package/build/typescript/shared/tsconfig.d.ts +3 -0
  36. package/build/typescript/shared/tsconfig.d.ts.map +1 -0
  37. package/build/typescript/shared.d.ts +21 -0
  38. package/build/typescript/shared.d.ts.map +1 -0
  39. package/package.json +13 -3
  40. package/source/app.ts +387 -0
  41. package/source/create.ts +43 -383
  42. package/source/help.ts +132 -0
  43. package/source/package.ts +510 -0
  44. package/source/shared/package-manager.ts +74 -0
  45. package/source/shared/prompts.ts +133 -0
  46. package/source/shared/tsconfig.ts +90 -0
  47. package/source/shared.ts +170 -0
  48. package/templates/{app → app-basic}/App.tsx +4 -7
  49. package/templates/{app → app-basic}/features/Start/Start.module.css +0 -0
  50. package/templates/{app → app-basic}/features/Start/Start.tsx +1 -1
  51. package/templates/{app → app-basic}/features/Start/index.ts +0 -0
  52. package/templates/{app → app-basic}/foundation/Head.tsx +8 -8
  53. package/templates/{app → app-basic}/foundation/Http.tsx +10 -6
  54. package/templates/{app → app-basic}/package.json +10 -1
  55. package/templates/{app → app-basic}/quilt.project.ts +0 -0
  56. package/templates/{app → app-basic}/server.tsx +0 -0
  57. package/templates/{app → app-basic}/shared/types.ts +0 -0
  58. package/templates/{app → app-basic}/tsconfig.json +0 -0
  59. package/templates/app-single-file/App.tsx +168 -0
  60. package/templates/app-single-file/package.json +30 -0
  61. package/templates/app-single-file/quilt.project.ts +6 -0
  62. package/templates/app-single-file/tsconfig.json +9 -0
  63. package/templates/{workspace → github}/_github/workflows/actions/prepare/action.yml +0 -0
  64. package/templates/{workspace → github}/_github/workflows/ci.yml +0 -0
  65. package/templates/package/package.json +24 -9
  66. package/templates/package/quilt.project.ts +1 -1
  67. package/templates/vscode/_vscode/extensions.json +7 -0
  68. package/templates/vscode/_vscode/settings.json +17 -0
  69. package/templates/workspace/_gitignore +1 -1
  70. package/templates/workspace/_prettierignore +1 -0
  71. package/templates/workspace/package.json +1 -7
  72. package/templates/workspace/tsconfig.json +6 -1
  73. package/templates/workspace/pnpm-workspace.yaml +0 -3
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "template-package",
3
- "description": "",
3
+ "description": "<YOUR DESCRIPTION HERE>",
4
4
  "type": "module",
5
- "version": "0.0.0",
6
5
  "license": "MIT",
6
+ "private": true,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "version": "0.0.0",
7
11
  "engines": {
8
12
  "node": ">=14.0.0"
9
13
  },
@@ -11,11 +15,9 @@
11
15
  "type": "git",
12
16
  "url": "https://github.com/<USER>/<REPOSITORY>"
13
17
  },
14
- "publishConfig": {
15
- "access": "public"
16
- },
17
18
  "exports": {
18
19
  ".": {
20
+ "quilt:from-source": "./source/index.ts",
19
21
  "quilt:esnext": "./build/esnext/index.esnext",
20
22
  "import": "./build/esm/index.mjs",
21
23
  "require": "./build/cjs/index.cjs"
@@ -23,18 +25,31 @@
23
25
  },
24
26
  "types": "./build/typescript/index.d.ts",
25
27
  "sideEffects": false,
26
- "dependencies": {},
28
+ "dependencies": {
29
+ "@types/react": "^17.0.0"
30
+ },
27
31
  "peerDependencies": {
28
- "@babel/runtime": ">=7.0.0 <8.0.0"
32
+ "@babel/runtime": ">=7.0.0 <8.0.0",
33
+ "react": "^17.0.0"
29
34
  },
30
35
  "peerDependenciesMeta": {
31
36
  "@babel/runtime": {
32
37
  "optional": true
38
+ },
39
+ "react": {
40
+ "optional": true
33
41
  }
34
42
  },
43
+ "devDependencies": {
44
+ "react": "npm:@quilted/react@^17.0.0"
45
+ },
35
46
  "eslintConfig": {
36
47
  "extends": [
37
- "@quilted/eslint-config/package"
48
+ "@quilted/eslint-config/package",
49
+ "@quilted/eslint-config/react"
38
50
  ]
39
- }
51
+ },
52
+ "browserslist": [
53
+ "extends @quilted/browserslist-config/defaults"
54
+ ]
40
55
  }
@@ -2,5 +2,5 @@ import {createPackage, quiltPackage} from '@quilted/craft';
2
2
 
3
3
  export default createPackage((pkg) => {
4
4
  pkg.entry({source: './source/index.ts'});
5
- pkg.use(quiltPackage());
5
+ pkg.use(quiltPackage({react: false}));
6
6
  });
@@ -0,0 +1,7 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "esbenp.prettier-vscode",
5
+ "GraphQL.vscode-graphql"
6
+ ]
7
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
4
+ "[javascript]": {
5
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
6
+ },
7
+ "[javascriptreact]": {
8
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
9
+ },
10
+ "[typescript]": {
11
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
12
+ },
13
+ "[typescriptreact]": {
14
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
15
+ },
16
+ "typescript.tsdk": "node_modules/typescript/lib"
17
+ }
@@ -1,10 +1,10 @@
1
1
  # Dependencies
2
2
  node_modules/
3
- pnpm-lock.yaml
4
3
 
5
4
  # Quilt build outputs
6
5
  .quilt/
7
6
  build/
7
+ packages/*/bin
8
8
 
9
9
  # Special operating system files
10
10
  .DS_STORE
@@ -1,5 +1,6 @@
1
1
  # Dependencies
2
2
  node_modules/
3
+ pnpm-lock.yaml
3
4
 
4
5
  # Quilt build outputs
5
6
  .quilt/
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "template-base",
2
+ "name": "template-workspace",
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
@@ -10,18 +10,12 @@
10
10
  "develop": "quilt develop",
11
11
  "build": "quilt build"
12
12
  },
13
- "dependencies": {
14
- "@quilted/quilt": "^0.5.0",
15
- "react": "npm:@quilted/react@^0.1.0",
16
- "react-dom": "npm:@quilted/react@^0.1.0"
17
- },
18
13
  "devDependencies": {
19
14
  "@quilted/browserslist-config": "^0.1.0",
20
15
  "@quilted/craft": "^0.1.0",
21
16
  "@quilted/eslint-config": "^0.1.0",
22
17
  "@quilted/prettier": "^0.2.0",
23
18
  "@quilted/typescript": "^0.2.0",
24
- "@types/react": "^17.0.0",
25
19
  "typescript": "^4.6.0"
26
20
  },
27
21
  "prettier": "@quilted/prettier",
@@ -3,6 +3,11 @@
3
3
  "compilerOptions": {
4
4
  "outDir": "build/typescript"
5
5
  },
6
- "include": ["quilt.workspace.ts", "**/quilt.project.ts"],
6
+ "include": [
7
+ "quilt.workspace.ts",
8
+ "**/quilt.project.ts",
9
+ "*.test.ts",
10
+ "*.test.tsx"
11
+ ],
7
12
  "references": []
8
13
  }
@@ -1,3 +0,0 @@
1
- packages:
2
- - 'app'
3
- - 'packages/*'