mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-10 07:55:24 +02:00
Typescript rewrite (#147)
* Updated highlight.js * Update .codexdocsrc.sample remove undefined page for a fresh new install * backend rewritten in TS * test -> TS, .added dockerignore, bug fixed * Removed compiled js files, eslint codex/ts added * fixed jsdocs warning, leaving editor confirmation * use path.resolve for DB paths * db drives updated + fixed User model * redundant cleared + style fixed * explicit type fixing * fixing testing code * added body block type * compiled JS files -> dist, fixed compiling errors * fixed compiling error, re-organized ts source code * updated Dockerfile * fixed link to parent page * up nodejs version * fix package name * fix deps Co-authored-by: nvc8996 <nvc.8996@gmail.com> Co-authored-by: Taly <vitalik7tv@yandex.ru>
This commit is contained in:
parent
059cfb96f9
commit
34514761f5
99 changed files with 3817 additions and 2249 deletions
93
package.json
93
package.json
|
@ -9,40 +9,45 @@
|
|||
"> 1%"
|
||||
],
|
||||
"scripts": {
|
||||
"start": "cross-env NODE_ENV=production nodemon ./bin/www",
|
||||
"start:dev": "cross-env NODE_ENV=development nodemon ./bin/www",
|
||||
"test": "cross-env NODE_ENV=testing mocha --recursive ./test",
|
||||
"lint": "eslint --fix --cache ./src/**/*.js",
|
||||
"start:ts": "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",
|
||||
"lint": "eslint --fix --cache --ext .ts ./src/backend",
|
||||
"build": "webpack ./src/frontend/js/app.js --o='./public/dist/[name].bundle.js' --output-library=Docs --output-public-path=/dist/ -p --mode=production",
|
||||
"build:dev": "webpack ./src/frontend/js/app.js --o='./public/dist/[name].bundle.js' --output-library=Docs --output-public-path=/dist/ -p --mode=development --watch",
|
||||
"precommit": "yarn lint && yarn test --exit",
|
||||
"generatePassword": "node ./generatePassword.js",
|
||||
"editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,link,image,table,inline-code,marker,warning,checklist,raw}@latest"
|
||||
"precommit": "yarn lint && yarn test:ts",
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
"@editorjs/embed": "^2.5.0",
|
||||
"bcrypt": "^5.0.1",
|
||||
"commander": "^2.19.0",
|
||||
"cookie-parser": "~1.4.3",
|
||||
"cross-env": "^5.2.0",
|
||||
"csurf": "^1.9.0",
|
||||
"debug": "~4.1.0",
|
||||
"dotenv": "^6.2.0",
|
||||
"express": "~4.16.0",
|
||||
"file-type": "^10.7.1",
|
||||
"http-errors": "~1.7.1",
|
||||
"jsonwebtoken": "^8.4.0",
|
||||
"mime": "^2.4.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"morgan": "~1.9.0",
|
||||
"multer": "^1.3.1",
|
||||
"commander": "^8.1.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",
|
||||
"express": "^4.17.1",
|
||||
"file-type": "^16.5.2",
|
||||
"http-errors": "^1.8.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"mime": "^2.5.2",
|
||||
"mkdirp": "^1.0.4",
|
||||
"morgan": "^1.10.0",
|
||||
"multer": "^1.4.2",
|
||||
"nedb": "^1.8.0",
|
||||
"node-fetch": "^2.6.1",
|
||||
"nodemon": "^1.18.3",
|
||||
"open-graph-scraper": "^4.5.0",
|
||||
"twig": "~1.12.0",
|
||||
"nodemon": "^2.0.12",
|
||||
"open-graph-scraper": "^4.9.0",
|
||||
"ts-node": "^10.1.0",
|
||||
"twig": "^1.15.4",
|
||||
"typescript-eslint": "^0.0.1-alpha.0",
|
||||
"uuid4": "^1.0.0"
|
||||
"uuid4": "^2.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
|
@ -63,6 +68,31 @@
|
|||
"@editorjs/raw": "^2.3.0",
|
||||
"@editorjs/table": "^2.0.1",
|
||||
"@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",
|
||||
"@types/debug": "^4.1.7",
|
||||
"@types/eslint": "^7.28.0",
|
||||
"@types/express": "^4.17.13",
|
||||
"@types/file-type": "^10.9.1",
|
||||
"@types/jsonwebtoken": "^8.5.4",
|
||||
"@types/mime": "^2.0.3",
|
||||
"@types/mkdirp": "^1.0.2",
|
||||
"@types/mocha": "^9.0.0",
|
||||
"@types/morgan": "^1.9.3",
|
||||
"@types/multer": "^1.4.7",
|
||||
"@types/nedb": "^1.8.12",
|
||||
"@types/node": "^16.4.1",
|
||||
"@types/node-fetch": "^2.5.12",
|
||||
"@types/open-graph-scraper": "^4.8.1",
|
||||
"@types/rimraf": "^3.0.1",
|
||||
"@types/sinon": "^10.0.2",
|
||||
"@types/twig": "^1.12.6",
|
||||
"@typescript-eslint/eslint-plugin": "^4.28.5",
|
||||
"@typescript-eslint/parser": "^4.28.5",
|
||||
"autoprefixer": "^9.1.3",
|
||||
"babel": "^6.23.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
|
@ -71,17 +101,16 @@
|
|||
"chai-http": "^4.0.0",
|
||||
"css-loader": "^1.0.0",
|
||||
"cssnano": "^4.1.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-codex": "^1.3.4",
|
||||
"eslint": "^7.31.0",
|
||||
"eslint-config-codex": "^1.6.2",
|
||||
"eslint-plugin-chai-friendly": "^0.4.1",
|
||||
"eslint-plugin-import": "^2.14.0",
|
||||
"eslint-plugin-node": "^8.0.1",
|
||||
"eslint-plugin-standard": "^4.0.0",
|
||||
"highlight.js": "^11.1.0",
|
||||
"husky": "^1.1.2",
|
||||
"mini-css-extract-plugin": "^0.4.3",
|
||||
"mocha": "^5.2.0",
|
||||
"mocha-sinon": "^2.1.0",
|
||||
"mocha-sinon": "^2.1.2",
|
||||
"module-dispatcher": "^2.0.0",
|
||||
"normalize.css": "^8.0.1",
|
||||
"nyc": "^13.1.0",
|
||||
|
@ -99,8 +128,10 @@
|
|||
"postcss-nested-ancestors": "^2.0.0",
|
||||
"postcss-nesting": "^7.0.0",
|
||||
"postcss-smart-import": "^0.7.6",
|
||||
"rimraf": "^2.6.3",
|
||||
"sinon": "^7.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"sinon": "^11.1.2",
|
||||
"ts-mocha": "^8.0.0",
|
||||
"typescript": "^4.3.5",
|
||||
"webpack": "^4.17.1",
|
||||
"webpack-cli": "^3.1.0"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue