|
|
@@ -4,10 +4,10 @@
|
|
|
"description": "Modern URL shortener.",
|
|
|
"main": "./production-server/server.js",
|
|
|
"scripts": {
|
|
|
- "test": "mocha --compilers js:@babel/register ./client/**/__test__/*.js",
|
|
|
+ "test": "jest",
|
|
|
"docker:build": "docker build -t kutt .",
|
|
|
"docker:run": "docker run -p 3000:3000 --env-file .env -d kutt:latest",
|
|
|
- "dev": "npm run migrate && nodemon server/server.ts",
|
|
|
+ "dev": "npm run migrate && NODE_ENV=development nodemon server/server.ts",
|
|
|
"build": "rimraf production-server && tsc --project tsconfig.json && copyfiles -f \"server/mail/*.html\" production-server/mail && next build client/ ",
|
|
|
"start": "npm run migrate && cross-env NODE_ENV=production node production-server/server.js",
|
|
|
"migrate": "knex migrate:latest --env production",
|
|
|
@@ -47,7 +47,7 @@
|
|
|
"cross-env": "^7.0.2",
|
|
|
"date-fns": "^2.9.0",
|
|
|
"dotenv": "^8.2.0",
|
|
|
- "easy-peasy": "^3.3.0",
|
|
|
+ "easy-peasy": "^5.0.3",
|
|
|
"email-validator": "^1.2.3",
|
|
|
"envalid": "^6.0.0",
|
|
|
"express": "^4.17.1",
|
|
|
@@ -99,19 +99,24 @@
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
"@babel/cli": "^7.8.3",
|
|
|
- "@babel/core": "^7.8.3",
|
|
|
+ "@babel/core": "^7.12.17",
|
|
|
"@babel/node": "^7.8.3",
|
|
|
- "@babel/preset-env": "^7.8.3",
|
|
|
+ "@babel/preset-env": "^7.12.17",
|
|
|
"@babel/register": "^7.8.3",
|
|
|
+ "@testing-library/jest-dom": "^5.11.9",
|
|
|
+ "@testing-library/react": "^11.2.5",
|
|
|
+ "@testing-library/user-event": "^12.8.3",
|
|
|
"@types/bcryptjs": "^2.4.2",
|
|
|
"@types/body-parser": "^1.17.1",
|
|
|
"@types/bull": "^3.12.0",
|
|
|
+ "@types/chai": "^4.2.15",
|
|
|
"@types/cookie-parser": "^1.4.2",
|
|
|
"@types/cors": "^2.8.6",
|
|
|
"@types/date-fns": "^2.6.0",
|
|
|
"@types/dotenv": "^4.0.3",
|
|
|
"@types/express": "^4.17.2",
|
|
|
"@types/helmet": "0.0.38",
|
|
|
+ "@types/jest": "^26.0.20",
|
|
|
"@types/jsonwebtoken": "^7.2.8",
|
|
|
"@types/jwt-decode": "^2.2.1",
|
|
|
"@types/mongodb": "^3.3.14",
|
|
|
@@ -128,16 +133,18 @@
|
|
|
"@types/react-tooltip": "^3.11.0",
|
|
|
"@types/redis": "^2.8.14",
|
|
|
"@types/reflexbox": "^4.0.0",
|
|
|
- "@types/styled-components": "^4.1.8",
|
|
|
- "@typescript-eslint/eslint-plugin": "^2.16.0",
|
|
|
- "@typescript-eslint/parser": "^2.16.0",
|
|
|
+ "@types/sinon": "^9.0.10",
|
|
|
+ "@types/styled-components": "^5.1.7",
|
|
|
+ "@typescript-eslint/eslint-plugin": "^4.15.2",
|
|
|
+ "@typescript-eslint/parser": "^4.15.2",
|
|
|
"babel": "^6.23.0",
|
|
|
"babel-cli": "^6.26.0",
|
|
|
"babel-core": "^6.26.3",
|
|
|
"babel-eslint": "^8.2.6",
|
|
|
+ "babel-jest": "^26.6.3",
|
|
|
"babel-plugin-styled-components": "^1.10.6",
|
|
|
"babel-preset-env": "^1.7.0",
|
|
|
- "chai": "^4.1.2",
|
|
|
+ "chai": "^4.3.0",
|
|
|
"copyfiles": "^2.2.0",
|
|
|
"deep-freeze": "^0.0.1",
|
|
|
"eslint": "^5.16.0",
|
|
|
@@ -148,6 +155,7 @@
|
|
|
"eslint-plugin-prettier": "^3.1.2",
|
|
|
"eslint-plugin-react": "^7.18.0",
|
|
|
"husky": "^0.15.0-rc.13",
|
|
|
+ "jest": "^26.6.3",
|
|
|
"mocha": "^5.2.0",
|
|
|
"nock": "^9.3.3",
|
|
|
"nodemon": "^1.19.4",
|
|
|
@@ -155,6 +163,8 @@
|
|
|
"redoc": "^2.0.0-rc.20",
|
|
|
"rimraf": "^3.0.0",
|
|
|
"sinon": "^6.0.0",
|
|
|
- "typescript": "^3.7.5"
|
|
|
+ "ts-jest": "^26.5.1",
|
|
|
+ "ts-node": "^9.1.1",
|
|
|
+ "typescript": "^4.2.2"
|
|
|
}
|
|
|
}
|