create-vike 0.0.377 → 0.0.378

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.
@@ -1,28 +1,23 @@
1
1
  {
2
2
  "scripts": {
3
3
  "dev": "npm run server:dev",
4
- "prod": "npm run lint && npm run build && npm run server:prod",
4
+ "prod": "npm run build && npm run server:prod",
5
5
  "build": "vite build",
6
6
  "server:dev": "node ./server",
7
- "server:prod": "cross-env NODE_ENV=production node ./server",
8
- "lint": "eslint . --max-warnings 0"
7
+ "server:prod": "cross-env NODE_ENV=production node ./server"
9
8
  },
10
9
  "dependencies": {
11
- "@vitejs/plugin-react": "^4.2.1",
12
- "compression": "^1.7.4",
10
+ "@vitejs/plugin-react": "^4.3.4",
11
+ "compression": "^1.7.5",
13
12
  "cross-env": "^7.0.3",
14
- "eslint": "^8.55.0",
15
- "eslint-plugin-react": "^7.33.2",
16
- "eslint-plugin-react-hooks": "^4.6.0",
17
- "eslint-plugin-react-refresh": "^0.4.5",
18
- "express": "^4.18.2",
13
+ "express": "^4.21.2",
19
14
  "node-fetch": "^3.3.2",
20
15
  "prop-types": "15.8.1",
21
- "react": "^18.2.0",
22
- "react-dom": "^18.2.0",
23
- "sirv": "^2.0.3",
24
- "vike": "^0.4.209",
25
- "vite": "^5.4.0"
16
+ "react": "^19.0.0",
17
+ "react-dom": "^19.0.0",
18
+ "sirv": "^3.0.0",
19
+ "vike": "^0.4.210",
20
+ "vite": "^6.0.3"
26
21
  },
27
22
  "type": "module"
28
23
  }
@@ -5,7 +5,6 @@ export { data }
5
5
  // this file always runs on the server-side, see https://vike.dev/data#server-side
6
6
  import fetch from 'node-fetch'
7
7
 
