Skip to content

Commit 4fc194c

Browse files
committed
node and shell entry points
1 parent 88806e3 commit 4fc194c

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Do not use [RTM api](https://slack.dev/node-slack-sdk/rtm-api) it appears to be deprecated and use [events api](https://slack.dev/node-slack-sdk/events-api) to capture messages instead.
66

7+
[12 Factor](https://12factor.net/) principles
8+
79
## Dependencies
810

911
### ngrok

bin/bot

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env node
2+
3+
/*
4+
shell invocation
5+
will need babel transform here
6+
*/
7+
8+
const app = require('../src/app')
9+
10+
app()

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const app = require('./src/app')
2+
3+
app()

src/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const app = () => {
2+
console.log('hello')
3+
}
4+
5+
module.exports = app

0 commit comments

Comments
 (0)