Skip to content

Commit

Permalink
build: fixed deps and restored build:ci on nuxt2 app
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Sep 15, 2023
1 parent d91a8fa commit bfab35b
Show file tree
Hide file tree
Showing 10 changed files with 2,354 additions and 2,126 deletions.
4 changes: 0 additions & 4 deletions apps/nuxt2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

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





# 1.1.0 (2023-07-14)

**Note:** Version bump only for package nuxt2-demo
52 changes: 24 additions & 28 deletions apps/nuxt2/components/Tutorial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@
href="https://nuxtjs.org"
target="_blank"
class="button--doc text-green-500 hover:underline"
>Nuxt Documentation</a
>Nuxt Documentation</a
>, whether you are new or have previous experience with the
framework.<br />
</p>
<p class="mt-4 pt-4 text-gray-800 border-t border-dashed">
To get started, remove
<code class="bg-gray-100 text-sm p-1 rounded border"
>components/Tutorial.vue</code
>components/Tutorial.vue</code
>
and start coding in
<code class="bg-gray-100 text-sm p-1 rounded border"
>pages/index.vue</code
>pages/index.vue</code
>. Have fun!
</p>
</div>
Expand All @@ -81,8 +81,7 @@
:particles-init="particlesInit"
/>
<div class="flex justify-center pt-4 space-x-2">
<a href="https://github.com/nuxt/nuxt.js" target="_blank"
>
<a href="https://github.com/nuxt/nuxt.js" target="_blank">
<svg
class="w-6 h-6 text-gray-600 hover:text-gray-800 button--github"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -98,11 +97,9 @@
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"
fill="currentColor"
/>
</svg
>
</svg>
</a>
<a href="https://twitter.com/nuxt_js" target="_blank"
>
<a href="https://twitter.com/nuxt_js" target="_blank">
<svg
class="w-6 h-6 text-gray-600 hover:text-gray-800"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -118,51 +115,50 @@
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"
fill="currentColor"
/>
</svg
>
</svg>
</a>
</div>
</div>
</div>
</template>

<script>
import { loadFull } from "tsparticles";
import { loadFull } from 'tsparticles'

export default {
name: "NuxtTutorial",
name: 'NuxtTutorial',
data() {
return {
options: {
background: {
color: "rgb(243,244,246)"
color: 'rgb(243,244,246)',
},
fullScreen: {
enable: true,
zIndex: -1
zIndex: -1,
},
particles: {
color: {
value: "#000"
value: '#000',
},
links: {
color: "#000",
enable: true
color: '#000',
enable: true,
},
move: {
enable: true
enable: true,
},
number: {
value: 100
}
}
}
};
value: 100,
},
},
},
}
},
methods: {
particlesInit: async (engine) => {
await loadFull(engine);
}
}
};
await loadFull(engine)
},
},
}
</script>
30 changes: 15 additions & 15 deletions apps/nuxt2/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ export default {
ssr: false,

// Target: https://go.nuxtjs.dev/config-target
target: "static",
target: 'static',

// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: "nuxt2-demo",
title: 'nuxt2-demo',
htmlAttrs: {
lang: "en"
lang: 'en',
},
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "" },
{ name: "format-detection", content: "telephone=no" }
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' },
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }]
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},

// Global CSS: https://go.nuxtjs.dev/config-css
Expand All @@ -26,9 +26,9 @@ export default {
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{
src: "~/plugins/vue2-particles.ts",
mode: "client"
}
src: '~/plugins/vue2-particles.ts',
mode: 'client',
},
],

// Auto import components: https://go.nuxtjs.dev/config-components
Expand All @@ -37,14 +37,14 @@ export default {
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/typescript
"@nuxt/typescript-build"
'@nuxt/typescript-build',
],

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

// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
transpile: ["tsparticles", "tsparticles-engine"]
}
};
transpile: ['tsparticles', 'tsparticles-engine'],
},
}
30 changes: 18 additions & 12 deletions apps/nuxt2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"build": "pnpm run lintfix && nuxt build",
"build:ci": "pnpm run list && nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .",
Expand All @@ -13,7 +14,7 @@
"lintfix": "prettier --write --list-different . && yarn lint:js --fix"
},
"dependencies": {
"core-js": "^3.32.0",
"core-js": "^3.32.2",
"nuxt": "^2.17.1",
"tsparticles": "^2.12.0",
"tsparticles-engine": "^2.12.0",
Expand All @@ -23,21 +24,26 @@
"vue2-particles": "^2.12.0"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/eslint-parser": "^7.22.9",
"@babel/core": "^7.22.19",
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.5",
"@babel/plugin-transform-optional-chaining": "^7.22.6",
"@babel/preset-env": "^7.22.9",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
"@babel/plugin-transform-optional-chaining": "^7.22.15",
"@babel/preset-env": "^7.22.15",
"@nuxt/types": "^2.17.1",
"@nuxt/typescript-build": "^3.0.1",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/eslint-module": "^4.1.0",
"eslint": "^8.46.0",
"@types/node": "^20.6.0",
"css-loader": "^4.3.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-nuxt": "^4.0.0",
"eslint-plugin-vue": "^9.16.1",
"prettier": "^3.0.1",
"vue-template-babel-compiler": "^2.0.0"
"eslint-plugin-vue": "^9.17.0",
"postcss-loader": "^3.0.0",
"prettier": "^3.0.3",
"vue-loader": "^15.10.2",
"vue-template-babel-compiler": "^2.0.0",
"webpack": "^4.46.0"
}
}
8 changes: 4 additions & 4 deletions apps/nuxt2/plugins/shim-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare module "*.vue" {
import Vue from "vue";
export default Vue;
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}

declare module "vue2-particles";
declare module 'vue2-particles'
6 changes: 3 additions & 3 deletions apps/nuxt2/plugins/vue2-particles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Vue from "vue";
import Particles from "vue2-particles";
import Vue from 'vue'
import Particles from 'vue2-particles'

Vue.use(Particles);
Vue.use(Particles)
21 changes: 11 additions & 10 deletions apps/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,31 @@
"vue2-particles": "^2.12.0"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/core": "^7.22.19",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.22.7",
"@babel/plugin-proposal-decorators": "^7.22.15",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-replace": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vue/cli-plugin-babel": "^5.0.8",
"@vue/cli-plugin-typescript": "^5.0.8",
"@vue/cli-service": "^5.0.8",
"babel-loader": "^8.3.0",
"eslint": "^8.46.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"postcss": "^8.4.27",
"prettier": "^3.0.1",
"postcss": "^8.4.29",
"prettier": "^3.0.3",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-typescript2": "^0.35.0",
"rollup-plugin-vue": "^5.1.9",
"tslib": "^2.6.1",
"typescript": "^5.1.6",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vue-loader": "^15.10.2",
"vue-template-compiler": "^2.7.14",
"webpack": "^4.46.0"
}
Expand Down
17 changes: 9 additions & 8 deletions components/vue2-alt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,29 @@
"vue-property-decorator": "^9.1.2"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/core": "^7.22.19",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.22.7",
"@rollup/plugin-node-resolve": "^15.1.0",
"@babel/plugin-proposal-decorators": "^7.22.15",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-replace": "^5.0.2",
"@tsparticles/prettier-config": "^1.12.0",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-typescript": "~5.0.8",
"@vue/cli-service": "~5.0.8",
"is-svg": "^5.0.0",
"postcss": "^8.4.27",
"prettier": "^3.0.1",
"postcss": "^8.4.29",
"prettier": "^3.0.3",
"pug": "^3.0.2",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-typescript2": "^0.35.0",
"rollup-plugin-vue": "^5.1.9",
"ssri": "^10.0.4",
"tslib": "^2.6.1",
"typescript": "^5.1.6",
"ssri": "^10.0.5",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vue": "^2.7.14",
"vue-loader": "^15.10.2",
"vue-template-compiler": "^2.7.14"
}
}
17 changes: 9 additions & 8 deletions components/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,29 @@
"vue-property-decorator": "^9.1.2"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/core": "^7.22.19",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.22.7",
"@rollup/plugin-node-resolve": "^15.1.0",
"@babel/plugin-proposal-decorators": "^7.22.15",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-replace": "^5.0.2",
"@tsparticles/prettier-config": "^1.12.0",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-typescript": "~5.0.8",
"@vue/cli-service": "~5.0.8",
"is-svg": "^5.0.0",
"postcss": "^8.4.27",
"prettier": "^3.0.1",
"postcss": "^8.4.29",
"prettier": "^3.0.3",
"pug": "^3.0.2",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-typescript2": "^0.35.0",
"rollup-plugin-vue": "^5.1.9",
"ssri": "^10.0.4",
"tslib": "^2.6.1",
"typescript": "^5.1.6",
"ssri": "^10.0.5",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vue": "^2.7.14",
"vue-loader": "^15.10.2",
"vue-template-compiler": "^2.7.14"
}
}
Loading

0 comments on commit bfab35b

Please sign in to comment.