Skip to content

Commit bfab35b

Browse files
committed
build: fixed deps and restored build:ci on nuxt2 app
1 parent d91a8fa commit bfab35b

File tree

10 files changed

+2354
-2126
lines changed

10 files changed

+2354
-2126
lines changed

apps/nuxt2/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77

88
**Note:** Version bump only for package nuxt2-demo
99

10-
11-
12-
13-
1410
# 1.1.0 (2023-07-14)
1511

1612
**Note:** Version bump only for package nuxt2-demo

apps/nuxt2/components/Tutorial.vue

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@
6060
href="https://nuxtjs.org"
6161
target="_blank"
6262
class="button--doc text-green-500 hover:underline"
63-
>Nuxt Documentation</a
63+
>Nuxt Documentation</a
6464
>, whether you are new or have previous experience with the
6565
framework.<br />
6666
</p>
6767
<p class="mt-4 pt-4 text-gray-800 border-t border-dashed">
6868
To get started, remove
6969
<code class="bg-gray-100 text-sm p-1 rounded border"
70-
>components/Tutorial.vue</code
70+
>components/Tutorial.vue</code
7171
>
7272
and start coding in
7373
<code class="bg-gray-100 text-sm p-1 rounded border"
74-
>pages/index.vue</code
74+
>pages/index.vue</code
7575
>. Have fun!
7676
</p>
7777
</div>
@@ -81,8 +81,7 @@
8181
:particles-init="particlesInit"
8282
/>
8383
<div class="flex justify-center pt-4 space-x-2">
84-
<a href="https://github.com/nuxt/nuxt.js" target="_blank"
85-
>
84+
<a href="https://github.com/nuxt/nuxt.js" target="_blank">
8685
<svg
8786
class="w-6 h-6 text-gray-600 hover:text-gray-800 button--github"
8887
xmlns="http://www.w3.org/2000/svg"
@@ -98,11 +97,9 @@
9897
d="M12 2.247a10 10 0 0 0-3.162 19.487c.5.088.687-.212.687-.475c0-.237-.012-1.025-.012-1.862c-2.513.462-3.163-.613-3.363-1.175a3.636 3.636 0 0 0-1.025-1.413c-.35-.187-.85-.65-.013-.662a2.001 2.001 0 0 1 1.538 1.025a2.137 2.137 0 0 0 2.912.825a2.104 2.104 0 0 1 .638-1.338c-2.225-.25-4.55-1.112-4.55-4.937a3.892 3.892 0 0 1 1.025-2.688a3.594 3.594 0 0 1 .1-2.65s.837-.262 2.75 1.025a9.427 9.427 0 0 1 5 0c1.912-1.3 2.75-1.025 2.75-1.025a3.593 3.593 0 0 1 .1 2.65a3.869 3.869 0 0 1 1.025 2.688c0 3.837-2.338 4.687-4.563 4.937a2.368 2.368 0 0 1 .675 1.85c0 1.338-.012 2.413-.012 2.75c0 .263.187.575.687.475A10.005 10.005 0 0 0 12 2.247z"
9998
fill="currentColor"
10099
/>
101-
</svg
102-
>
100+
</svg>
103101
</a>
104-
<a href="https://twitter.com/nuxt_js" target="_blank"
105-
>
102+
<a href="https://twitter.com/nuxt_js" target="_blank">
106103
<svg
107104
class="w-6 h-6 text-gray-600 hover:text-gray-800"
108105
xmlns="http://www.w3.org/2000/svg"
@@ -118,51 +115,50 @@
118115
d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23z"
119116
fill="currentColor"
120117
/>
121-
</svg
122-
>
118+
</svg>
123119
</a>
124120
</div>
125121
</div>
126122
</div>
127123
</template>
128124

129125
<script>
130-
import { loadFull } from "tsparticles";
126+
import { loadFull } from 'tsparticles'
131127

