Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Jun 15, 2023
1 parent dff5afc commit a5798ad
Show file tree
Hide file tree
Showing 8 changed files with 359 additions and 134 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ In your shell:
```bash
git clone https://github.com/groton-school/blackbaud-to-google-group-sync.git
cd blackbaud-to-google-group-sync
npm install
composer install
node scripts/setup.js
```

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@
"@battis/prettier-config": "github:battis/prettier-config",
"@battis/webpack": "github:battis/webpack",
"@inquirer/prompts": "^2.1.1",
"chalk": "^5.2.0",
"dotenv": "^16.1.4",
"email-validator": "^2.0.4",
"jackspeak": "^2.2.1",
"open": "^9.1.0",
"rword": "^3.2.1"
},
"prettier": "@battis/prettier-config",
"eslintConfig": {
"extends": "@battis/eslint-config",
"parserOptions": {
"sourceType": "module"
"sourceType": "module",
"ecmaVersion": 2020
}
}
}
91 changes: 91 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import path from 'path';
import process from 'process';
import { fileURLToPath } from 'url';

// eslint-disable-next-line
process.chdir(path.join(path.dirname(fileURLToPath(import.meta.url)), '..'));
dotenv.config();

Expand Down
10 changes: 8 additions & 2 deletions scripts/lib.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import chalk from 'chalk';
import { execSync } from 'child_process';
import open from 'open';

const value = chalk.cyan;

const log = console.log;

const exec = (command) => execSync(command, { stdio: 'inherit' });

async function versionTest({
Expand All @@ -14,7 +19,8 @@ async function versionTest({
if (fail) {
open(download);
throw new Error(
`${name} is required${download ? `, install from ${download}` : ''}`
`${value(name)} is required${download ? `, install from ${value(download)}` : ''
}`
);
} else {
return false;
Expand All @@ -23,4 +29,4 @@ async function versionTest({
return true;
}

export default { exec, versionTest };
export default { exec, log, value, versionTest };
1 change: 0 additions & 1 deletion scripts/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import path from 'path';
import process from 'process';
import { fileURLToPath } from 'url';

// eslint-disable-next-line
process.chdir(path.join(path.dirname(fileURLToPath(import.meta.url)), '..'));
dotenv.config();

Expand Down
Loading

0 comments on commit a5798ad

Please sign in to comment.