create-packer 1.7.8 → 1.8.2
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/bin/clis/createTemp.d.ts +5 -0
- package/bin/clis/createTemp.js +57 -0
- package/bin/index.js +6 -11
- package/bin/utils/index.d.ts +3 -1
- package/bin/utils/index.js +24 -4
- package/package.json +16 -19
- package/template/{doc/docusaurus → docusaurus}/.gitignore +0 -0
- package/template/{doc/docusaurus → docusaurus}/.prettierignore +0 -0
- package/template/{desktop-app/electron/app → docusaurus}/.prettierrc.js +0 -0
- package/template/{doc/docusaurus → docusaurus}/README.md +0 -0
- package/template/{doc/docusaurus → docusaurus}/babel.config.js +0 -0
- package/template/{doc/docusaurus → docusaurus}/blog/2019-05-28-hola.md +0 -0
- package/template/{doc/docusaurus → docusaurus}/blog/2019-05-29-hello-world.md +0 -0
- package/template/{doc/docusaurus → docusaurus}/blog/2019-05-30-welcome.md +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc1.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc2.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc3.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc4.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc2/doc1.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc2/doc2.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc2/doc3.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docs/doc2/mdx4.mdx +0 -0
- package/template/{doc/docusaurus → docusaurus}/docusaurus.config.js +0 -0
- package/template/{doc/docusaurus → docusaurus}/package.json +19 -19
- package/template/{doc/docusaurus → docusaurus}/sidebars.js +0 -0
- package/template/{doc/docusaurus → docusaurus}/src/css/custom.css +0 -0
- package/template/{doc/docusaurus → docusaurus}/src/pages/index.tsx +0 -0
- package/template/{doc/docusaurus → docusaurus}/src/pages/styles.module.css +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/.nojekyll +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/docusaurus.png +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/favicon.ico +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/logo.svg +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/tutorial/docsVersionDropdown.png +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/tutorial/localeDropdown.png +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/undraw_docusaurus_mountain.svg +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/undraw_docusaurus_react.svg +0 -0
- package/template/{doc/docusaurus → docusaurus}/static/img/undraw_docusaurus_tree.svg +0 -0
- package/template/{doc/docusaurus → docusaurus}/tsconfig.json +0 -0
- package/template/nest/.eslintrc.js +25 -0
- package/template/nest/.gitignore +35 -0
- package/template/nest/.husky/pre-commit +4 -0
- package/template/nest/.prettierrc +6 -0
- package/template/{node/nest → nest}/README.md +1 -1
- package/template/{node/nest → nest}/nest-cli.json +1 -0
- package/template/nest/package.json +74 -0
- package/template/{node/nest → nest}/src/app.controller.spec.ts +1 -1
- package/template/{node/nest → nest}/src/app.controller.ts +0 -0
- package/template/{node/nest → nest}/src/app.module.ts +1 -1
- package/template/{node/nest → nest}/src/app.service.ts +0 -0
- package/template/{node/nest → nest}/src/main.ts +0 -0
- package/template/nest/src/utils/transform.interceptor.ts +26 -0
- package/template/{node/nest → nest}/test/app.e2e-spec.ts +6 -3
- package/template/{node/nest → nest}/test/jest-e2e.json +0 -0
- package/template/nest/tsconfig.build.json +5 -0
- package/template/{node/nest → nest}/tsconfig.json +7 -1
- package/template/{web-app/rc-recoil → react-cra}/.env +0 -0
- package/template/{web-app/rc-recoil → react-cra}/.gitignore +0 -0
- package/template/react-cra/.husky/pre-commit +4 -0
- package/template/{desktop-app/electron/app → react-cra}/.prettierignore +0 -0
- package/template/{doc/docusaurus → react-cra}/.prettierrc.js +0 -0
- package/template/{web-app/rc-recoil → react-cra}/.stylelintrc.js +0 -0
- package/template/{web-app/rc-recoil → react-cra}/README.md +0 -0
- package/template/{web-app/rc-recoil → react-cra}/craco.config.js +0 -0
- package/template/react-cra/package.json +61 -0
- package/template/{web-app/rc-recoil → react-cra}/public/favicon.ico +0 -0
- package/template/{web-app/rc-recoil → react-cra}/public/index.html +0 -0
- package/template/{web-app/rc-recoil → react-cra}/public/manifest.json +0 -0
- package/template/react-cra/src/Layout/index.tsx +8 -0
- package/template/{web-app/rc-recoil → react-cra}/src/Layout/typings.ts +0 -0
- package/template/{web-app/rc-recoil → react-cra}/src/index.scss +0 -0
- package/template/react-cra/src/index.tsx +24 -0
- package/template/{web-app/rc-recoil → react-cra}/src/logo.svg +0 -0
- package/template/{web-app/rc-recoil → react-cra}/src/pages/home/Home.scss +0 -0
- package/template/react-cra/src/pages/home/index.test.tsx +9 -0
- package/template/{web-app/rc-recoil → react-cra}/src/pages/home/index.tsx +0 -0
- package/template/{web-app/rc-recoil → react-cra}/src/react-app-env.d.ts +0 -0
- package/template/{web-app/rc-recoil → react-cra}/src/reportWebVitals.ts +0 -0
- package/template/react-cra/src/routes/index.ts +15 -0
- package/template/{web-app/rc-recoil → react-cra}/src/setupTests.ts +0 -0
- package/template/{web-app/rc-recoil → react-cra}/tsconfig.json +0 -0
- package/bin/clis/Create.d.ts +0 -4
- package/bin/clis/Create.js +0 -47
- package/bin/clis/Project.d.ts +0 -30
- package/bin/clis/Project.js +0 -65
- package/template/desktop-app/electron/.gitignore +0 -34
- package/template/desktop-app/electron/app/.eslintrc +0 -28
- package/template/desktop-app/electron/app/.gitignore +0 -19
- package/template/desktop-app/electron/app/babel.config.js +0 -19
- package/template/desktop-app/electron/app/package.json +0 -106
- package/template/desktop-app/electron/app/src/configs/appConfig.ts +0 -8
- package/template/desktop-app/electron/app/src/lib/AppWin.ts +0 -17
- package/template/desktop-app/electron/app/src/lib/DefaultWin.ts +0 -40
- package/template/desktop-app/electron/app/src/main.ts +0 -38
- package/template/desktop-app/electron/app/src/utils/updateAction.ts +0 -39
- package/template/desktop-app/electron/app/tsconfig.json +0 -20
- package/template/desktop-app/electron/app/webpack.config.js +0 -49
- package/template/desktop-app/electron/app/yarn.lock +0 -6479
- package/template/desktop-app/electron/package.json +0 -20
- package/template/desktop-app/electron/utils/package.js +0 -40
- package/template/desktop-app/electron/yarn.lock +0 -42
- package/template/doc/docusaurus/yarn.lock +0 -9466
- package/template/lib/gulp/.eslintrc +0 -40
- package/template/lib/gulp/.gitignore +0 -31
- package/template/lib/gulp/.prettierignore +0 -7
- package/template/lib/gulp/.prettierrc.js +0 -21
- package/template/lib/gulp/LICENSE +0 -21
- package/template/lib/gulp/README.md +0 -1
- package/template/lib/gulp/jest.config.js +0 -8
- package/template/lib/gulp/package.json +0 -35
- package/template/lib/gulp/scripts/build.js +0 -18
- package/template/lib/gulp/src/index.ts +0 -3
- package/template/lib/gulp/test/index.test.ts +0 -3
- package/template/lib/gulp/tsconfig.json +0 -19
- package/template/lib/gulp/yarn.lock +0 -9570
- package/template/lib/rollup/.eslintrc +0 -40
- package/template/lib/rollup/.gitignore +0 -27
- package/template/lib/rollup/.prettierignore +0 -7
- package/template/lib/rollup/.prettierrc.js +0 -21
- package/template/lib/rollup/LICENSE +0 -21
- package/template/lib/rollup/README.md +0 -1
- package/template/lib/rollup/jest.config.js +0 -8
- package/template/lib/rollup/package.json +0 -35
- package/template/lib/rollup/scripts/build.js +0 -8
- package/template/lib/rollup/src/index.ts +0 -3
- package/template/lib/rollup/test/index.test.ts +0 -3
- package/template/lib/rollup/tsconfig.json +0 -21
- package/template/lib/rollup/yarn.lock +0 -9570
- package/template/node/base/.eslintrc +0 -28
- package/template/node/base/.gitignore +0 -15
- package/template/node/base/.prettierignore +0 -4
- package/template/node/base/.prettierrc.js +0 -20
- package/template/node/base/LICENSE +0 -201
- package/template/node/base/README.md +0 -9
- package/template/node/base/jest.config.js +0 -8
- package/template/node/base/package.json +0 -37
- package/template/node/base/src/server.ts +0 -0
- package/template/node/base/test/server.test.ts +0 -3
- package/template/node/base/tsconfig.json +0 -19
- package/template/node/base/yarn.lock +0 -4038
- package/template/node/nest/.eslintrc.js +0 -24
- package/template/node/nest/.gitignore +0 -15
- package/template/node/nest/.prettierignore +0 -4
- package/template/node/nest/.prettierrc.js +0 -20
- package/template/node/nest/package.json +0 -76
- package/template/node/nest/src/utils/transform.interceptor.ts +0 -14
- package/template/node/nest/tsconfig.build.json +0 -4
- package/template/node/nest/yarn.lock +0 -5931
- package/template/web-app/rc-recoil/.prettierignore +0 -4
- package/template/web-app/rc-recoil/.prettierrc.js +0 -20
- package/template/web-app/rc-recoil/package.json +0 -71
- package/template/web-app/rc-recoil/src/Layout/index.tsx +0 -12
- package/template/web-app/rc-recoil/src/app.store.ts +0 -8
- package/template/web-app/rc-recoil/src/index.tsx +0 -23
- package/template/web-app/rc-recoil/src/pages/home/home.store.ts +0 -6
- package/template/web-app/rc-recoil/src/pages/home/index.test.tsx +0 -15
- package/template/web-app/rc-recoil/src/routes/index.ts +0 -11
- package/template/web-app/rc-recoil/yarn.lock +0 -12437
- package/template/web-app/rc-redux/.env +0 -1
- package/template/web-app/rc-redux/.gitignore +0 -30
- package/template/web-app/rc-redux/.prettierignore +0 -4
- package/template/web-app/rc-redux/.prettierrc.js +0 -20
- package/template/web-app/rc-redux/.stylelintrc.js +0 -21
- package/template/web-app/rc-redux/README.md +0 -10
- package/template/web-app/rc-redux/craco.config.js +0 -14
- package/template/web-app/rc-redux/package.json +0 -72
- package/template/web-app/rc-redux/public/favicon.ico +0 -0
- package/template/web-app/rc-redux/public/index.html +0 -41
- package/template/web-app/rc-redux/public/manifest.json +0 -15
- package/template/web-app/rc-redux/src/Layout/index.tsx +0 -9
- package/template/web-app/rc-redux/src/index.scss +0 -5
- package/template/web-app/rc-redux/src/index.tsx +0 -24
- package/template/web-app/rc-redux/src/logo.svg +0 -7
- package/template/web-app/rc-redux/src/pages/home/Home.scss +0 -0
- package/template/web-app/rc-redux/src/pages/home/home.store.ts +0 -7
- package/template/web-app/rc-redux/src/pages/home/index.test.tsx +0 -17
- package/template/web-app/rc-redux/src/pages/home/index.tsx +0 -10
- package/template/web-app/rc-redux/src/react-app-env.d.ts +0 -1
- package/template/web-app/rc-redux/src/reportWebVitals.ts +0 -15
- package/template/web-app/rc-redux/src/routes/index.ts +0 -11
- package/template/web-app/rc-redux/src/serviceWorker.ts +0 -139
- package/template/web-app/rc-redux/src/setupTests.ts +0 -5
- package/template/web-app/rc-redux/src/store/App.store.ts +0 -9
- package/template/web-app/rc-redux/src/store/index.ts +0 -11
- package/template/web-app/rc-redux/tsconfig.json +0 -21
- package/template/web-app/rc-redux/yarn.lock +0 -12480
- package/template/web-app/vue-2.x/.browserslistrc +0 -2
- package/template/web-app/vue-2.x/.gitignore +0 -30
- package/template/web-app/vue-2.x/.prettierignore +0 -5
- package/template/web-app/vue-2.x/.prettierrc.js +0 -20
- package/template/web-app/vue-2.x/README.md +0 -29
- package/template/web-app/vue-2.x/babel.config.js +0 -3
- package/template/web-app/vue-2.x/package.json +0 -31
- package/template/web-app/vue-2.x/public/favicon.ico +0 -0
- package/template/web-app/vue-2.x/public/index.html +0 -20
- package/template/web-app/vue-2.x/src/App.vue +0 -5
- package/template/web-app/vue-2.x/src/assets/logo.png +0 -0
- package/template/web-app/vue-2.x/src/main.ts +0 -12
- package/template/web-app/vue-2.x/src/router/index.ts +0 -21
- package/template/web-app/vue-2.x/src/shims-tsx.d.ts +0 -13
- package/template/web-app/vue-2.x/src/shims-vue.d.ts +0 -4
- package/template/web-app/vue-2.x/src/store/app.ts +0 -19
- package/template/web-app/vue-2.x/src/store/index.ts +0 -27
- package/template/web-app/vue-2.x/src/views/Home.vue +0 -5
- package/template/web-app/vue-2.x/tsconfig.json +0 -22
- package/template/web-app/vue-2.x/tslint.json +0 -21
- package/template/web-app/vue-2.x/vue.config.js +0 -10
- package/template/web-app/vue-2.x/yarn.lock +0 -8128
- package/template/web-app/webpack/.editorconfig +0 -14
- package/template/web-app/webpack/.gitignore +0 -30
- package/template/web-app/webpack/.prettierignore +0 -5
- package/template/web-app/webpack/.prettierrc.js +0 -20
- package/template/web-app/webpack/.stylelintrc.js +0 -21
- package/template/web-app/webpack/LICENSE +0 -191
- package/template/web-app/webpack/README.md +0 -4
- package/template/web-app/webpack/babel.config.js +0 -17
- package/template/web-app/webpack/jest.config.js +0 -27
- package/template/web-app/webpack/package.json +0 -85
- package/template/web-app/webpack/postcss.config.js +0 -11
- package/template/web-app/webpack/src/Layout/index.tsx +0 -9
- package/template/web-app/webpack/src/Layout/typings.ts +0 -4
- package/template/web-app/webpack/src/global.css +0 -3
- package/template/web-app/webpack/src/global.d.ts +0 -8
- package/template/web-app/webpack/src/index.html +0 -16
- package/template/web-app/webpack/src/index.tsx +0 -20
- package/template/web-app/webpack/src/pages/Home/Home.css.json +0 -1
- package/template/web-app/webpack/src/pages/Home/Home.module.css +0 -3
- package/template/web-app/webpack/src/pages/Home/Home.store.ts +0 -12
- package/template/web-app/webpack/src/pages/Home/index.test.tsx +0 -17
- package/template/web-app/webpack/src/pages/Home/index.tsx +0 -15
- package/template/web-app/webpack/src/pages/Home/typings.ts +0 -1
- package/template/web-app/webpack/src/routes/index.ts +0 -16
- package/template/web-app/webpack/src/store/App.store.ts +0 -14
- package/template/web-app/webpack/src/store/index.ts +0 -11
- package/template/web-app/webpack/tsconfig.json +0 -23
- package/template/web-app/webpack/tslint.json +0 -21
- package/template/web-app/webpack/webpack.config.js +0 -15
- package/template/web-app/webpack/webpack_config/config.js +0 -14
- package/template/web-app/webpack/webpack_config/genBaseConfig.js +0 -73
- package/template/web-app/webpack/webpack_config/genStyleConfig.js +0 -23
- package/template/web-app/webpack/webpack_config/jest/fileTransform.js +0 -40
- package/template/web-app/webpack/yarn.lock +0 -8474
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// 配置文档: https://prettier.io/docs/en/options.html
|
|
2
|
-
// ----------------------------------------------------------------------
|
|
3
|
-
module.exports = {
|
|
4
|
-
overrides: [
|
|
5
|
-
{
|
|
6
|
-
files: '.prettierrc',
|
|
7
|
-
options: { parser: 'json' }
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
printWidth: 100,
|
|
11
|
-
tabWidth: 4,
|
|
12
|
-
useTabs: false,
|
|
13
|
-
semi: false,
|
|
14
|
-
singleQuote: true,
|
|
15
|
-
trailingComma: 'none',
|
|
16
|
-
bracketSpacing: true,
|
|
17
|
-
jsxBracketSameLine: true,
|
|
18
|
-
arrowParens: 'avoid',
|
|
19
|
-
rangeStart: 0
|
|
20
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react_template",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"dependencies": {
|
|
6
|
-
"@craco/craco": "^6.1.2",
|
|
7
|
-
"@testing-library/jest-dom": "^5.14.1",
|
|
8
|
-
"@testing-library/react": "^11.2.7",
|
|
9
|
-
"@testing-library/user-event": "^13.1.9",
|
|
10
|
-
"@types/jest": "^26.0.23",
|
|
11
|
-
"@types/node": "^15.12.2",
|
|
12
|
-
"@types/react": "^17.0.11",
|
|
13
|
-
"@types/react-dom": "^17.0.7",
|
|
14
|
-
"@types/react-router-config": "^5.0.2",
|
|
15
|
-
"@types/react-router-dom": "^5.1.7",
|
|
16
|
-
"react": "^17.0.2",
|
|
17
|
-
"react-dom": "^17.0.2",
|
|
18
|
-
"react-router-config": "^5.1.1",
|
|
19
|
-
"react-router-dom": "^5.2.0",
|
|
20
|
-
"react-scripts": "^4.0.3",
|
|
21
|
-
"recoil": "^0.3.1",
|
|
22
|
-
"sass": "^1.34.1",
|
|
23
|
-
"typescript": "^4.3.2",
|
|
24
|
-
"web-vitals": "^2.0.1"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"start": "craco start",
|
|
28
|
-
"build": "craco build",
|
|
29
|
-
"analyze": "craco build --analyze",
|
|
30
|
-
"test": "craco test",
|
|
31
|
-
"eject": "react-scripts eject",
|
|
32
|
-
"format": "prettier --write \"src/**/*.{ts,js,tsx,jsx,css,scss,less}\" \"./package.json\""
|
|
33
|
-
},
|
|
34
|
-
"husky": {
|
|
35
|
-
"hooks": {
|
|
36
|
-
"pre-commit": "npm run format && lint-staged && git add ."
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"lint-staged": {
|
|
40
|
-
"./src/**/*.{css,scss,less}": [
|
|
41
|
-
"stylelint"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"eslintConfig": {
|
|
45
|
-
"extends": [
|
|
46
|
-
"react-app",
|
|
47
|
-
"react-app/jest"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"browserslist": {
|
|
51
|
-
"production": [
|
|
52
|
-
">0.2%",
|
|
53
|
-
"not dead",
|
|
54
|
-
"not op_mini all"
|
|
55
|
-
],
|
|
56
|
-
"development": [
|
|
57
|
-
"last 1 chrome version",
|
|
58
|
-
"last 1 firefox version",
|
|
59
|
-
"last 1 safari version"
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"devDependencies": {
|
|
63
|
-
"@types/recoil": "^0.0.9",
|
|
64
|
-
"husky": "^4.3.8",
|
|
65
|
-
"lint-staged": "^11.0.0",
|
|
66
|
-
"prettier": "^2.3.1",
|
|
67
|
-
"stylelint": "^13.13.1",
|
|
68
|
-
"stylelint-config-standard": "^22.0.0",
|
|
69
|
-
"webpack-bundle-analyzer": "^4.4.2"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { LayoutPropsType } from './typings'
|
|
3
|
-
import { useRecoilValue } from 'recoil'
|
|
4
|
-
import appStore from '../app.store'
|
|
5
|
-
|
|
6
|
-
const Layout: React.FC<LayoutPropsType> = ({ children }) => {
|
|
7
|
-
const store = useRecoilValue(appStore)
|
|
8
|
-
console.log('appStore:', store)
|
|
9
|
-
return <div>{children}</div>
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default Layout
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import ReactDOM from 'react-dom'
|
|
4
|
-
import { BrowserRouter } from 'react-router-dom'
|
|
5
|
-
import { renderRoutes } from 'react-router-config'
|
|
6
|
-
import Layout from './Layout'
|
|
7
|
-
import routes from './routes'
|
|
8
|
-
import { RecoilRoot } from 'recoil'
|
|
9
|
-
import './index.scss'
|
|
10
|
-
import reportWebVitals from './reportWebVitals'
|
|
11
|
-
|
|
12
|
-
ReactDOM.render(
|
|
13
|
-
<React.StrictMode>
|
|
14
|
-
<RecoilRoot>
|
|
15
|
-
<BrowserRouter>
|
|
16
|
-
<Layout>{renderRoutes(routes)} </Layout>
|
|
17
|
-
</BrowserRouter>
|
|
18
|
-
</RecoilRoot>
|
|
19
|
-
</React.StrictMode>,
|
|
20
|
-
document.getElementById('root')
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
reportWebVitals()
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import ReactDOM from 'react-dom'
|
|
3
|
-
import Home from './index'
|
|
4
|
-
import { RecoilRoot } from 'recoil'
|
|
5
|
-
|
|
6
|
-
it('renders without crashing', () => {
|
|
7
|
-
const div = document.createElement('div')
|
|
8
|
-
ReactDOM.render(
|
|
9
|
-
<RecoilRoot>
|
|
10
|
-
<Home />
|
|
11
|
-
</RecoilRoot>,
|
|
12
|
-
div
|
|
13
|
-
)
|
|
14
|
-
ReactDOM.unmountComponentAtNode(div)
|
|
15
|
-
})
|