8
- // eslint-disable-next-line no-unused-vars
9
8
  const data = async (pageContext) => {
10
9
  await sleep(700) // Simulate slow network
11
10
 
@@ -1,5 +1,4 @@
1
1
  // https://vike.dev/usePageContext
2
- // eslint-disable-next-line react-refresh/only-export-components
3
2
  export { usePageContext }
4
3
  export { PageContextProvider }
5
4
 
@@ -1,37 +1,30 @@
1
1
  {
2
2
  "scripts": {
3
3
  "dev": "npm run server:dev",
4
- "prod": "npm run lint && npm run build && npm run server:prod",
4
+ "prod": "npm run build && npm run server:prod",
5
5
  "build": "vite build",
6
6
  "server": "node --loader ts-node/esm ./server/index.ts",
7
7
  "server:dev": "npm run server",
8
- "server:prod": "cross-env NODE_ENV=production npm run server",
9
- "lint": "eslint . --max-warnings 0"
8
+ "server:prod": "cross-env NODE_ENV=production npm run server"
10
9
  },
11
10
  "dependencies": {
12
11
  "@types/compression": "^1.7.5",
13
- "@types/express": "^4.17.21",
14
- "@types/node": "^20.10.4",
15
- "@types/react": "^18.2.42",
16
- "@types/react-dom": "^18.2.17",
17
- "@typescript-eslint/eslint-plugin": "^6.13.2",
18
- "@typescript-eslint/parser": "^6.13.2",
19
- "@vitejs/plugin-react": "^4.2.1",
20
- "compression": "^1.7.4",
12
+ "@types/express": "^5.0.0",
13
+ "@types/node": "^22.10.2",
14
+ "@types/react": "^19.0.1",
15
+ "@types/react-dom": "^19.0.2",
16
+ "@vitejs/plugin-react": "^4.3.4",
17
+ "compression": "^1.7.5",
21
18
  "cross-env": "^7.0.3",
22
- "eslint": "^8.55.0",
23
- "eslint-plugin-react": "^7.33.2",
24
- "eslint-plugin-react-hooks": "^4.6.0",
25
- "eslint-plugin-react-refresh": "^0.4.5",
26
- "express": "^4.18.2",
19
+ "express": "^4.21.2",
27
20
  "node-fetch": "^3.3.2",
28
- "react": "^18.2.0",
29
- "react-dom": "^18.2.0",
30
- "sirv": "^2.0.3",
31
- "ts-node": "^10.9.1",
32
- "typescript": "^5.4.0",
33
- "vike": "^0.4.209",
34
- "vite": "^5.4.0"
21
+ "react": "^19.0.0",
22
+ "react-dom": "^19.0.0",
23
+ "sirv": "^3.0.0",
24
+ "ts-node": "^10.9.2",
25
+ "typescript": "^5.7.2",
26
+ "vike": "^0.4.210",
27
+ "vite": "^6.0.3"
35
28
  },
36
29
  "type": "module"
37
30
  }
@@ -8,7 +8,6 @@ import fetch from 'node-fetch'
8
8
  import type { MovieDetails, Movie } from '../types'
9
9
  import type { PageContextServer } from 'vike/types'
10
10
 
11
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
12
11
  const data = async (pageContext: PageContextServer) => {
13
12
  await sleep(700) // Simulate slow network
14
13
 
@@ -1,5 +1,4 @@
1
1
  // https://vike.dev/usePageContext
2
- // eslint-disable-next-line react-refresh/only-export-components
3
2
  export { usePageContext }
4
3
  export { PageContextProvider }
5
4
 
@@ -22,6 +22,7 @@ startServer()
22
22
  async function startServer() {
23
23
  const app = express()
24
24
 
25
+ // @ts-expect-error Express.js buggy types
25
26
  app.use(compression())
26
27
 
27
28
  // Vite integration
@@ -7,17 +7,17 @@
7
7
  "server:prod": "cross-env NODE_ENV=production node ./server"
8
8
  },
9
9
  "dependencies": {
10
- "@vitejs/plugin-vue": "^5.0.0",
11
- "@vue/compiler-sfc": "^3.3.10",
12
- "@vue/server-renderer": "^3.3.10",
13
- "compression": "^1.7.4",
10
+ "@vitejs/plugin-vue": "^5.2.1",
11
+ "@vue/compiler-sfc": "^3.5.13",
12
+ "@vue/server-renderer": "^3.5.13",
13
+ "compression": "^1.7.5",
14
14
  "cross-env": "^7.0.3",
15
- "express": "^4.18.2",
15
+ "express": "^4.21.2",
16
16
  "node-fetch": "^3.3.2",
17
- "sirv": "^2.0.3",
18
- "vike": "^0.4.209",
19
- "vite": "^5.4.0",
20
- "vue": "^3.3.10"
17
+ "sirv": "^3.0.0",
18
+ "vike": "^0.4.210",
19
+ "vite": "^6.0.3",
20
+ "vue": "^3.5.13"
21
21
  },
22
22
  "type": "module"
23
23
  }
@@ -9,22 +9,22 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@types/compression": "^1.7.5",
12
- "@types/express": "^4.17.21",
13
- "@types/node": "^20.10.4",
14
- "@vitejs/plugin-vue": "^5.0.0",
15
- "@vue/compiler-sfc": "^3.3.10",
16
- "@vue/server-renderer": "^3.3.10",
17
- "compression": "^1.7.4",
12
+ "@types/express": "^5.0.0",
13
+ "@types/node": "^22.10.2",
14
+ "@vitejs/plugin-vue": "^5.2.1",
15
+ "@vue/compiler-sfc": "^3.5.13",
16
+ "@vue/server-renderer": "^3.5.13",
17
+ "compression": "^1.7.5",
18
18
  "cross-env": "^7.0.3",
19
- "express": "^4.18.2",
19
+ "express": "^4.21.2",
20
20
  "node-fetch": "^3.3.2",
21
- "sirv": "^2.0.3",
22
- "ts-node": "^10.9.1",
23
- "typescript": "^5.4.0",
24
- "vike": "^0.4.209",
25
- "vite": "^5.4.0",
26
- "vue": "^3.3.10",
27
- "vue-tsc": "^2.0.11"
21
+ "sirv": "^3.0.0",
22
+ "ts-node": "^10.9.2",
23
+ "typescript": "^5.7.2",
24
+ "vike": "^0.4.210",
25
+ "vite": "^6.0.3",
26
+ "vue": "^3.5.13",
27
+ "vue-tsc": "^2.1.10"
28
28
  },
29
29
  "type": "module"
30
30
  }
@@ -22,6 +22,7 @@ startServer()
22
22
  async function startServer() {
23
23
  const app = express()
24
24
 
25
+ // @ts-expect-error Express.js buggy types
25
26
  app.use(compression())
26
27
 
27
28
  // Vite integration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vike",
3
- "version": "0.0.377",
3
+ "version": "0.0.378",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "create-vike": "index.js"
@@ -1,17 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- 'react-refresh/only-export-components': 'warn'
4
- },
5
- reportUnusedDisableDirectives: true,
6
- ignorePatterns: ['dist/*'],
7
- env: { browser: true, es2020: true, node: true },
8
- parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
9
- settings: { react: { version: 'detect' } },
10
- plugins: ['react-refresh'],
11
- extends: [
12
- 'eslint:recommended',
13
- 'plugin:react/recommended',
14
- 'plugin:react/jsx-runtime',
15
- 'plugin:react-hooks/recommended'
16
- ]
17
- }
@@ -1,20 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- 'react-refresh/only-export-components': 'warn',
4
- '@typescript-eslint/no-namespace': 'off'
5
- },
6
- reportUnusedDisableDirectives: true,
7
- ignorePatterns: ['dist/*'],
8
- env: { browser: true, es2020: true, node: true },
9
- parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
10
- settings: { react: { version: 'detect' } },
11
- plugins: ['react-refresh'],
12
- extends: [
13
- 'eslint:recommended',
14
- 'plugin:react/recommended',
15
- 'plugin:react/jsx-runtime',
16
- 'plugin:react-hooks/recommended',
17
- 'plugin:@typescript-eslint/recommended'
18
- ],
19
- parser: '@typescript-eslint/parser'
20
- }