Skip to content

Commit

Permalink
change depned
Browse files Browse the repository at this point in the history
  • Loading branch information
leeluolee committed Aug 13, 2015
1 parent 21eab5f commit 75cb8c5
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions bin/puer
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ var cli = path.join(path.dirname(fs.realpathSync(__filename)), '..', 'src',"cli"

var args = process.argv.slice(2);


require(cli);
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"glob": "^5.0.6",
"http-proxy": "^1.11.0",
"inquirer": "^0.8.4",
"nedb": "^1.1.2",
"node-notifier": "^4.2.1",
"path-to-regexp": "^1.0.3",
"pluralize": "^1.1.2",
Expand Down
1 change: 0 additions & 1 deletion src/middleware/rewrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var path2reg = require("path-to-regexp");
var proxy = require('../util/proxy.js');
var notifier = require('node-notifier');
var helper = require('../util/helper');
var saveFile = require('save-file');
var chokidar = require('chokidar');
var request = require('request');
var libPath = require('path');
Expand Down
1 change: 0 additions & 1 deletion src/util/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var helper = require('./helper.js');
var libPath = require('path');
var libUrl = require('url');
var fs = require('fs');
var concat = require('concat-stream');

var proxy = {
http: createServer(),
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/mock_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
"POST /path/to": function( req, res, next ,$proxy ){
res.send(JSON.stringify(req.body, null ,2));
},
"ALL /posts": function( req, res ){
"ALL /posts/:id": function( req, res ){
posts.push({id:posts.length, name: 'post' + posts.length});
var json = JSON.stringify(posts, null, 2);

Expand Down Expand Up @@ -43,7 +43,7 @@ module.exports = {
})
},
'GET /ftl': function(req, res){
res.render('view/index.ftl', {
res.render('index.ftl', {
name: 'zhenghaibo',
flowers: [
["zhenghaibo", 'hello' ,100],
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/view/index.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>
<body>

<#include "../inc/inc.ftl" >
<#include "./inc.ftl" >

</body>
</html>

0 comments on commit 75cb8c5

Please sign in to comment.