Skip to content

Commit

Permalink
refactor: move stuff to root, use pnpm & restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedadead committed Apr 6, 2023
1 parent 913c7b9 commit 5467b6e
Show file tree
Hide file tree
Showing 140 changed files with 3,700 additions and 13,650 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -2,3 +2,15 @@

> Scripts for some one-off DevOps tasks. We use these for generating stats and
> other housekeeping.
## Warning

Please check the scripts for usage instructions, and note that some of them become completely outdated over time.

## Usage

```bash
pnpm install --filter <folder name of the script>
```

Then follow the instructions in the `README.md` of the package or check the script code for details.
20 changes: 5 additions & 15 deletions accounts/package.json
@@ -1,22 +1,12 @@
{
"name": "scripts",
"version": "1.0.0",
"description": "script",
"main": "index.js",
"name": "accounts",
"version": "0.0.0",
"private": true,
"scripts": {
"mailing-list": "node ./get-emails.js",
"test": "echo \"Happy Coding!\""
"start": "echo \"Error: Start has not been defined.\" && exit 1",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/FreeCodeCamp/scripts.git"
},
"author": "freeCodeCamp",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/FreeCodeCamp/scripts/issues"
},
"homepage": "https://github.com/FreeCodeCamp/scripts#readme",
"dependencies": {
"dotenv": "^9.0.2",
"email-validator": "^2.0.4",
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions chat-emails/package.json
@@ -0,0 +1,13 @@
{
"name": "chat-emails",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node -r dotenv/config index.js",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"dependencies": {
"dotenv": "^16.0.0",
"mongo": "^0.1.0"
}
}
File renamed without changes.
File renamed without changes.
9 changes: 3 additions & 6 deletions packages/chat/package.json → chat/package.json
@@ -1,16 +1,13 @@
{
"name": "chat",
"version": "1.0.0",
"description": "Query user list from Rocket.Chat",
"main": "prod/index.js",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "tsc",
"lint": "eslint src --max-warnings 0",
"start": "node -r dotenv/config prod/index.js",
"test": "echo \"No tests yet\""
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"author": "Naomi Carrigan",
"license": "BSD-3-Clause",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.57.0",
"@typescript-eslint/parser": "5.57.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 4 additions & 15 deletions packages/contributors/package.json → contributors/package.json
@@ -1,25 +1,14 @@
{
"name": "top-contributor-tool",
"version": "1.0.0",
"description": "A tool to generate lists of contributors",
"main": "./prod/index.js",
"name": "contributors",
"version": "0.0.0",
"private": true,
"scripts": {
"aggregate": "node -r dotenv/config prod/modules/aggregateData.js",
"build": "tsc",
"lint": "eslint src --max-warnings 0",
"start": "node -r dotenv/config prod/index.js",
"test": "echo 'no tests yet'"
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nhcarrigan/top-contributor-tool.git"
},
"author": "Naomi Carrigan",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/nhcarrigan/top-contributor-tool/issues"
},
"homepage": "https://github.com/nhcarrigan/top-contributor-tool#readme",
"devDependencies": {
"@types/node-fetch": "2.6.3",
"@types/tryghost__content-api": "1.3.11",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions crowdin/package.json
@@ -0,0 +1,24 @@
{
"name": "crowdin",
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=16",
"npm": ">=8"
},
"scripts": {
"start": "echo \"Error: Start has not been defined.\" && exit 1",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"dependencies": {
"@actions/core": "1.10.0",
"@actions/github": "5.1.1",
"dotenv": "16.0.3",
"fs-extra": "10.1.0",
"gray-matter": "4.0.3",
"node-fetch": "2.6.9",
"node-opencc": "2.0.1",
"path": "0.12.7",
"readdirp": "3.6.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions packages/database/package.json → database/package.json
@@ -1,19 +1,19 @@
{
"name": "database",
"version": "1.0.0",
"version": "0.0.0",
"private": true,
"license": "BSD-3-Clause",
"dependencies": {
"dotenv": "16.0.3",
"migrate-mongo": "8.2.3"
},
"scripts": {
"create": "migrate-mongo create",
"status": "migrate-mongo status",
"test": "echo \"Error: no test specified\" && exit 1",
"up": "migrate-mongo up",
"up-and-log": "migrate-mongo up 2>&1| tee output.log",
"down": "migrate-mongo down"
"down": "migrate-mongo down",
"start": "echo \"Error: Start has not been defined.\" && exit 1",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"engines": {
"node": ">= 14"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions packages/duplicates/package.json → duplicates/package.json
@@ -1,19 +1,17 @@
{
"name": "duplicates",
"version": "1.0.0",
"description": "",
"main": "index.js",
"version": "0.0.0",
"private": true,
"scripts": {
"prebuild": "rm -rf ./prod",
"build": "tsc",
"get-emails": "node -r dotenv/config prod/emails.js",
"get-usernames": "node -r dotenv/config prod/usernames.js",
"merge": "node -r dotenv/config prod/merge.js",
"merge:verify": "node prod/merge.js --verify",
"start": "node ./prod/index.js"
"start": "node ./prod/index.js",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@types/inquirer": "8.2.6",
"typescript": "4.9.5"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions forum/package.json
@@ -0,0 +1,13 @@
{
"name": "forum",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "echo \"Error: Start has not been defined.\" && exit 1",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"dependencies": {
"dotenv": "^16.0.1",
"node-fetch": "^2.6.1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions github/package.json
@@ -0,0 +1,17 @@
{
"name": "github",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "echo \"Error: Start has not been defined.\" && exit 1",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"dependencies": {
"@octokit/rest": "^18.5.2",
"dotenv": "^16.0.1",
"ora": "^5.1.0"
},
"engines": {
"node": ">= 14"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions packages/honesty/package.json → honesty/package.json
@@ -1,15 +1,13 @@
{
"name": "honesty",
"version": "1.0.0",
"description": "",
"main": "index.js",
"version": "0.0.0",
"private": true,
"scripts": {
"prebuild": "rm -rf ./prod",
"build": "tsc",
"start": "node ./prod/index.js"
"start": "node ./prod/index.js",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@types/inquirer": "8.2.6",
"typescript": "4.9.5"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions packages/images/package.json → images/package.json
@@ -1,13 +1,11 @@
{
"name": "images",
"version": "0.0.1",
"description": "scripts for processing images",
"main": "index.js",
"version": "0.0.0",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "echo \"Error: Start has not been defined.\" && exit 1",
"test": "echo \"Error: Test has not been defined.\" && exit 1"
},
"author": "freeCodeCamp.org",
"license": "BSD-3-Clause",
"dependencies": {
"@supercharge/promise-pool": "^1.7.0",
"glob": "^7.1.6",
Expand Down
4 changes: 0 additions & 4 deletions lerna.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5467b6e

Please sign in to comment.