Skip to content

Commit

Permalink
update: minify
Browse files Browse the repository at this point in the history
  • Loading branch information
fishbar committed Apr 8, 2018
1 parent 95e38e8 commit 1ceac13
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion bin/cube-start
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ cmd

let args = cmd;
let rootPath = cmd.args[0];
let root;

if (/^(\/|\w:\\)/.test(rootPath)) {
root = rootPath;
} else {
root = path.join(process.cwd(), rootPath || '');
}

Cube.service({
root: path.join(process.cwd(), rootPath || ''),
root: root,
port: args.port ? args.port : 9999,
router: args.router || '/',
resBase: args.base || args.resbase,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "fish <[email protected]> (https://github.com/fishbar)",
"name": "node-cube",
"description": "a new way to write js in browser",
"version": "3.1.0",
"version": "3.1.1",
"homepage": "https://github.com/fishbar/cube",
"repository": {
"type": "git",
Expand Down Expand Up @@ -30,7 +30,7 @@
"commander": "2.9.0",
"connect": "^3.6.3",
"debug": "2.6.8",
"esminify": "3.0.1",
"esminify": "^3.0.2",
"lodash": "4.17.4",
"serve-static": "1.12.4",
"xfs": "~0.2.2"
Expand Down
4 changes: 2 additions & 2 deletions runtime/cube.min.js

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

0 comments on commit 1ceac13

Please sign in to comment.