Fix dockerfile.

This commit is contained in:
Dessalines 2023-10-12 00:00:07 -04:00
parent 0acd7bda40
commit 3232d32c74
2 changed files with 4 additions and 8 deletions

View file

@ -37,6 +37,7 @@ COPY tsconfig.json \
webpack.config.js \ webpack.config.js \
.babelrc \ .babelrc \
generate_translations.mjs \ generate_translations.mjs \
tailwind.config.js \
./ ./
COPY joinlemmy-translations joinlemmy-translations COPY joinlemmy-translations joinlemmy-translations

View file

@ -11,7 +11,7 @@
"lint": "node generate_translations.mjs && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"", "lint": "node generate_translations.mjs && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
"prebuild:dev": "yarn clean && node generate_translations.mjs && yarn tailwind", "prebuild:dev": "yarn clean && node generate_translations.mjs && yarn tailwind",
"prebuild:prod": "yarn clean && node generate_translations.mjs && yarn tailwind", "prebuild:prod": "yarn clean && node generate_translations.mjs && yarn tailwind",
"tailwind": "tailwindcss -i ./src/style.css -o ./dist/styles/styles.css", "tailwind": "tailwindcss -i ./src/style.css -o ./dist/styles/styles.css --minify",
"prepare": "husky install", "prepare": "husky install",
"start": "yarn build:dev --watch & yarn tailwind --watch" "start": "yarn build:dev --watch & yarn tailwind --watch"
}, },
@ -75,12 +75,7 @@
}, },
"engineStrict": true, "engineStrict": true,
"lint-staged": { "lint-staged": {
"*.{ts,tsx,js}": [ "*.{ts,tsx,js}": ["prettier --write", "eslint --fix"],
"prettier --write", "package.json": ["sortpack"]
"eslint --fix"
],
"package.json": [
"sortpack"
]
} }
} }