Skip to content

Commit

Permalink
feat(index): initial bundling to cli app
Browse files Browse the repository at this point in the history
  • Loading branch information
trevtrich committed Jan 23, 2020
1 parent 0c8ecec commit 4cb3930
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 109 deletions.
107 changes: 0 additions & 107 deletions package-lock.json

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

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@
"remark-preset-lint-travi": "1.3.0",
"rimraf": "3.0.0",
"rollup": "1.29.1",
"rollup-plugin-auto-external": "2.0.0",
"rollup-plugin-executable": "1.5.2",
"rollup-plugin-json": "4.0.0",
"sinon": "8.1.0",
"travis-lint": "1.0.0"
}
Expand Down
8 changes: 8 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint import/no-extraneous-dependencies: ['error', {'devDependencies': true}] */
import executable from 'rollup-plugin-executable';

export default {
input: 'src/index.js',
plugins: [executable()],
output: [{file: 'bin/trev.js', format: 'cjs', sourcemap: true, banner: '#!/usr/bin/env node'}]
};
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('I made a module!'); // eslint-disable-line no-console

0 comments on commit 4cb3930

Please sign in to comment.