From ccde3bded6b714c385fd3d9e512186ca7019c01b Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Sat, 5 Mar 2022 21:39:27 -0500 Subject: Added missing packages --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 0b7aae2..6f6d802 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "deploy": "cross-env NODE_ENV=production webpack -p", "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --config webpack.config.js", - "start": "webpack-dev-server --config webpack.config.js" + "start": "webpack serve --config webpack.config.js" }, "repository": { "type": "git", @@ -24,9 +24,11 @@ "@babel/core": "^7.17.5", "@babel/preset-env": "^7.16.11", "babel-loader": "^8.2.3", + "dotenv": "^16.0.0", "eslint": "^8.10.0", "webpack": "^5.69.1", - "webpack-cli": "^4.9.2" + "webpack-cli": "^4.9.2", + "webpack-dev-server": "^4.7.4" }, "dependencies": { "@fingerprintjs/fingerprintjs": "^3.3.3", -- cgit From 03e95e916585fb9d1d6b23b6c8af3813df6c260c Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Sat, 5 Mar 2022 22:05:02 -0500 Subject: Add ESLINT --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 0b7aae2..f8908ea 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "deploy": "cross-env NODE_ENV=production webpack -p", "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --config webpack.config.js", - "start": "webpack-dev-server --config webpack.config.js" + "start": "webpack-dev-server --config webpack.config.js", + "lint": "eslint . --ext .js", + "lint:fix": "eslint --fix . --ext .js" }, "repository": { "type": "git", @@ -25,6 +27,8 @@ "@babel/preset-env": "^7.16.11", "babel-loader": "^8.2.3", "eslint": "^8.10.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-plugin-import": "^2.25.4", "webpack": "^5.69.1", "webpack-cli": "^4.9.2" }, -- cgit From 0fea3c5dcb1ef94794df19b29bf611e38ce1118c Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Sat, 5 Mar 2022 22:07:55 -0500 Subject: Fixing scope of eslint --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index f8908ea..a9ee554 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --config webpack.config.js", "start": "webpack-dev-server --config webpack.config.js", - "lint": "eslint . --ext .js", - "lint:fix": "eslint --fix . --ext .js" + "lint": "eslint ./webAO --ext .js", + "lint:fix": "eslint --fix ./webAO --ext .js" }, "repository": { "type": "git", -- cgit From ea0e9c20a9d5e28afcd8a8cbbbb5d29b318d7a3a Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Sat, 5 Mar 2022 22:52:59 -0500 Subject: Added ignore file --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index a9ee554..f8908ea 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --config webpack.config.js", "start": "webpack-dev-server --config webpack.config.js", - "lint": "eslint ./webAO --ext .js", - "lint:fix": "eslint --fix ./webAO --ext .js" + "lint": "eslint . --ext .js", + "lint:fix": "eslint --fix . --ext .js" }, "repository": { "type": "git", -- cgit From ecb0b9f85d5968bfc3d687b51944a47937f698fd Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Sun, 6 Mar 2022 19:00:38 -0500 Subject: Added unit testing and code coverage --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 7971138..27fd577 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "babel": "babel ui.js -o ui.b.js", "webpack": "webpack", "deploy": "cross-env NODE_ENV=production webpack -p", - "test": "echo \"Error: no test specified\" && exit 1", + "test": "jest", + "test:coverage": "jest --coverage", "build": "webpack --config webpack.config.js", "start": "webpack serve --config webpack.config.js", "lint": "eslint . --ext .js", @@ -24,12 +25,14 @@ "homepage": "https://github.com/AttorneyOnline/webAO#readme", "devDependencies": { "@babel/core": "^7.17.5", + "@babel/plugin-transform-modules-commonjs": "^7.16.8", "@babel/preset-env": "^7.16.11", "babel-loader": "^8.2.3", "dotenv": "^16.0.0", "eslint": "^8.10.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.25.4", + "jest": "^27.5.1", "webpack": "^5.69.1", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.7.4" -- cgit