132128
export default {
133-
name: "NuxtTutorial",
129+
name: 'NuxtTutorial',
134130
data() {
135131
return {
136132
options: {
137133
background: {
138-
color: "rgb(243,244,246)"
134+
color: 'rgb(243,244,246)',
139135
},
140136
fullScreen: {
141137
enable: true,
142-
zIndex: -1
138+
zIndex: -1,
143139
},
144140
particles: {
145141
color: {
146-
value: "#000"
142+
value: '#000',
147143
},
148144
links: {
149-
color: "#000",
150-
enable: true
145+
color: '#000',
146+
enable: true,
151147
},
152148
move: {
153-
enable: true
149+
enable: true,
154150
},
155151
number: {
156-
value: 100
157-
}
158-
}
159-
}
160-
};
152+
value: 100,
153+
},
154+
},
155+
},
156+
}
161157
},
162158
methods: {
163159
particlesInit: async (engine) => {
164-
await loadFull(engine);
165-
}
166-
}
167-
};
160+
await loadFull(engine)
161+
},
162+
},
163+
}
168164
</script>

apps/nuxt2/nuxt.config.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ export default {
33
ssr: false,
44

55
// Target: https://go.nuxtjs.dev/config-target
6-
target: "static",
6+
target: 'static',
77

88
// Global page headers: https://go.nuxtjs.dev/config-head
99
head: {
10-
title: "nuxt2-demo",
10+
title: 'nuxt2-demo',
1111
htmlAttrs: {
12-
lang: "en"
12+
lang: 'en',
1313
},
1414
meta: [
15-
{ charset: "utf-8" },
16-
{ name: "viewport", content: "width=device-width, initial-scale=1" },
17-
{ hid: "description", name: "description", content: "" },
18-
{ name: "format-detection", content: "telephone=no" }
15+
{ charset: 'utf-8' },
16+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
17+
{ hid: 'description', name: 'description', content: '' },
18+
{ name: 'format-detection', content: 'telephone=no' },
1919
],
20-
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }]
20+
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
2121
},
2222

2323
// Global CSS: https://go.nuxtjs.dev/config-css
@@ -26,9 +26,9 @@ export default {
2626
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
2727
plugins: [
2828
{
29-
src: "~/plugins/vue2-particles.ts",
30-
mode: "client"
31-
}
29+
src: '~/plugins/vue2-particles.ts',
30+
mode: 'client',
31+
},
3232
],
3333

3434
// Auto import components: https://go.nuxtjs.dev/config-components
@@ -37,14 +37,14 @@ export default {
3737
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
3838
buildModules: [
3939
// https://go.nuxtjs.dev/typescript
40-
"@nuxt/typescript-build"
40+
'@nuxt/typescript-build',
4141
],
4242

4343
// Modules: https://go.nuxtjs.dev/config-modules
4444
modules: [],
4545

4646
// Build Configuration: https://go.nuxtjs.dev/config-build
4747
build: {
48-
transpile: ["tsparticles", "tsparticles-engine"]
49-
}
50-
};
48+
transpile: ['tsparticles', 'tsparticles-engine'],
49+
},
50+
}

apps/nuxt2/package.json

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"private": true,
55
"scripts": {
66
"dev": "nuxt",
7-
"build": "nuxt build",
7+
"build": "pnpm run lintfix && nuxt build",
8+
"build:ci": "pnpm run list && nuxt build",
89
"start": "nuxt start",
910
"generate": "nuxt generate",
1011
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .",
@@ -13,7 +14,7 @@
1314
"lintfix": "prettier --write --list-different . && yarn lint:js --fix"
1415
},
1516
"dependencies": {
16-
"core-js": "^3.32.0",
17+
"core-js": "^3.32.2",
1718
"nuxt": "^2.17.1",
1819
"tsparticles": "^2.12.0",
1920
"tsparticles-engine": "^2.12.0",
@@ -23,21 +24,26 @@
2324
"vue2-particles": "^2.12.0"
2425
},
2526
"devDependencies": {
26-
"@babel/core": "^7.22.9",
27-
"@babel/eslint-parser": "^7.22.9",
27+
"@babel/core": "^7.22.19",
28+
"@babel/eslint-parser": "^7.22.15",
2829
"@babel/plugin-proposal-class-properties": "^7.18.6",
29-
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.5",
30-
"@babel/plugin-transform-optional-chaining": "^7.22.6",
31-
"@babel/preset-env": "^7.22.9",
30+
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
31+
"@babel/plugin-transform-optional-chaining": "^7.22.15",
32+
"@babel/preset-env": "^7.22.15",
3233
"@nuxt/types": "^2.17.1",
3334
"@nuxt/typescript-build": "^3.0.1",
34-
"@nuxtjs/eslint-config-typescript": "^12.0.0",
35+
"@nuxtjs/eslint-config-typescript": "^12.1.0",
3536
"@nuxtjs/eslint-module": "^4.1.0",
36-
"eslint": "^8.46.0",
37+
"@types/node": "^20.6.0",
38+
"css-loader": "^4.3.0",
39+
"eslint": "^8.49.0",
3740
"eslint-config-prettier": "^9.0.0",
3841
"eslint-plugin-nuxt": "^4.0.0",
39-
"eslint-plugin-vue": "^9.16.1",
40-
"prettier": "^3.0.1",
41-
"vue-template-babel-compiler": "^2.0.0"
42+
"eslint-plugin-vue": "^9.17.0",
43+
"postcss-loader": "^3.0.0",
44+
"prettier": "^3.0.3",
45+
"vue-loader": "^15.10.2",
46+
"vue-template-babel-compiler": "^2.0.0",
47+
"webpack": "^4.46.0"
4248
}
4349
}

apps/nuxt2/plugins/shim-vue.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
declare module "*.vue" {
2-
import Vue from "vue";
3-
export default Vue;
1+
declare module '*.vue' {
2+
import Vue from 'vue'
3+
export default Vue
44
}
55

6-
declare module "vue2-particles";
6+
declare module 'vue2-particles'

apps/nuxt2/plugins/vue2-particles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Vue from "vue";
2-
import Particles from "vue2-particles";
1+
import Vue from 'vue'
2+
import Particles from 'vue2-particles'
33

4-
Vue.use(Particles);
4+
Vue.use(Particles)

apps/vue2/package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,31 @@
3030
"vue2-particles": "^2.12.0"
3131
},
3232
"devDependencies": {
33-
"@babel/core": "^7.22.9",
33+
"@babel/core": "^7.22.19",
3434
"@babel/plugin-proposal-class-properties": "^7.18.6",
35-
"@babel/plugin-proposal-decorators": "^7.22.7",
35+
"@babel/plugin-proposal-decorators": "^7.22.15",
3636
"@rollup/plugin-json": "^6.0.0",
37-
"@rollup/plugin-node-resolve": "^15.1.0",
37+
"@rollup/plugin-node-resolve": "^15.2.1",
3838
"@rollup/plugin-replace": "^5.0.2",
39-
"@typescript-eslint/eslint-plugin": "^6.2.1",
40-
"@typescript-eslint/parser": "^6.2.1",
39+
"@typescript-eslint/eslint-plugin": "^6.7.0",
40+
"@typescript-eslint/parser": "^6.7.0",
4141
"@vue/cli-plugin-babel": "^5.0.8",
4242
"@vue/cli-plugin-typescript": "^5.0.8",
4343
"@vue/cli-service": "^5.0.8",
4444
"babel-loader": "^8.3.0",
45-
"eslint": "^8.46.0",
45+
"eslint": "^8.49.0",
4646
"eslint-config-prettier": "^9.0.0",
4747
"fork-ts-checker-webpack-plugin": "^8.0.0",
48-
"postcss": "^8.4.27",
49-
"prettier": "^3.0.1",
48+
"postcss": "^8.4.29",
49+
"prettier": "^3.0.3",
5050
"rollup": "^2.79.1",
5151
"rollup-plugin-terser": "^7.0.2",
5252
"rollup-plugin-typescript": "^1.0.1",
5353
"rollup-plugin-typescript2": "^0.35.0",
5454
"rollup-plugin-vue": "^5.1.9",
55-
"tslib": "^2.6.1",
56-
"typescript": "^5.1.6",
55+
"tslib": "^2.6.2",
56+
"typescript": "^5.2.2",
57+
"vue-loader": "^15.10.2",
5758
"vue-template-compiler": "^2.7.14",
5859
"webpack": "^4.46.0"
5960
}

