Skip to content

Commit

Permalink
feat: basic CLI file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Oct 22, 2023
1 parent 9e6ca80 commit 95222f0
Show file tree
Hide file tree
Showing 9 changed files with 6,635 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
node: true,
},

parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
ignorePatterns: ['dist/**/*'],

rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-empty': 'off',
},
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.sw*
.DS_Store
node_modules
dist
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bracketSpacing": true,
"printWidth": 80,
"semi": true,
"singleQuote": true
}
6 changes: 6 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node

// Thin wrapper around mime
import cli from '../dist/npmgraph_cli.js';

await cli();
Loading

0 comments on commit 95222f0

Please sign in to comment.