From 42365dd172edc124a32023dfe201211dd4e23292 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Sat, 27 Mar 2021 20:16:20 +0530 Subject: [PATCH] fix: update package files, lerna config (#41599) Co-authored-by: Oliver Eyton-Williams --- api-server/package.json | 31 ++++--- client/package.json | 67 +++++++------- .../fcc-source-challenges/package.json | 21 ++++- .../gatsby-remark-node-identity/package.json | 21 ++++- curriculum/package.json | 18 ++-- lerna.json | 25 +++++- package.json | 88 +++++++++++-------- tools/challenge-helper-scripts/package.json | 23 ++--- tools/challenge-parser/package.json | 26 ++++-- .../dashboard-app/client/package.json | 34 +++++-- .../dashboard-app/server/package.json | 62 +++++++------ tools/contributor/lib/package.json | 29 ++++-- .../contributor/one-off-scripts/package.json | 29 ++++-- tools/contributor/package.json | 55 ++++++++---- tools/crowdin/package.json | 23 +++-- tools/scripts/build/package.json | 21 ++--- tools/scripts/seed/package.json | 21 ++--- 17 files changed, 382 insertions(+), 212 deletions(-) diff --git a/api-server/package.json b/api-server/package.json index 907a2145a4..a560aac031 100644 --- a/api-server/package.json +++ b/api-server/package.json @@ -1,16 +1,33 @@ { "name": "@freecodecamp/api-server", - "private": true, "version": "0.0.1", - "repository": "freecodecamp/freecodecamp", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", "scripts": { - "develop": "cross-env DEBUG=fcc* node src/development-start.js", "babel-dev-server": "babel-node --inspect=0.0.0.0 ./src/server/index.js", "build": "babel src --out-dir lib --ignore 'node_modules /**/*','/**/*.test.js' --copy-files", + "develop": "cross-env DEBUG=fcc* node src/development-start.js", "start": "cross-env DEBUG=fcc* node lib/production-start.js", "test": "jest" }, - "license": "BSD-3-Clause", + "resolutions": { + "babel-core": "7.0.0-bridge.0" + }, "dependencies": { "@freecodecamp/loopback-component-passport": "^1.2.0", "@sentry/node": "^5.30.0", @@ -73,11 +90,5 @@ "loopback-component-explorer": "^6.4.0", "nodemon": "^2.0.7", "smee-client": "^1.2.2" - }, - "resolutions": { - "babel-core": "7.0.0-bridge.0" - }, - "engines": { - "node": ">= 14.0.0" } } diff --git a/client/package.json b/client/package.json index ec6b089315..f4b1082f22 100644 --- a/client/package.json +++ b/client/package.json @@ -1,9 +1,42 @@ { "name": "@freecodecamp/client", + "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", "private": true, - "description": "The freeCodeCamp web client", - "version": "1.0.0", + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", "author": "freeCodeCamp ", + "main": "none", + "scripts": { + "prebuild": "echo 'Client workers building...' && npm run build:workers && echo 'Client workers ready.' && node ../tools/scripts/build/ensure-env.js", + "build": "node --max_old_space_size=7168 node_modules/gatsby-cli build --prefix-paths", + "build:workers": "node --max_old_space_size=7168 node_modules/webpack-cli/bin/cli --env production --config ./webpack-workers.js && echo", + "build:workers:debug": "node --max_old_space_size=7168 node_modules/webpack-cli/bin/cli --env production --config ./webpack-workers.js --progress", + "clean": "gatsby clean", + "predevelop": "npm run prebuild", + "develop": "gatsby develop --inspect=9230", + "format": "npm run format:gatsby && npm run format:src && npm run format:utils", + "format:gatsby": "prettier-eslint --write --trailing-comma none --single-quote './gatsby-*.js'", + "format:src": "prettier-eslint --write --trailing-comma none --single-quote './src/**/*.js'", + "format:utils": "prettier-eslint --write --trailing-comma none --single-quote './utils/**/*.js'", + "lint": "node ./i18n/schema-validation.js", + "serve": "gatsby serve -p 8000", + "prestand-alone": "npm run prebuild", + "stand-alone": "gatsby develop", + "test": "jest", + "validate-keys": "node ./i18n/validate-keys.js" + }, "dependencies": { "@babel/plugin-proposal-export-default-from": "^7.12.13", "@babel/plugin-proposal-function-bind": "^7.12.13", @@ -86,29 +119,6 @@ "typescript": "^4.2.3", "validator": "^13.5.2" }, - "keywords": [ - "gatsby" - ], - "license": "MIT", - "scripts": { - "prebuild": "echo 'Client workers building...' && npm run build:workers && echo 'Client workers ready.' && node ../tools/scripts/build/ensure-env.js", - "build": "node --max_old_space_size=7168 node_modules/gatsby-cli build --prefix-paths", - "build:workers": "node --max_old_space_size=7168 node_modules/webpack-cli/bin/cli --env production --config ./webpack-workers.js && echo", - "build:workers:debug": "node --max_old_space_size=7168 node_modules/webpack-cli/bin/cli --env production --config ./webpack-workers.js --progress", - "clean": "gatsby clean", - "predevelop": "npm run prebuild", - "develop": "gatsby develop --inspect=9230", - "format:gatsby": "prettier-eslint --write --trailing-comma none --single-quote './gatsby-*.js'", - "format:src": "prettier-eslint --write --trailing-comma none --single-quote './src/**/*.js'", - "format:utils": "prettier-eslint --write --trailing-comma none --single-quote './utils/**/*.js'", - "format": "npm run format:gatsby && npm run format:src && npm run format:utils", - "lint": "node ./i18n/schema-validation.js", - "prestand-alone": "npm run prebuild", - "stand-alone": "gatsby develop", - "serve": "gatsby serve -p 8000", - "test": "jest", - "validate-keys": "node ./i18n/validate-keys.js" - }, "devDependencies": { "@testing-library/jest-dom": "^5.11.10", "@testing-library/react": "^11.2.5", @@ -123,12 +133,5 @@ "redux-saga-test-plan": "^4.0.1", "webpack": "^5.28.0", "webpack-cli": "^4.5.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/gatsbyjs/gatsby-starter-default" - }, - "engines": { - "node": ">= 14.0.0" } } diff --git a/client/plugins/fcc-source-challenges/package.json b/client/plugins/fcc-source-challenges/package.json index 2aae25b610..7c9550669d 100644 --- a/client/plugins/fcc-source-challenges/package.json +++ b/client/plugins/fcc-source-challenges/package.json @@ -1,8 +1,21 @@ { - "name": "fcc-source-challenges", - "private": true, + "name": "@freecodecamp/fcc-source-challenges", "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, "engines": { - "node": ">= 14.0.0" - } + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none" } diff --git a/client/plugins/gatsby-remark-node-identity/package.json b/client/plugins/gatsby-remark-node-identity/package.json index 7c0328168d..9b1918d58c 100644 --- a/client/plugins/gatsby-remark-node-identity/package.json +++ b/client/plugins/gatsby-remark-node-identity/package.json @@ -1,8 +1,21 @@ { - "name": "gatsby-plugin-node-identity", - "private": true, + "name": "@freecodecamp/gatsby-plugin-node-identity", "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, "engines": { - "node": ">= 14.0.0" - } + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none" } diff --git a/curriculum/package.json b/curriculum/package.json index ceebbecc86..72854a9f24 100644 --- a/curriculum/package.json +++ b/curriculum/package.json @@ -1,9 +1,13 @@ { "name": "@freecodecamp/curriculum", + "version": "0.0.0-next.4", "description": "freeCodeCamp's curriculum seed files", "license": "(BSD-3-Clause AND CC-BY-SA-4.0)", - "author": "freeCodeCamp ", - "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, "repository": { "type": "git", "url": "https://github.com/freeCodeCamp/freeCodeCamp.git" @@ -11,18 +15,19 @@ "bugs": { "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" }, - "version": "0.0.0-next.4", + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", "scripts": { "build": "node ../tools/scripts/build/build-curriculum.js", "create-empty-steps": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/create-empty-steps", "create-next-step": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/create-next-step", "create-step-between": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/create-step-between", "delete-step": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/delete-step", - "reorder-steps": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/reorder-steps", "lint": "gulp lint", + "reorder-steps": "cross-env CALLING_DIR=$INIT_CWD node ../tools/challenge-helper-scripts/reorder-steps", "pretest": "cd ../client && npm run build:workers", - "pretest:full-output": "npm run pretest", "test": "mocha --delay --reporter progress --bail", + "pretest:full-output": "npm run pretest", "test:full-output": "cross-env FULL_OUTPUT=true mocha --delay --reporter progress" }, "devDependencies": { @@ -58,8 +63,5 @@ "string-similarity": "^4.0.2", "unist-util-visit": "^2.0.3", "vfile": "^4.2.1" - }, - "engines": { - "node": ">= 14.0.0" } } diff --git a/lerna.json b/lerna.json index bf6a9d2fa7..369edd8793 100644 --- a/lerna.json +++ b/lerna.json @@ -2,12 +2,31 @@ "packages": [ "api-server", "client", - "client/plugins/*", + "client/plugins/fcc-source-challenges", + "client/plugins/gatsby-remark-node-identity", "curriculum", + "tools/challenge-helper-scripts", "tools/challenge-parser", - "tools/scripts/seed", + "tools/contributor", + "tools/contributor/dashboard-app/client", + "tools/contributor/dashboard-app/server", + "tools/contributor/lib/", + "tools/contributor/one-off-scripts", + "tools/crowdin", "tools/scripts/build", - "tools/challenge-helper-scripts" + "tools/scripts/seed" ], + "command": { + "bootstrap": { + "ignore": [ + "tools/contributor", + "tools/contributor/dashboard-app/client", + "tools/contributor/dashboard-app/server", + "tools/contributor/lib/", + "tools/contributor/one-off-scripts", + "tools/crowdin" + ] + } + }, "version": "independent" } diff --git a/package.json b/package.json index be6d843b06..6f6704dfc1 100644 --- a/package.json +++ b/package.json @@ -1,30 +1,46 @@ { "name": "@freecodecamp/freecodecamp", - "private": true, "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", "scripts": { "audit": "npm audit & lerna exec --no-bail 'echo $LERNA_PACKAGE_NAME & npm audit'", "audit:fix": "npm audit fix & lerna exec 'echo $LERNA_PACKAGE_NAME & npm audit fix'", + "bootstrap": "lerna bootstrap --ci", "prebuild": "npm run ensure-env", "build": "npm-run-all -p build:*", "build:client": "cd ./client && npm run build", - "build:server": "cd ./api-server && npm run build", "build:curriculum": "cd ./curriculum && npm run build", - "bootstrap": "lerna bootstrap --ci", + "build:server": "cd ./api-server && npm run build", "clean": "npm-run-all clean:client clean:server clean:packages clean:root-deps", "clean-and-develop": "npm run clean && npm ci && npm run develop", - "clean:root-deps": "shx rm -rf node_modules", - "clean:packages": "lerna clean -y", - "clean:server": "shx rm -rf ./api-server/lib", "clean:client": "cd ./client && npm run clean", "clean:curriculum": "shx rm ./config/curriculum.json", "clean:gatsby-site": "npm run clean:client", + "clean:packages": "lerna clean -y", + "clean:root-deps": "shx rm -rf node_modules", + "clean:server": "shx rm -rf ./api-server/lib", "precypress": "node ./cypress-install.js", "cypress": "cypress", - "cypress:install": "cypress install && echo 'for use with ./cypress-install.js'", - "cypress:install-build-tools": "sh ./cypress-install.sh", "cypress:dev:run": "npm run cypress -- run", "cypress:dev:watch": "npm run cypress -- open", + "cypress:install": "cypress install && echo 'for use with ./cypress-install.js'", + "cypress:install-build-tools": "sh ./cypress-install.sh", "cypress:prd:run": "npm run cypress -- run", "cypress:prd:watch": "npm run cypress -- open", "predevelop": "npm run ensure-env", @@ -32,24 +48,24 @@ "develop:client": "cd ./client && npm run develop", "develop:server": "cd ./api-server && npm run develop", "docs:serve": "docsify serve ./docs -o --port 3200", - "ensure-env": "cross-env DEBUG=fcc:* node ./tools/scripts/build/ensure-env.js", - "e2e:dev:watch": "start-test develop ':3000/status/ping|8000' cypress:dev:watch", "e2e": "npm run e2e:dev:run", "e2e:dev:run": "start-test develop ':3000/status/ping|8000' cypress:dev:run", - "e2e:prd:watch": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:watch", + "e2e:dev:watch": "start-test develop ':3000/status/ping|8000' cypress:dev:watch", "e2e:prd:run": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:run", + "e2e:prd:watch": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:watch", + "ensure-env": "cross-env DEBUG=fcc:* node ./tools/scripts/build/ensure-env.js", "format": "npm-run-all -p format:*", - "format:js": "npm run lint:js -- --fix", "format:css": "npm run prettier -- --write", + "format:js": "npm run lint:js -- --fix", "hooks:install": "node node_modules/husky/husky.js install", "hooks:uninstall": "node node_modules/husky/husky.js uninstall", "lint": "npm-run-all ensure-env -p lint:*", "lint:challenges": "cd ./curriculum && npm run lint", - "lint:js": "eslint .", "lint:css": "npm run prettier -- --check", + "lint:js": "eslint .", "lint:translations": "cd ./client && npm run lint", - "prettier": "prettier \"**/*.css\"", "postinstall": "npm run bootstrap", + "prettier": "prettier \"**/*.css\"", "seed": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser", "seed:certified-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser certUser", "serve:client": "cd ./client && npm run serve", @@ -57,14 +73,35 @@ "start-ci": "npm-run-all ensure-env -p start:server serve:client", "start:server": "cd ./api-server && npm start", "test": "npm-run-all ensure-env build:curriculum -p test:*", + "test-curriculum-full-output": "cd ./curriculum && npm run test:full-output", "test:client": "cd ./client && npm test", "test:curriculum": "cd ./curriculum && npm test", - "test-curriculum-full-output": "cd ./curriculum && npm run test:full-output", "test:curriculum-js": "jest --rootDir ./curriculum", "test:server": "cd ./api-server && npm test", "test:tools": "jest ./tools", "test:utils": "jest --rootDir ./utils" }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "linters": { + "*.css": [ + "prettier --write", + "git add" + ], + "*.js": [ + "eslint --fix", + "git add" + ], + "./curriculum/challenges/**/*.md": "node ./tools/scripts/lint/index.js" + } + }, + "dependencies": { + "dotenv": "^8.2.0" + }, "devDependencies": { "@testing-library/cypress": "^7.0.4", "babel-eslint": "^10.1.0", @@ -100,26 +137,5 @@ "sinon": "^7.4.1", "sinon-express-mock": "^2.2.1", "start-server-and-test": "^1.12.1" - }, - "lint-staged": { - "linters": { - "*.js": [ - "eslint --fix", - "git add" - ], - "./curriculum/challenges/**/*.md": "node ./tools/scripts/lint/index.js", - "*.css": [ - "prettier --write", - "git add" - ] - } - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "dependencies": { - "dotenv": "^8.2.0" } } diff --git a/tools/challenge-helper-scripts/package.json b/tools/challenge-helper-scripts/package.json index 97fb503714..b5baba0809 100644 --- a/tools/challenge-helper-scripts/package.json +++ b/tools/challenge-helper-scripts/package.json @@ -1,9 +1,13 @@ { "name": "@freecodecamp/curriculum-helper-scripts", + "version": "0.0.0-next.1", "description": "freeCodeCamp's project-based curriculum scripts", "license": "(BSD-3-Clause AND CC-BY-SA-4.0)", - "author": "freeCodeCamp ", - "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, "repository": { "type": "git", "url": "https://github.com/freeCodeCamp/freeCodeCamp.git" @@ -11,7 +15,8 @@ "bugs": { "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" }, - "version": "0.0.0-next.1", + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", "main": "utils.js", "scripts": { "test": "mocha --delay --reporter progress --bail" @@ -20,17 +25,5 @@ "bson-objectid": "^1.3.1", "cross-env": "^7.0.2", "gray-matter": "^4.0.2" - }, - "keywords": [ - "challenges", - "curriculum", - "freecodecamp", - "javascript" - ], - "publishConfig": { - "access": "public" - }, - "engines": { - "node": ">= 14.0.0" } } diff --git a/tools/challenge-parser/package.json b/tools/challenge-parser/package.json index 00b8230d89..c6a13977e3 100644 --- a/tools/challenge-parser/package.json +++ b/tools/challenge-parser/package.json @@ -1,14 +1,26 @@ { - "name": "challenge-parser", + "name": "@freecodecamp/challenge-parser", "version": "0.0.1", - "description": "converts challenge files to objects", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "devDependencies": { - "unist-util-select": "^3.0.1" - }, "dependencies": { "hast-util-to-html": "^7.1.1", "js-yaml": "^3.12.0", @@ -37,7 +49,7 @@ "unist-util-visit": "^2.0.3", "unist-util-visit-children": "^1.1.4" }, - "engines": { - "node": ">= 14.0.0" + "devDependencies": { + "unist-util-select": "^3.0.1" } } diff --git a/tools/contributor/dashboard-app/client/package.json b/tools/contributor/dashboard-app/client/package.json index 3e3bad485b..2e71d6d94b 100644 --- a/tools/contributor/dashboard-app/client/package.json +++ b/tools/contributor/dashboard-app/client/package.json @@ -1,19 +1,29 @@ { "name": "@freecodecamp/dashboard-client", - "homepage": ".", + "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", "private": true, - "dependencies": { - "react": "^16.6.3", - "react-dom": "^16.6.3", - "react-scripts": "2.1.1", - "styled-components": "^4.1.1" + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", "scripts": { + "build": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts build", "dev": "develop", "develop": "cross-env REACT_APP_HOST=local SKIP_PREFLIGHT_CHECK=true react-scripts start", - "build": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts build", - "test": "SKIP_PREFLIGHT_CHECK=true react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "test": "SKIP_PREFLIGHT_CHECK=true react-scripts test" }, "browserslist": [ ">0.2%", @@ -21,6 +31,12 @@ "not ie <= 11", "not op_mini all" ], + "dependencies": { + "react": "^16.6.3", + "react-dom": "^16.6.3", + "react-scripts": "2.1.1", + "styled-components": "^4.1.1" + }, "devDependencies": { "cross-env": "^5.2.0" } diff --git a/tools/contributor/dashboard-app/server/package.json b/tools/contributor/dashboard-app/server/package.json index 7360b51e00..a73b7a4f24 100644 --- a/tools/contributor/dashboard-app/server/package.json +++ b/tools/contributor/dashboard-app/server/package.json @@ -1,22 +1,46 @@ { - "name": "@freecodecamp/contributer-tools", - "version": "1.0.0", + "name": "@freecodecamp/dashboard-server", + "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", "license": "BSD-3-Clause", - "repository": "https://github.com/freecodecamp/dashboard.git", - "bugs": "https://github.com/freeCodeCamp/freeCodeCamp/issues", - "keywords": [ - "freeCodeCamp", - "github", - "contributer tools" - ], + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", "scripts": { "dev": "develop", "develop": "nodemon", - "start": "node index.js", "lint": "standard --fix", + "start": "node index.js", "test": "cross-env TEST_ENV=true jest --forceExit && standard", "test:watch": "jest --watch --notify --notifyMode=change --coverage" }, + "jest": { + "testEnvironment": "node" + }, + "nodemonConfig": { + "exec": "npm start", + "watch": [ + ".env", + "." + ] + }, + "standard": { + "env": [ + "jest" + ] + }, "dependencies": { "@octokit/rest": "^18.0.12", "body-parser": "^1.18.3", @@ -31,23 +55,5 @@ "nodemon": "^1.17.2", "smee-client": "^1.0.2", "standard": "^10.0.3" - }, - "engines": { - "node": ">= 12.18.3" - }, - "standard": { - "env": [ - "jest" - ] - }, - "nodemonConfig": { - "exec": "npm start", - "watch": [ - ".env", - "." - ] - }, - "jest": { - "testEnvironment": "node" } } diff --git a/tools/contributor/lib/package.json b/tools/contributor/lib/package.json index 220d5e6f27..7efefa7777 100644 --- a/tools/contributor/lib/package.json +++ b/tools/contributor/lib/package.json @@ -1,5 +1,26 @@ { - "name": "freecodecampcontributelib", + "name": "@freecodecamp/contributor-tools-lib", + "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, "dependencies": { "@octokit/rest": "^18.0.12", "cli-progress": "^2.1.0", @@ -14,9 +35,5 @@ "travis-ci": "^2.2.0", "util": "^0.11.1" }, - "devDependencies": {}, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "license": "BSD-3-Clause" + "devDependencies": {} } diff --git a/tools/contributor/one-off-scripts/package.json b/tools/contributor/one-off-scripts/package.json index a088581147..ba4e248362 100644 --- a/tools/contributor/one-off-scripts/package.json +++ b/tools/contributor/one-off-scripts/package.json @@ -1,14 +1,31 @@ { - "name": "freecodecampcontributeoneoffscripts", + "name": "@freecodecamp/contributor-tools-one-off-scripts", + "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, "dependencies": { "@octokit/rest": "^18.0.12", "cli-progress": "^2.1.0", "dedent": "^0.7.0", "path": "^0.12.7" }, - "devDependencies": {}, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "license": "BSD-3-Clause" + "devDependencies": {} } diff --git a/tools/contributor/package.json b/tools/contributor/package.json index 0fa3bc76b1..6ba42076ac 100644 --- a/tools/contributor/package.json +++ b/tools/contributor/package.json @@ -1,28 +1,35 @@ { - "name": "@freecodecamp/contributer-tools", - "description": "Tools to help maintain freecodecamp.org's Open Source Codebase on GitHub", + "name": "@freecodecamp/contributor-tools", + "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", "scripts": { "bootstrap": "lerna bootstrap --ci", "build": "lerna run build", - "postinstall": "npm run bootstrap", - "test": "run-p test:*", - "test:client": "cd ./dashboard-app/client && npm run test", - "format": "prettier --write es5 ./**/*.{js,json} && npm run lint", - "lint": "eslint ./**/*.js --fix", - "start": "cd dashboard-app/server && npm start", "develop": "run-p develop:*", "develop:client": "cd ./dashboard-app/client && npm run develop", - "develop:server": "cd ./dashboard-app/server && npm run develop" - }, - "devDependencies": { - "dotenv": "^8.2.0", - "eslint": "^5.9.0", - "joi": "^14.3.1", - "lerna": "^3.5.1", - "mocha": "^5.2.0", - "nodemon": "^1.18.9", - "npm-run-all": "^4.1.5", - "prettier": "^1.15.2" + "develop:server": "cd ./dashboard-app/server && npm run develop", + "format": "prettier --write es5 ./**/*.{js,json} && npm run lint", + "lint": "eslint ./**/*.js --fix", + "postinstall": "npm run bootstrap", + "start": "cd dashboard-app/server && npm start", + "test": "run-p test:*", + "test:client": "cd ./dashboard-app/client && npm run test" }, "nodemonConfig": { "exec": "npm start", @@ -34,5 +41,15 @@ "dependencies": { "ajv": "^6.6.1", "ajv-keywords": "^3.2.0" + }, + "devDependencies": { + "dotenv": "^8.2.0", + "eslint": "^5.9.0", + "joi": "^14.3.1", + "lerna": "^3.5.1", + "mocha": "^5.2.0", + "nodemon": "^1.18.9", + "npm-run-all": "^4.1.5", + "prettier": "^1.15.2" } } diff --git a/tools/crowdin/package.json b/tools/crowdin/package.json index 87d8c850a9..c1daab8f0e 100644 --- a/tools/crowdin/package.json +++ b/tools/crowdin/package.json @@ -1,13 +1,26 @@ { - "name": "crowdin", - "version": "1.0.0", - "description": "", + "name": "@freecodecamp/crowdin", + "version": "0.0.1", + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" + }, + "bugs": { + "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" + }, + "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "author": "freeCodeCamp", - "license": "ISC", "dependencies": { "@actions/core": "^1.2.6", "@actions/github": "^4.0.0", diff --git a/tools/scripts/build/package.json b/tools/scripts/build/package.json index b15d3c187a..3fefbc03b1 100644 --- a/tools/scripts/build/package.json +++ b/tools/scripts/build/package.json @@ -1,28 +1,29 @@ { "name": "@freecodecamp/scripts-build", - "private": true, "version": "0.0.1", - "description": "Build Scripts", - "main": "NA", - "scripts": { - "test": "jest" + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" }, "repository": { "type": "git", "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" }, - "author": "freeCodeCamp.org", - "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" }, "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", + "scripts": { + "test": "jest" + }, "devDependencies": { "debug": "^4.0.1", "dotenv": "^6.0.0", "jest": "^26.0.0" - }, - "engines": { - "node": ">= 14.0.0" } } diff --git a/tools/scripts/seed/package.json b/tools/scripts/seed/package.json index ba750ce110..4cb0e8e4d4 100644 --- a/tools/scripts/seed/package.json +++ b/tools/scripts/seed/package.json @@ -1,30 +1,31 @@ { "name": "@freecodecamp/scripts-seed", - "private": true, "version": "0.0.1", - "description": "Database seed scripts", - "main": "NA", - "scripts": { - "test": "jest" + "description": "The freeCodeCamp.org open-source codebase and curriculum", + "license": "BSD-3-Clause", + "private": true, + "engines": { + "node": ">= 14.0.0", + "npm": "^6.14.12" }, "repository": { "type": "git", "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" }, - "author": "freeCodeCamp.org", - "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" }, "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", + "author": "freeCodeCamp ", + "main": "none", + "scripts": { + "test": "jest" + }, "devDependencies": { "debug": "^4.0.1", "dotenv": "^6.0.0", "jest": "^24.9.0", "lodash": "^4.17.19", "mongodb": "^3.5.5" - }, - "engines": { - "node": ">= 14.0.0" } }