components/vue2-alt/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,28 +107,29 @@
107107
"vue-property-decorator": "^9.1.2"
108108
},
109109
"devDependencies": {
110-
"@babel/core": "^7.22.9",
110+
"@babel/core": "^7.22.19",
111111
"@babel/plugin-proposal-class-properties": "^7.18.6",
112-
"@babel/plugin-proposal-decorators": "^7.22.7",
113-
"@rollup/plugin-node-resolve": "^15.1.0",
112+
"@babel/plugin-proposal-decorators": "^7.22.15",
113+
"@rollup/plugin-node-resolve": "^15.2.1",
114114
"@rollup/plugin-replace": "^5.0.2",
115115
"@tsparticles/prettier-config": "^1.12.0",
116116
"@vue/cli-plugin-babel": "~5.0.8",
117117
"@vue/cli-plugin-typescript": "~5.0.8",
118118
"@vue/cli-service": "~5.0.8",
119119
"is-svg": "^5.0.0",
120-
"postcss": "^8.4.27",
121-
"prettier": "^3.0.1",
120+
"postcss": "^8.4.29",
121+
"prettier": "^3.0.3",
122122
"pug": "^3.0.2",
123123
"rollup": "^2.79.1",
124124
"rollup-plugin-terser": "^7.0.2",
125125
"rollup-plugin-typescript": "^1.0.1",
126126
"rollup-plugin-typescript2": "^0.35.0",
127127
"rollup-plugin-vue": "^5.1.9",
128-
"ssri": "^10.0.4",
129-
"tslib": "^2.6.1",
130-
"typescript": "^5.1.6",
128+
"ssri": "^10.0.5",
129+
"tslib": "^2.6.2",
130+
"typescript": "^5.2.2",
131131
"vue": "^2.7.14",
132+
"vue-loader": "^15.10.2",
132133
"vue-template-compiler": "^2.7.14"
133134
}
134135
}

components/vue2/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,28 +107,29 @@
107107
"vue-property-decorator": "^9.1.2"
108108
},
109109
"devDependencies": {
110-
"@babel/core": "^7.22.9",
110+
"@babel/core": "^7.22.19",
111111
"@babel/plugin-proposal-class-properties": "^7.18.6",
112-
"@babel/plugin-proposal-decorators": "^7.22.7",
113-
"@rollup/plugin-node-resolve": "^15.1.0",
112+
"@babel/plugin-proposal-decorators": "^7.22.15",
113+
"@rollup/plugin-node-resolve": "^15.2.1",
114114
"@rollup/plugin-replace": "^5.0.2",
115115
"@tsparticles/prettier-config": "^1.12.0",
116116
"@vue/cli-plugin-babel": "~5.0.8",
117117
"@vue/cli-plugin-typescript": "~5.0.8",
118118
"@vue/cli-service": "~5.0.8",
119119
"is-svg": "^5.0.0",
120-
"postcss": "^8.4.27",
121-
"prettier": "^3.0.1",
120+
"postcss": "^8.4.29",
121+
"prettier": "^3.0.3",
122122
"pug": "^3.0.2",
123123
"rollup": "^2.79.1",
124124
"rollup-plugin-terser": "^7.0.2",
125125
"rollup-plugin-typescript": "^1.0.1",
126126
"rollup-plugin-typescript2": "^0.35.0",
127127
"rollup-plugin-vue": "^5.1.9",
128-
"ssri": "^10.0.4",
129-
"tslib": "^2.6.1",
130-
"typescript": "^5.1.6",
128+
"ssri": "^10.0.5",
129+
"tslib": "^2.6.2",
130+
"typescript": "^5.2.2",
131131
"vue": "^2.7.14",
132+
"vue-loader": "^15.10.2",
132133
"vue-template-compiler": "^2.7.14"
133134
}
134135
}

0 commit comments

Comments
 (0)