Skip to content

Commit

Permalink
support abtnode bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
linchen1987 committed Nov 18, 2020
1 parent a945494 commit 7381c26
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# abtnode
.blocklet
3 changes: 1 addition & 2 deletions bin/www → bin/www.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env node

/**
* Module dependencies.
*/

var app = require('../app');
var debug = require('debug')('express-demo:server');
var http = require('http');
require('jade');

/**
* Get port from environment and store in Express.
Expand Down
2 changes: 1 addition & 1 deletion blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >-
/Users/linchen/code/blocklet/blocklet-migrate-ci/workspaces/express-demo
group: dapp
version: 0.1.1
main: app.js
main: ./bin/www.js
title: Express Demo
publicUrl: /
author: ArcBlock
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
"version": "0.1.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
"start": "node ./bin/www.js"
},
"main": "./bin/www",
"main": "./bin/www.js",
"dependencies": {
"cookie-parser": "~1.4.4",
"debug": "~2.6.9",
"express": "~4.16.1",
"http-errors": "~1.6.3",
"jade": "~1.11.0",
"morgan": "~1.9.1"
}
},
"files": [
"views"
]
}

0 comments on commit 7381c26

Please sign in to comment.