Skip to content

Commit

Permalink
Working, no tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Oct 7, 2024
1 parent 20f0489 commit 6bd3073
Show file tree
Hide file tree
Showing 6 changed files with 421 additions and 8 deletions.
20 changes: 20 additions & 0 deletions bin/generate-rules-table.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

import {Command} from 'commander';
import {createRulesTable} from '../lib/index.js';
import {version} from '../lib/version.js';

const program = new Command();
program
.version(version)
.option('-c, --cwd <directory>', 'Directory to work from. Defaults to cwd, and looks for package.json up from there.')
.option('-r, --readme <readme name>', 'Name of readme file. Relative to package.json', 'README.md')
.parse();

try {
await createRulesTable(program.opts());
} catch (er) {
// eslint-disable-next-line no-console
console.error(er.message);
process.exit(1);
}
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,27 @@
"posttest": "npm run ts",
"docs": "typedoc",
"ts": "tsc",
"version": "package-extract -so src/version.ts && git add src/version.ts",
"build": "npm run test && npm run lint && npm run docs && npm pack --dry-run"
},
"devDependencies": {
"@cto.af/eslint-config": "4.1.6",
"@types/node": "22.7.4",
"c8": "10.1.2",
"eslint-plugin-jsdoc": "50.3.1",
"eslint-plugin-markdown": "5.1.0",
"package-extract": "2.3.0",
"typedoc": "0.26.8",
"typescript-eslint": "8.8.1",
"typescript": "5.6.2"
"typescript": "5.6.2",
"typescript-eslint": "8.8.1"
},
"packageManager": "pnpm@9.12.1",
"engines": {
"node": ">=18"
},
"dependencies": {
"commander": "12.1.0",
"mdast-util-from-markdown": "2.0.1",
"package-up": "5.0.0"
}
}
Loading

0 comments on commit 6bd3073

Please sign in to comment.