Skip to content

Commit

Permalink
chore: export server from index.js, move cli to cli.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Mar 9, 2019
1 parent a20462d commit f81890e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 2 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('./dist/server/cli').cli()
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env node
require('./dist/server/cli').cli()
module.exports = {
server: require('./dist/server/server'),
}
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Drive the AxiDraw pen plotter",
"homepage": "https://github.com/nornagon/saxi",
"repository": "github:nornagon/saxi",
"bugs": "https://github.com/nornagon/saxi/issues",
"keywords": [
"axidraw",
"plotter",
Expand All @@ -13,20 +14,15 @@
"hardware",
"robot"
],
"bugs": {
"url": "https://github.com/nornagon/saxi/issues"
},
"main": "index.js",
"bin": {
"saxi": "index.js"
},
"bin": "cli.js",
"scripts": {
"prebuild": "tslint -c tslint.json -p tsconfig.json --fix -t verbose",
"build": "tsc && webpack --mode=production",
"prepare": "npm run build",
"prestart": "npm run build",
"start": "node .",
"dev": "tsc && webpack --mode=development -w & node .",
"start": "node cli.js",
"dev": "tsc && webpack --mode=development -w & node cli.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Jeremy Apthorp <[email protected]>",
Expand Down

0 comments on commit f81890e

Please sign in to comment.