create-packer 1.14.2 → 1.14.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.
- package/package.json +1 -1
- package/template/solid/.editorconfig +0 -14
- package/template/solid/.env +0 -1
- package/template/solid/.env.development +0 -1
- package/template/solid/.eslintrc +0 -73
- package/template/solid/.gitignore +0 -31
- package/template/solid/.husky/commit-msg +0 -4
- package/template/solid/.husky/pre-commit +0 -4
- package/template/solid/.prettierignore +0 -4
- package/template/solid/.prettierrc +0 -18
- package/template/solid/.stylelintrc +0 -23
- package/template/solid/.vscode/extensions.json +0 -7
- package/template/solid/README.md +0 -30
- package/template/solid/commitlint.config.cjs +0 -1
- package/template/solid/package.json +0 -62
- package/template/solid/postcss.config.cjs +0 -9
- package/template/solid/public/favicon.ico +0 -0
- package/template/solid/src/entry-client.tsx +0 -3
- package/template/solid/src/entry-server.tsx +0 -3
- package/template/solid/src/root.css +0 -3
- package/template/solid/src/root.tsx +0 -39
- package/template/solid/src/routes/[...404].tsx +0 -19
- package/template/solid/src/routes/index.tsx +0 -17
- package/template/solid/src/vite-env.d.ts +0 -10
- package/template/solid/tailwind.config.cjs +0 -8
- package/template/solid/tsconfig.json +0 -17
- package/template/solid/vite.config.ts +0 -18
package/package.json
CHANGED
package/template/solid/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VITE_API_HOST=https://127.0.0.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VITE_API_HOST=https://127.0.0.1
|
package/template/solid/.eslintrc
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"plugins": ["@typescript-eslint", "solid", "prettier"],
|
|
5
|
-
"extends": [
|
|
6
|
-
"eslint:recommended",
|
|
7
|
-
"plugin:solid/recommended",
|
|
8
|
-
"plugin:import/recommended",
|
|
9
|
-
"plugin:import/typescript"
|
|
10
|
-
],
|
|
11
|
-
"settings": {
|
|
12
|
-
"import/resolver": {
|
|
13
|
-
"typescript": true,
|
|
14
|
-
"node": true
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"env": {
|
|
18
|
-
"browser": true,
|
|
19
|
-
"node": true,
|
|
20
|
-
"es6": true,
|
|
21
|
-
"jest": true
|
|
22
|
-
},
|
|
23
|
-
"parserOptions": {
|
|
24
|
-
"ecmaVersion": 2018,
|
|
25
|
-
"sourceType": "module",
|
|
26
|
-
"ecmaFeatures": {
|
|
27
|
-
"jsx": true
|
|
28
|
-
},
|
|
29
|
-
"useJSXTextNode": true
|
|
30
|
-
},
|
|
31
|
-
"rules": {
|
|
32
|
-
"import/export": "off",
|
|
33
|
-
"import/namespace": "off",
|
|
34
|
-
"import/order": [
|
|
35
|
-
"error",
|
|
36
|
-
{
|
|
37
|
-
"groups": [
|
|
38
|
-
"builtin",
|
|
39
|
-
"external",
|
|
40
|
-
"internal",
|
|
41
|
-
"parent",
|
|
42
|
-
"sibling",
|
|
43
|
-
"index",
|
|
44
|
-
"object",
|
|
45
|
-
"type"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"@typescript-eslint/no-var-requires": 0,
|
|
50
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
51
|
-
"@typescript-eslint/no-explicit-any": 0,
|
|
52
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
53
|
-
"@typescript-eslint/no-inferrable-types": [
|
|
54
|
-
"warn",
|
|
55
|
-
{
|
|
56
|
-
"ignoreParameters": true
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
|
60
|
-
"@typescript-eslint/member-delimiter-style": 0,
|
|
61
|
-
"@typescript-eslint/class-name-casing": 0,
|
|
62
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
63
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
64
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
65
|
-
"prettier/prettier": [
|
|
66
|
-
"error",
|
|
67
|
-
{
|
|
68
|
-
"endOfLine": "auto"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"no-constant-condition": "off"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Logs
|
|
2
|
-
logs
|
|
3
|
-
*.log
|
|
4
|
-
npm-debug.log*
|
|
5
|
-
yarn-debug.log*
|
|
6
|
-
yarn-error.log*
|
|
7
|
-
pnpm-debug.log*
|
|
8
|
-
lerna-debug.log*
|
|
9
|
-
|
|
10
|
-
node_modules
|
|
11
|
-
dist
|
|
12
|
-
dist-ssr
|
|
13
|
-
*.local
|
|
14
|
-
.solid
|
|
15
|
-
.output
|
|
16
|
-
.vercel
|
|
17
|
-
.netlify
|
|
18
|
-
netlify
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# Editor directories and files
|
|
22
|
-
.vscode/*
|
|
23
|
-
!.vscode/extensions.json
|
|
24
|
-
.history
|
|
25
|
-
.idea
|
|
26
|
-
.DS_Store
|
|
27
|
-
*.suo
|
|
28
|
-
*.ntvs*
|
|
29
|
-
*.njsproj
|
|
30
|
-
*.sln
|
|
31
|
-
*.sw?
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"overrides": [
|
|
3
|
-
{
|
|
4
|
-
"files": ".prettierrc",
|
|
5
|
-
"options": { "parser": "json" }
|
|
6
|
-
}
|
|
7
|
-
],
|
|
8
|
-
"printWidth": 100,
|
|
9
|
-
"tabWidth": 4,
|
|
10
|
-
"useTabs": false,
|
|
11
|
-
"semi": false,
|
|
12
|
-
"singleQuote": true,
|
|
13
|
-
"trailingComma": "none",
|
|
14
|
-
"bracketSpacing": true,
|
|
15
|
-
"jsxBracketSameLine": true,
|
|
16
|
-
"arrowParens": "avoid",
|
|
17
|
-
"rangeStart": 0
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "stylelint-config-standard",
|
|
3
|
-
"rules": {
|
|
4
|
-
"comment-empty-line-before": "never",
|
|
5
|
-
"no-empty-source": null,
|
|
6
|
-
"alpha-value-notation": null,
|
|
7
|
-
"color-function-notation": null,
|
|
8
|
-
"no-descending-specificity": null,
|
|
9
|
-
"at-rule-no-unknown": [
|
|
10
|
-
true,
|
|
11
|
-
{
|
|
12
|
-
"ignoreAtRules": ["tailwind", "apply", "use"]
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"selector-pseudo-class-no-unknown": [
|
|
16
|
-
true,
|
|
17
|
-
{
|
|
18
|
-
"ignorePseudoClasses": ["global"]
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"selector-class-pattern": null
|
|
22
|
-
}
|
|
23
|
-
}
|
package/template/solid/README.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# SolidStart
|
|
2
|
-
|
|
3
|
-
Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com);
|
|
4
|
-
|
|
5
|
-
## Creating a project
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# create a new project in the current directory
|
|
9
|
-
npm init solid@latest
|
|
10
|
-
|
|
11
|
-
# create a new project in my-app
|
|
12
|
-
npm init solid@latest my-app
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Developing
|
|
16
|
-
|
|
17
|
-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm run dev
|
|
21
|
-
|
|
22
|
-
# or start the server and open the app in a new browser tab
|
|
23
|
-
npm run dev -- --open
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Building
|
|
27
|
-
|
|
28
|
-
Solid apps are built with _adapters_, which optimise your project for deployment to different environments.
|
|
29
|
-
|
|
30
|
-
By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different adapter, add it to the `devDependencies` in `package.json` and specify in your `vite.config.js`.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = { extends: ['@commitlint/config-conventional'] }
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "solid",
|
|
3
|
-
"scripts": {
|
|
4
|
-
"prepare": "husky install",
|
|
5
|
-
"dev": "solid-start dev",
|
|
6
|
-
"build": "solid-start build",
|
|
7
|
-
"start": "solid-start start",
|
|
8
|
-
"up:vite": "pnpm up vite @vitejs/* -L",
|
|
9
|
-
"format": "prettier --write \"src/**/*.{ts,js,tsx,jsx,css,scss,less}\" \"./package.json\"",
|
|
10
|
-
"lint": "eslint ./src/**/*.{tsx,ts} && stylelint ./src/**/*.{css,scss,less}",
|
|
11
|
-
"lint:fix": "eslint ./src/**/*.{tsx,ts} --fix && stylelint ./src/**/*.{css,scss,less} --fix",
|
|
12
|
-
"cz": "cz",
|
|
13
|
-
"push": "npm run commit && git push",
|
|
14
|
-
"commit": "git add . && npm run cz"
|
|
15
|
-
},
|
|
16
|
-
"type": "module",
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@commitlint/cli": "17.6.1",
|
|
19
|
-
"@commitlint/config-conventional": "17.6.1",
|
|
20
|
-
"@commitlint/cz-commitlint": "17.5.0",
|
|
21
|
-
"@types/node": "18.16.0",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "5.59.0",
|
|
23
|
-
"@typescript-eslint/parser": "5.59.0",
|
|
24
|
-
"autoprefixer": "10.4.14",
|
|
25
|
-
"commitizen": "4.3.0",
|
|
26
|
-
"cssnano": "6.0.0",
|
|
27
|
-
"esbuild": "0.14.54",
|
|
28
|
-
"eslint": "8.39.0",
|
|
29
|
-
"eslint-import-resolver-typescript": "3.5.5",
|
|
30
|
-
"eslint-plugin-import": "2.27.5",
|
|
31
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
32
|
-
"eslint-plugin-solid": "0.12.1",
|
|
33
|
-
"husky": "8.0.3",
|
|
34
|
-
"inquirer": "8",
|
|
35
|
-
"postcss": "8.4.21",
|
|
36
|
-
"postcss-import": "15.1.0",
|
|
37
|
-
"postcss-nesting": "11.2.2",
|
|
38
|
-
"prettier": "2",
|
|
39
|
-
"solid-start-node": "0.2.19",
|
|
40
|
-
"stylelint": "15.6.0",
|
|
41
|
-
"stylelint-config-standard": "33.0.0",
|
|
42
|
-
"tailwindcss": "3.3.1",
|
|
43
|
-
"typescript": "4.9.4",
|
|
44
|
-
"vite": "4.1.4",
|
|
45
|
-
"vite-plugin-eslint": "1.8.1"
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"@solidjs/meta": "0.28.2",
|
|
49
|
-
"@solidjs/router": "0.8.2",
|
|
50
|
-
"solid-js": "1.7.2",
|
|
51
|
-
"solid-start": "0.2.26",
|
|
52
|
-
"undici": "5.15.1"
|
|
53
|
-
},
|
|
54
|
-
"engines": {
|
|
55
|
-
"node": ">=16.8"
|
|
56
|
-
},
|
|
57
|
-
"config": {
|
|
58
|
-
"commitizen": {
|
|
59
|
-
"path": "@commitlint/cz-commitlint"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
Binary file
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @refresh reload
|
|
2
|
-
import { Suspense } from 'solid-js'
|
|
3
|
-
import {
|
|
4
|
-
A,
|
|
5
|
-
Body,
|
|
6
|
-
ErrorBoundary,
|
|
7
|
-
FileRoutes,
|
|
8
|
-
Head,
|
|
9
|
-
Html,
|
|
10
|
-
Meta,
|
|
11
|
-
Routes,
|
|
12
|
-
Scripts,
|
|
13
|
-
Title
|
|
14
|
-
} from 'solid-start'
|
|
15
|
-
import './root.css'
|
|
16
|
-
|
|
17
|
-
export default function Root() {
|
|
18
|
-
return (
|
|
19
|
-
<Html lang="en">
|
|
20
|
-
<Head>
|
|
21
|
-
<Title>SolidStart - Bare</Title>
|
|
22
|
-
<Meta charset="utf-8" />
|
|
23
|
-
<Meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
24
|
-
</Head>
|
|
25
|
-
<Body>
|
|
26
|
-
<Suspense>
|
|
27
|
-
<ErrorBoundary>
|
|
28
|
-
<A href="/">Index</A>
|
|
29
|
-
<A href="/about">About</A>
|
|
30
|
-
<Routes>
|
|
31
|
-
<FileRoutes />
|
|
32
|
-
</Routes>
|
|
33
|
-
</ErrorBoundary>
|
|
34
|
-
</Suspense>
|
|
35
|
-
<Scripts />
|
|
36
|
-
</Body>
|
|
37
|
-
</Html>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Title } from 'solid-start'
|
|
2
|
-
import { HttpStatusCode } from 'solid-start/server'
|
|
3
|
-
|
|
4
|
-
export default function NotFound() {
|
|
5
|
-
return (
|
|
6
|
-
<main>
|
|
7
|
-
<Title>Not Found</Title>
|
|
8
|
-
<HttpStatusCode code={404} />
|
|
9
|
-
<h1>Page Not Found</h1>
|
|
10
|
-
<p>
|
|
11
|
-
Visit{' '}
|
|
12
|
-
<a href="https://start.solidjs.com" target="_blank">
|
|
13
|
-
start.solidjs.com
|
|
14
|
-
</a>{' '}
|
|
15
|
-
to learn how to build SolidStart apps.
|
|
16
|
-
</p>
|
|
17
|
-
</main>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Title } from 'solid-start'
|
|
2
|
-
|
|
3
|
-
export default function Home() {
|
|
4
|
-
return (
|
|
5
|
-
<main>
|
|
6
|
-
<Title>Hello World</Title>
|
|
7
|
-
<h1>Hello world!</h1>
|
|
8
|
-
<p>
|
|
9
|
-
Visit{' '}
|
|
10
|
-
<a href="https://start.solidjs.com" target="_blank">
|
|
11
|
-
start.solidjs.com
|
|
12
|
-
</a>{' '}
|
|
13
|
-
to learn how to build SolidStart apps.
|
|
14
|
-
</p>
|
|
15
|
-
</main>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowSyntheticDefaultImports": true,
|
|
4
|
-
"esModuleInterop": true,
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"moduleResolution": "node",
|
|
8
|
-
"jsxImportSource": "solid-js",
|
|
9
|
-
"jsx": "preserve",
|
|
10
|
-
"strict": true,
|
|
11
|
-
"types": ["solid-start/env"],
|
|
12
|
-
"baseUrl": "./",
|
|
13
|
-
"paths": {
|
|
14
|
-
"@/*": ["./src/*"]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import path from 'path'
|
|
2
|
-
import solid from 'solid-start/vite'
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
import eslint from 'vite-plugin-eslint'
|
|
5
|
-
|
|
6
|
-
export default defineConfig(({ command }) => {
|
|
7
|
-
return {
|
|
8
|
-
plugins: [eslint(), solid({ ssr: false })],
|
|
9
|
-
resolve: {
|
|
10
|
-
alias: {
|
|
11
|
-
'@': path.join(__dirname, 'src')
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
esbuild: {
|
|
15
|
-
drop: command === 'build' ? ['console', 'debugger'] : []
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
})
|