chore: rename client dir to src

This commit is contained in:
MrTimscampi
2021-08-26 04:51:58 +02:00
committed by Julien Machiels
parent 973c6b3cae
commit c124f2ef2a
264 changed files with 28 additions and 34 deletions
+2 -2
View File
@@ -5,5 +5,5 @@ dist
.vscode
.devcontainer
sw.*
client/.nuxt
client/dist
src/.nuxt
src/dist
+2 -2
View File
@@ -74,7 +74,7 @@ module.exports = {
},
overrides: [
{
files: ['client/**/*.ts', 'client/**/*.vue'],
files: ['src/**/*.ts', 'src/**/*.vue'],
env: {
browser: true,
node: true
@@ -122,7 +122,7 @@ module.exports = {
'import/resolver': {
nuxt: {
extensions: ['.js', '.ts', '.vue', '.json'],
nuxtSrcDir: 'client/'
nuxtSrcDir: 'src/'
}
}
}
+3 -7
View File
@@ -5,10 +5,10 @@ github_actions:
- '.github/workflows/*'
vuex:
- 'client/store/**/*.ts'
- 'src/store/**/*.ts'
plugins:
- 'client/plugins/**/*.ts'
- 'src/plugins/**/*.ts'
vue:
- '**/*.vue'
@@ -18,8 +18,4 @@ docker:
ui:
- any:
[
'client/components/**/*.vue',
'client/layouts/**/*.vue',
'client/pages/**/*.vue'
]
['src/components/**/*.vue', 'src/layouts/**/*.vue', 'src/pages/**/*.vue']
+1 -1
View File
@@ -6,6 +6,6 @@ FROM nginx:alpine
LABEL maintainer="Jellyfin Packaging Team - packaging@jellyfin.org"
LABEL org.opencontainers.image.source="https://github.com/jellyfin/jellyfin-vue"
COPY client/dist/ /usr/share/nginx/html/
COPY src/dist/ /usr/share/nginx/html/
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY .docker/mime.types /etc/nginx/mime.types
+2 -2
View File
@@ -7,8 +7,8 @@ LABEL maintainer="Jellyfin Packaging Team - packaging@jellyfin.org"
LABEL org.opencontainers.image.source="https://github.com/jellyfin/jellyfin-vue"
COPY .docker/package.json .docker/package-lock.json ./.docker/nuxt.config.js ./
COPY client/.nuxt ./.nuxt
COPY client/static ./static
COPY src/.nuxt ./.nuxt
COPY src/static ./static
# Install runtime dependencies
RUN npm ci --production --no-audit
+1 -3
View File
@@ -5,7 +5,5 @@
"vetur.format.defaultFormatter.html": "prettier",
"i18n-ally.sourceLanguage": "en-US",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"i18n-ally.localesPaths": [
"client/locales"
]
"i18n-ally.localesPaths": ["src/locales"]
}
+2 -2
View File
@@ -23,8 +23,8 @@ WORKDIR /app
COPY .docker/package.json .docker/package-lock.json .docker/nuxt.config.js ./
# Copy client files from the build image
COPY --from=build /app/client/.nuxt ./.nuxt
COPY --from=build /app/client/static ./static
COPY --from=build /app/src/.nuxt ./.nuxt
COPY --from=build /app/src/static ./static
# Install runtime dependencies
RUN npm ci --production --no-audit
+1 -1
View File
@@ -19,6 +19,6 @@ RUN npm run build:static
# Deploy built distribution to nginx
FROM nginx:alpine
COPY --from=build /app/client/dist/ /usr/share/nginx/html/
COPY --from=build /app/src/dist/ /usr/share/nginx/html/
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY .docker/mime.types /etc/nginx/mime.types
+1 -1
View File
@@ -1,6 +1,6 @@
module.exports = {
collectCoverage: true,
coverageReporters: ['text', 'cobertura', 'html', 'lcov'],
projects: ['<rootDir>/client/jest.config.js'],
projects: ['<rootDir>/src/jest.config.js'],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$'
};
+12 -12
View File
@@ -9,18 +9,18 @@
}
},
"scripts": {
"analyze": "NUXT_SSR=1 nuxt build --analyze client",
"analyze:static": "nuxt build --analyze client",
"dev": "NUXT_SSR=1 nuxt client",
"dev:static": "nuxt client",
"build": "NUXT_SSR=1 nuxt build client",
"build:standalone": "NUXT_SSR=1 nuxt build --standalone client",
"build:static": "nuxt build client",
"prod": "npm run build client && npm run start client",
"prod:static": "npm run build:static client && npm run start:static client",
"start": "NUXT_SSR=1 nuxt start client",
"start:static": "nuxt start client",
"generate": "nuxt generate client",
"analyze": "NUXT_SSR=1 nuxt build --analyze src",
"analyze:static": "nuxt build --analyze src",
"dev": "NUXT_SSR=1 nuxt src",
"dev:static": "nuxt src",
"build": "NUXT_SSR=1 nuxt build src",
"build:standalone": "NUXT_SSR=1 nuxt build --standalone src",
"build:static": "nuxt build src",
"prod": "npm run build src && npm run start src",
"prod:static": "npm run build:static src && npm run start:static src",
"start": "NUXT_SSR=1 nuxt start src",
"start:static": "nuxt start src",
"generate": "nuxt generate src",
"lint:js": "eslint --ext .ts,.js,.json,.vue .",
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",
"lint": "npm run lint:js && npm run lint:style",

Before

Width:  |  Height:  |  Size: 563 B

After

Width:  |  Height:  |  Size: 563 B

Before

Width:  |  Height:  |  Size: 863 B

After

Width:  |  Height:  |  Size: 863 B

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1015 B

After

Width:  |  Height:  |  Size: 1015 B

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 683 B

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 453 B

Before

Width:  |  Height:  |  Size: 833 B

After

Width:  |  Height:  |  Size: 833 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Before

Width:  |  Height:  |  Size: 241 B

After

Width:  |  Height:  |  Size: 241 B

Before

Width:  |  Height:  |  Size: 861 B

After

Width:  |  Height:  |  Size: 861 B

Some files were not shown because too many files have changed in this diff Show More