1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-07 14:35:26 +02:00

Docker image optimization (#150)

This commit is contained in:
Nikita Melnikov 2022-03-06 13:37:06 +04:00 committed by GitHub
parent 8d9c19e595
commit c6e2db0245
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 167 additions and 2359 deletions

View file

@ -9,7 +9,7 @@
"> 1%"
],
"scripts": {
"start:ts": "cross-env NODE_ENV=production nodemon --config nodemon.json ./src/bin/server.ts",
"start": "cross-env NODE_ENV=production nodemon --config nodemon.json ./src/bin/server.ts",
"start:dev": "cross-env NODE_ENV=development nodemon --config nodemon.json ./src/bin/server.ts",
"test": "cross-env NODE_ENV=testing mocha --recursive ./dist/test --exit",
"test:ts": "cross-env NODE_ENV=testing ts-mocha ./src/test/*.ts ./src/test/**/*.ts --exit",
@ -20,35 +20,34 @@
"generatePassword:ts": "ts-node ./src/generatePassword.ts",
"generatePassword": "node ./dist/generatePassword.js",
"editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,link,image,table,inline-code,marker,warning,checklist,raw}@latest",
"compile": "npx tsc"
"compile": "tsc && copyfiles -u 3 ./src/**/*.twig ./dist/backend/views && copyfiles -u 1 ./src/**/*.svg ./dist/"
},
"dependencies": {
"@editorjs/embed": "^2.5.1",
"bcrypt": "^5.0.1",
"commander": "^8.1.0",
"commander": "^9.0.0",
"config": "^3.3.6",
"cookie-parser": "^1.4.5",
"cross-env": "^7.0.3",
"csurf": "^1.11.0",
"debug": "^4.3.2",
"dotenv": "^10.0.0",
"dotenv": "^16.0.0",
"express": "^4.17.1",
"file-type": "^16.5.2",
"http-errors": "^1.8.0",
"http-errors": "^2.0.0",
"jsonwebtoken": "^8.5.1",
"mime": "^2.5.2",
"mime": "^3.0.0",
"mkdirp": "^1.0.4",
"morgan": "^1.10.0",
"multer": "^1.4.2",
"nedb": "^1.8.0",
"node-fetch": "^2.6.1",
"nodemon": "^2.0.12",
"open-graph-scraper": "^4.9.0",
"ts-node": "^10.1.0",
"twig": "^1.15.4",
"uuid4": "^2.0.2"
},
"devDependencies": {
"cross-env": "^7.0.3",
"ts-node": "^10.1.0",
"@editorjs/embed": "^2.5.1",
"@babel/core": "^7.17.5",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/polyfill": "^7.12.1",
@ -69,7 +68,6 @@
"@editorjs/warning": "^1.2.0",
"@types/bcrypt": "^5.0.0",
"@types/chai": "^4.2.21",
"@types/commander": "^2.12.2",
"@types/config": "^0.0.39",
"@types/cookie-parser": "^1.4.2",
"@types/csurf": "^1.11.2",
@ -95,6 +93,7 @@
"babel-loader": "^8.2.3",
"chai": "^4.1.2",
"chai-http": "^4.0.0",
"copyfiles": "^2.4.1",
"css-loader": "^6.7.0",
"cssnano": "^5.1.0",
"eslint": "^7.31.0",