create-packer 1.29.0 → 1.30.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.
- package/package.json +1 -1
- package/template/web-app/next/package.json +0 -1
- package/template/web-app/next/postcss.config.js +0 -1
- package/template/web-app/react/.eslintrc +35 -8
- package/template/web-app/react/domain/app/components/app.tsx +4 -1
- package/template/web-app/react/package.json +2 -2
- package/template/web-app/react/pages/home/home.tsx +8 -2
- package/template/web-app/react/postcss.config.cjs +0 -2
- package/template/web-app/react/shared/theme/index.ts +2 -0
- package/template/web-app/react/shared/theme/theme.components.tsx +7 -0
- package/template/web-app/react/shared/theme/theme.d.ts +8 -0
- package/template/web-app/react/shared/theme/theme.styles.ts +7 -0
- package/template/web-app/react/tsconfig.json +22 -6
- package/template/web-app/react-webpack/domain/app/components/app.tsx +4 -1
- package/template/web-app/react-webpack/package.json +3 -3
- package/template/web-app/react-webpack/pages/home/home.tsx +8 -3
- package/template/web-app/react-webpack/postcss.config.js +0 -2
- package/template/web-app/react-webpack/shared/theme/index.ts +2 -0
- package/template/web-app/react-webpack/shared/theme/theme.components.tsx +7 -0
- package/template/web-app/react-webpack/shared/theme/theme.d.ts +8 -0
- package/template/web-app/react-webpack/shared/theme/theme.styles.ts +7 -0
- package/template/web-extension/content_script/content.tsx +0 -2
- package/template/web-extension/content_script/index.tsx +4 -1
- package/template/web-extension/domain/app/components/app-context.tsx +6 -0
- package/template/web-extension/domain/app/components/index.ts +1 -0
- package/template/web-extension/domain/app/index.ts +1 -0
- package/template/web-extension/package.json +6 -6
- package/template/web-extension/popup/index.tsx +4 -1
- package/template/web-extension/popup/popup.container.tsx +0 -2
- package/template/web-extension/postcss.config.cjs +0 -2
- package/template/web-extension/shared/theme/index.ts +2 -0
- package/template/web-extension/shared/theme/theme.components.tsx +7 -0
- package/template/web-extension/shared/theme/theme.d.ts +8 -0
- package/template/web-extension/shared/theme/theme.styles.ts +7 -0
- package/template/web-app/next/tailwind.config.js +0 -20
- package/template/web-app/react/pages/home/home.css +0 -1
- package/template/web-app/react/tailwind.config.cjs +0 -17
- package/template/web-app/react-webpack/pages/home/home.module.css +0 -3
- package/template/web-app/react-webpack/tailwind.config.js +0 -17
- package/template/web-extension/content_script/content.css +0 -3
- package/template/web-extension/popup/popup.css +0 -3
- package/template/web-extension/tailwind.config.cjs +0 -13
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"root": true,
|
|
3
3
|
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"plugins": [
|
|
4
|
+
"plugins": [
|
|
5
|
+
"prettier"
|
|
6
|
+
],
|
|
5
7
|
"extends": [
|
|
6
8
|
"eslint:recommended",
|
|
7
9
|
"plugin:@typescript-eslint/recommended",
|
|
@@ -51,12 +53,32 @@
|
|
|
51
53
|
"type"
|
|
52
54
|
],
|
|
53
55
|
"pathGroups": [
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
{
|
|
57
|
+
"pattern": "react",
|
|
58
|
+
"group": "external",
|
|
59
|
+
"position": "before"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"pattern": "react-dom/*",
|
|
63
|
+
"group": "external",
|
|
64
|
+
"position": "before"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"pattern": "react-router",
|
|
68
|
+
"group": "external",
|
|
69
|
+
"position": "before"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"pattern": "react-router-dom",
|
|
73
|
+
"group": "external",
|
|
74
|
+
"position": "before"
|
|
75
|
+
}
|
|
58
76
|
],
|
|
59
|
-
"pathGroupsExcludedImportTypes": [
|
|
77
|
+
"pathGroupsExcludedImportTypes": [
|
|
78
|
+
"react",
|
|
79
|
+
"react-router",
|
|
80
|
+
"react-router-dom"
|
|
81
|
+
]
|
|
60
82
|
}
|
|
61
83
|
],
|
|
62
84
|
"no-case-declarations": "off",
|
|
@@ -70,7 +92,12 @@
|
|
|
70
92
|
"ignoreParameters": true
|
|
71
93
|
}
|
|
72
94
|
],
|
|
73
|
-
"@typescript-eslint/no-unused-vars": [
|
|
95
|
+
"@typescript-eslint/no-unused-vars": [
|
|
96
|
+
"warn",
|
|
97
|
+
{
|
|
98
|
+
"argsIgnorePattern": "^_"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
74
101
|
"@typescript-eslint/member-delimiter-style": 0,
|
|
75
102
|
"@typescript-eslint/class-name-casing": 0,
|
|
76
103
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
@@ -89,4 +116,4 @@
|
|
|
89
116
|
],
|
|
90
117
|
"no-constant-condition": "off"
|
|
91
118
|
}
|
|
92
|
-
}
|
|
119
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StrictMode, useLayoutEffect } from 'react'
|
|
2
2
|
import { RouterProvider } from 'react-router-dom'
|
|
3
|
+
import { ThemeProvider } from '@/shared/theme'
|
|
3
4
|
import { request } from '@/shared/service'
|
|
4
5
|
import { routerInstance } from '@/domain/router'
|
|
5
6
|
|
|
@@ -15,7 +16,9 @@ const App = () => {
|
|
|
15
16
|
|
|
16
17
|
return (
|
|
17
18
|
<StrictMode>
|
|
18
|
-
<
|
|
19
|
+
<ThemeProvider>
|
|
20
|
+
<RouterProvider router={routerInstance} />
|
|
21
|
+
</ThemeProvider>
|
|
19
22
|
</StrictMode>
|
|
20
23
|
)
|
|
21
24
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"1k-types": "1.2.0",
|
|
22
22
|
"axios": "1.3.6",
|
|
23
|
-
"define-zustand": "3.1.
|
|
23
|
+
"define-zustand": "3.1.1",
|
|
24
24
|
"immer": "10.0.1",
|
|
25
25
|
"lodash-es": "4.17.21",
|
|
26
26
|
"qs": "6.11.2",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"react-dom": "18.3.1",
|
|
29
29
|
"react-router-dom": "6.14.0",
|
|
30
30
|
"react-use": "17.5.0",
|
|
31
|
+
"styled-components": "6.1.11",
|
|
31
32
|
"zustand": "4.4.1"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
@@ -63,7 +64,6 @@
|
|
|
63
64
|
"rollup-plugin-visualizer": "5.9.2",
|
|
64
65
|
"stylelint": "16.2.1",
|
|
65
66
|
"stylelint-config-standard-scss": "13.0.0",
|
|
66
|
-
"tailwindcss": "3.3.1",
|
|
67
67
|
"typescript": "5.3.3",
|
|
68
68
|
"vite": "4.5.2",
|
|
69
69
|
"vite-plugin-mock-dev-server": "1.4.7",
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import './home.css'
|
|
2
1
|
import { useEffect } from 'react'
|
|
2
|
+
import { styled } from 'styled-components'
|
|
3
3
|
import { request, API } from '@/shared/service'
|
|
4
4
|
|
|
5
|
+
const Wrapper = styled.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
`
|
|
10
|
+
|
|
5
11
|
export default function Home() {
|
|
6
12
|
useEffect(() => {
|
|
7
13
|
request.post(API.HOME_DATA).then(({ data }) => {
|
|
@@ -9,5 +15,5 @@ export default function Home() {
|
|
|
9
15
|
})
|
|
10
16
|
}, [])
|
|
11
17
|
|
|
12
|
-
return <
|
|
18
|
+
return <Wrapper className={'flex justify-center items-center'}>sdfs</Wrapper>
|
|
13
19
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react'
|
|
2
|
+
import { ThemeProvider as ThemeProviderComponent } from 'styled-components'
|
|
3
|
+
import { theme } from './theme.styles'
|
|
4
|
+
|
|
5
|
+
export const ThemeProvider: FunctionComponent<{ children: ReactNode }> = props => {
|
|
6
|
+
return <ThemeProviderComponent theme={theme}>{props.children}</ThemeProviderComponent>
|
|
7
|
+
}
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
"baseUrl": ".",
|
|
4
4
|
"target": "ESNext",
|
|
5
5
|
"useDefineForClassFields": true,
|
|
6
|
-
"lib": [
|
|
6
|
+
"lib": [
|
|
7
|
+
"DOM",
|
|
8
|
+
"DOM.Iterable",
|
|
9
|
+
"ESNext"
|
|
10
|
+
],
|
|
7
11
|
"allowJs": false,
|
|
8
12
|
"skipLibCheck": true,
|
|
9
13
|
"esModuleInterop": false,
|
|
@@ -19,10 +23,22 @@
|
|
|
19
23
|
"noEmit": true,
|
|
20
24
|
"jsx": "react-jsx",
|
|
21
25
|
"paths": {
|
|
22
|
-
"@/*": [
|
|
26
|
+
"@/*": [
|
|
27
|
+
"./*"
|
|
28
|
+
]
|
|
23
29
|
}
|
|
24
30
|
},
|
|
25
|
-
"include": [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
"include": [
|
|
32
|
+
"**/*.ts",
|
|
33
|
+
"**/*.tsx"
|
|
34
|
+
],
|
|
35
|
+
"exclude": [
|
|
36
|
+
"scripts",
|
|
37
|
+
"vite.config.ts"
|
|
38
|
+
],
|
|
39
|
+
"references": [
|
|
40
|
+
{
|
|
41
|
+
"path": "./tsconfig.node.json"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StrictMode, useLayoutEffect } from 'react'
|
|
2
2
|
import { RouterProvider } from 'react-router-dom'
|
|
3
|
+
import { ThemeProvider } from '@/shared/theme'
|
|
3
4
|
import { request } from '@/shared/service'
|
|
4
5
|
import { routerInstance } from '@/domain/router'
|
|
5
6
|
|
|
@@ -15,7 +16,9 @@ const App = () => {
|
|
|
15
16
|
|
|
16
17
|
return (
|
|
17
18
|
<StrictMode>
|
|
18
|
-
<
|
|
19
|
+
<ThemeProvider>
|
|
20
|
+
<RouterProvider router={routerInstance} />
|
|
21
|
+
</ThemeProvider>
|
|
19
22
|
</StrictMode>
|
|
20
23
|
)
|
|
21
24
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"1k-types": "1.2.0",
|
|
23
23
|
"axios": "1.6.7",
|
|
24
|
-
"define-zustand": "3.1.
|
|
24
|
+
"define-zustand": "3.1.1",
|
|
25
25
|
"immer": "10.0.3",
|
|
26
26
|
"lodash-es": "4.17.21",
|
|
27
27
|
"qs": "6.11.2",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"react-dom": "18.3.1",
|
|
30
30
|
"react-router-dom": "6.14.0",
|
|
31
31
|
"react-use": "17.5.0",
|
|
32
|
-
"
|
|
33
|
-
"zustand": "4.
|
|
32
|
+
"styled-components": "6.1.11",
|
|
33
|
+
"zustand": "4.4.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@commitlint/cli": "18.6.1",
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { styled } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
const Wrapper = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
`
|
|
2
8
|
|
|
3
9
|
export default function Home() {
|
|
4
|
-
|
|
5
|
-
return <div className={styles.root}>sdsddds</div>
|
|
10
|
+
return <Wrapper>sdfs</Wrapper>
|
|
6
11
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react'
|
|
2
|
+
import { ThemeProvider as ThemeProviderComponent } from 'styled-components'
|
|
3
|
+
import { theme } from './theme.styles'
|
|
4
|
+
|
|
5
|
+
export const ThemeProvider: FunctionComponent<{ children: ReactNode }> = props => {
|
|
6
|
+
return <ThemeProviderComponent theme={theme}>{props.children}</ThemeProviderComponent>
|
|
7
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { StrictMode } from 'react'
|
|
2
2
|
import { createRoot } from 'react-dom/client'
|
|
3
|
+
import { AppContext } from '@/domain/app'
|
|
3
4
|
import Content from './content'
|
|
4
5
|
|
|
5
6
|
const app = document.createElement('div')
|
|
6
7
|
createRoot(app).render(
|
|
7
8
|
<StrictMode>
|
|
8
|
-
<
|
|
9
|
+
<AppContext.Root>
|
|
10
|
+
<Content />
|
|
11
|
+
</AppContext.Root>
|
|
9
12
|
</StrictMode>
|
|
10
13
|
)
|
|
11
14
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as AppContext from './app-context'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components'
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
"commit": "git add . && npm run cz"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"define-zustand": "3.1.
|
|
20
|
+
"define-zustand": "3.1.1",
|
|
21
21
|
"immer": "10.0.1",
|
|
22
22
|
"ky": "1.1.3",
|
|
23
23
|
"lodash-es": "4.17.21",
|
|
24
24
|
"qs": "6.11.2",
|
|
25
|
-
"react": "18.
|
|
26
|
-
"react-dom": "18.
|
|
25
|
+
"react": "18.3.1",
|
|
26
|
+
"react-dom": "18.3.1",
|
|
27
|
+
"styled-components": "6.1.11",
|
|
27
28
|
"zustand": "4.4.1"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
@@ -37,8 +38,8 @@
|
|
|
37
38
|
"@types/lodash-es": "4.17.7",
|
|
38
39
|
"@types/node": "18.16.0",
|
|
39
40
|
"@types/qs": "6.9.7",
|
|
40
|
-
"@types/react": "18.
|
|
41
|
-
"@types/react-dom": "18.0
|
|
41
|
+
"@types/react": "18.3.3",
|
|
42
|
+
"@types/react-dom": "18.3.0",
|
|
42
43
|
"@typescript-eslint/eslint-plugin": "7.0.2",
|
|
43
44
|
"@typescript-eslint/parser": "7.0.2",
|
|
44
45
|
"@vitejs/plugin-react": "4.2.1",
|
|
@@ -62,7 +63,6 @@
|
|
|
62
63
|
"sass": "1.63.4",
|
|
63
64
|
"stylelint": "16.2.1",
|
|
64
65
|
"stylelint-config-standard-scss": "13.0.0",
|
|
65
|
-
"tailwindcss": "3.3.7",
|
|
66
66
|
"typescript": "5.3.3",
|
|
67
67
|
"vite": "4.5.2",
|
|
68
68
|
"vite-plugin-stylelint": "5.3.1",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { StrictMode } from 'react'
|
|
2
2
|
import { createRoot } from 'react-dom/client'
|
|
3
|
+
import { AppContext } from '@/domain/app'
|
|
3
4
|
import Popup from './popup.container'
|
|
4
5
|
|
|
5
6
|
createRoot(document.getElementById('root') as HTMLElement).render(
|
|
6
7
|
<StrictMode>
|
|
7
|
-
<
|
|
8
|
+
<AppContext.Root>
|
|
9
|
+
<Popup />
|
|
10
|
+
</AppContext.Root>
|
|
8
11
|
</StrictMode>
|
|
9
12
|
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react'
|
|
2
|
+
import { ThemeProvider as ThemeProviderComponent } from 'styled-components'
|
|
3
|
+
import { theme } from './theme.styles'
|
|
4
|
+
|
|
5
|
+
export const ThemeProvider: FunctionComponent<{ children: ReactNode }> = props => {
|
|
6
|
+
return <ThemeProviderComponent theme={theme}>{props.children}</ThemeProviderComponent>
|
|
7
|
+
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
5
|
-
'./components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
6
|
-
'./app/**/*.{js,ts,jsx,tsx,mdx}'
|
|
7
|
-
],
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
backgroundImage: {
|
|
11
|
-
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
|
|
12
|
-
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
plugins: [],
|
|
17
|
-
corePlugins: {
|
|
18
|
-
preflight: false
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
'./index.html',
|
|
5
|
-
'./main.tsx',
|
|
6
|
-
'./pages/**/*.{ts,tsx,js,jsx}',
|
|
7
|
-
'./domain/**/*.{ts,tsx,js,jsx}',
|
|
8
|
-
'./shared/**/*.{ts,tsx,js,jsx}'
|
|
9
|
-
],
|
|
10
|
-
theme: {
|
|
11
|
-
extend: {}
|
|
12
|
-
},
|
|
13
|
-
plugins: [],
|
|
14
|
-
corePlugins: {
|
|
15
|
-
preflight: false
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
'./index.html',
|
|
5
|
-
'./main.tsx',
|
|
6
|
-
'./pages/**/*.{ts,tsx,js,jsx}',
|
|
7
|
-
'./domain/**/*.{ts,tsx,js,jsx}',
|
|
8
|
-
'./shared/**/*.{ts,tsx,js,jsx}'
|
|
9
|
-
],
|
|
10
|
-
theme: {
|
|
11
|
-
extend: {}
|
|
12
|
-
},
|
|
13
|
-
plugins: [],
|
|
14
|
-
corePlugins: {
|
|
15
|
-
preflight: false
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
'./index.html',
|
|
5
|
-
'./popup/**/*.{ts,tsx,js,jsx}',
|
|
6
|
-
'./background/**/*.{ts,tsx,js,jsx}',
|
|
7
|
-
'./content_script/**/*.{ts,tsx,js,jsx}'
|
|
8
|
-
],
|
|
9
|
-
theme: {
|
|
10
|
-
extend: {}
|
|
11
|
-
},
|
|
12
|
-
plugins: []
|
|
13
|
-
}
|