chore: update package management from yarn to npm
Remove unused dependencies from package.json and switch the project’s package manager from Yarn to NPM. This enhances compatibility with NPM-based workflows and reduces conflicts by ensuring consistent installs through npm ci. Additionally, update the Pinia plugin to a newer version for better performance and functionality.
This commit is contained in:
+3
-3
@@ -2,11 +2,11 @@ FROM cypress/base:22.11.0@sha256:d8168b757f16fa9276f5319909dad171916d4163dbe440a
|
|||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY ./package.json ./yarn.lock ./.snyk ./
|
COPY ./package.json ./package-lock.json ./.snyk ./
|
||||||
RUN yarn install --frozen-lockfile
|
RUN npm ci --no-progress
|
||||||
|
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
RUN yarn run generate && yarn lint
|
RUN npm run generate && npm run lint
|
||||||
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
||||||
|
|
||||||
FROM nginx@sha256:28402db69fec7c17e179ea87882667f1e054391138f77ffaf0c3eb388efc3ffb
|
FROM nginx@sha256:28402db69fec7c17e179ea87882667f1e054391138f77ffaf0c3eb388efc3ffb
|
||||||
|
|||||||
+6
-2
@@ -6,6 +6,10 @@ export default defineNuxtConfig({
|
|||||||
transpile: ['vuetify', 'date-fns'],
|
transpile: ['vuetify', 'date-fns'],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
devServer: {
|
||||||
|
port: 3001,
|
||||||
|
},
|
||||||
|
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
|
|
||||||
i18n: {
|
i18n: {
|
||||||
@@ -40,7 +44,7 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
'@nuxt/eslint',
|
'@nuxt/eslint',
|
||||||
'@pinia/nuxt',
|
'@pinia/nuxt',
|
||||||
'@pinia-plugin-persistedstate/nuxt',
|
'pinia-plugin-persistedstate/nuxt',
|
||||||
'@nuxtjs/i18n',
|
'@nuxtjs/i18n',
|
||||||
'@nuxt/devtools',
|
'@nuxt/devtools',
|
||||||
'@sentry/nuxt/module',
|
'@sentry/nuxt/module',
|
||||||
@@ -74,4 +78,4 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
compatibilityDate: '2024-11-03',
|
compatibilityDate: '2024-11-03',
|
||||||
})
|
})
|
||||||
|
|||||||
Generated
+20393
File diff suppressed because it is too large
Load Diff
+2
-4
@@ -25,10 +25,8 @@
|
|||||||
"@graphql-codegen/typescript-vue-apollo": "4.1.1",
|
"@graphql-codegen/typescript-vue-apollo": "4.1.1",
|
||||||
"@nuxt/devtools": "1.6.0",
|
"@nuxt/devtools": "1.6.0",
|
||||||
"@nuxt/eslint": "0.6.1",
|
"@nuxt/eslint": "0.6.1",
|
||||||
"@nuxtjs/eslint-config-typescript": "12.1.0",
|
|
||||||
"@nuxtjs/eslint-module": "4.1.0",
|
"@nuxtjs/eslint-module": "4.1.0",
|
||||||
"@nuxtjs/i18n": "9.0.0",
|
"@nuxtjs/i18n": "9.0.0",
|
||||||
"@pinia-plugin-persistedstate/nuxt": "1.2.1",
|
|
||||||
"@vue/test-utils": "2.4.6",
|
"@vue/test-utils": "2.4.6",
|
||||||
"esbuild": "0.24.0",
|
"esbuild": "0.24.0",
|
||||||
"eslint": "9.14.0",
|
"eslint": "9.14.0",
|
||||||
@@ -59,10 +57,10 @@
|
|||||||
"graphql": "16.9.0",
|
"graphql": "16.9.0",
|
||||||
"graphql-tag": "2.12.6",
|
"graphql-tag": "2.12.6",
|
||||||
"pinia": "2.2.6",
|
"pinia": "2.2.6",
|
||||||
|
"pinia-plugin-persistedstate": "^4.1.2",
|
||||||
"subscriptions-transport-ws": "0.11.0"
|
"subscriptions-transport-ws": "0.11.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "22"
|
"node": "22"
|
||||||
},
|
}
|
||||||
"packageManager": "yarn@1.22.21"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ export const useState = defineStore(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
persist: {
|
persist: {
|
||||||
|
storage: localStorage,
|
||||||
key: 'dancefinder_state',
|
key: 'dancefinder_state',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user