Skip to content

Commit

Permalink
Merge pull request #5 from UlisesGascon/tools/isolated-examples
Browse files Browse the repository at this point in the history
Remove the express core stuff and install express as a dependency
  • Loading branch information
UlisesGascon authored Nov 11, 2023
2 parents a809eaf + 39436f3 commit a72a6f5
Show file tree
Hide file tree
Showing 122 changed files with 182 additions and 20,383 deletions.
17 changes: 0 additions & 17 deletions benchmarks/Makefile

This file was deleted.

20 changes: 0 additions & 20 deletions benchmarks/middleware.js

This file was deleted.

18 changes: 0 additions & 18 deletions benchmarks/run

This file was deleted.

2 changes: 1 addition & 1 deletion examples/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var hash = require('pbkdf2-password')()
var path = require('path');
var session = require('express-session');
Expand Down
2 changes: 1 addition & 1 deletion examples/content-negotiation/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

var express = require('../../');
var express = require('express');
var app = module.exports = express();
var users = require('./db');

Expand Down
2 changes: 1 addition & 1 deletion examples/cookie-sessions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

var cookieSession = require('cookie-session');
var express = require('../../');
var express = require('express');

var app = module.exports = express();

Expand Down
2 changes: 1 addition & 1 deletion examples/cookies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');
var app = module.exports = express();
var logger = require('morgan');
var cookieParser = require('cookie-parser');
Expand Down
2 changes: 1 addition & 1 deletion examples/downloads/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');
var path = require('path');

var app = module.exports = express();
Expand Down
2 changes: 1 addition & 1 deletion examples/ejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');
var path = require('path');

var app = module.exports = express();
Expand Down
2 changes: 1 addition & 1 deletion examples/error-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');
var path = require('path');
var app = module.exports = express();
var logger = require('morgan');
Expand Down
2 changes: 1 addition & 1 deletion examples/error/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');
var logger = require('morgan');
var app = module.exports = express();
var test = app.get('env') === 'test'
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

var express = require('../../');
var express = require('express');

var app = module.exports = express()

Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

var escapeHtml = require('escape-html');
var express = require('../..');
var express = require('express');
var fs = require('fs');
var marked = require('marked');
var path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion examples/multi-router/controllers/api_v1.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

var express = require('../../..');
var express = require('express');

var apiv1 = express.Router();

Expand Down
2 changes: 1 addition & 1 deletion examples/multi-router/controllers/api_v2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

var express = require('../../..');
var express = require('express');

var apiv2 = express.Router();

Expand Down
2 changes: 1 addition & 1 deletion examples/multi-router/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

var express = require('../..');
var express = require('express');

var app = module.exports = express();

Expand Down
2 changes: 1 addition & 1 deletion examples/multipart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var multiparty = require('multiparty');
var format = require('util').format;

Expand Down
2 changes: 1 addition & 1 deletion examples/mvc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var logger = require('morgan');
var path = require('path');
var session = require('express-session');
Expand Down
2 changes: 1 addition & 1 deletion examples/mvc/lib/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../..');
var express = require('express');
var fs = require('fs');
var path = require('path');

Expand Down
2 changes: 1 addition & 1 deletion examples/online/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var online = require('online');
var redis = require('redis');
var db = redis.createClient();
Expand Down
2 changes: 1 addition & 1 deletion examples/params/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

var createError = require('http-errors')
var express = require('../../');
var express = require('express');
var app = module.exports = express();

// Faux database
Expand Down
2 changes: 1 addition & 1 deletion examples/resource/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');

var app = module.exports = express();

Expand Down
2 changes: 1 addition & 1 deletion examples/route-map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

var escapeHtml = require('escape-html')
var express = require('../../lib/express');
var express = require('express');

var verbose = process.env.NODE_ENV !== 'test'

Expand Down
2 changes: 1 addition & 1 deletion examples/route-middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../lib/express');
var express = require('express');

var app = express();

Expand Down
2 changes: 1 addition & 1 deletion examples/route-separation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var path = require('path');
var app = express();
var logger = require('morgan');
Expand Down
2 changes: 1 addition & 1 deletion examples/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var path = require('path');
var redis = require('redis');

Expand Down
2 changes: 1 addition & 1 deletion examples/session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// $ npm install redis
// $ redis-server

var express = require('../..');
var express = require('express');
var session = require('express-session');

var app = express();
Expand Down
2 changes: 1 addition & 1 deletion examples/session/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var logger = require('morgan');
var session = require('express-session');

Expand Down
2 changes: 1 addition & 1 deletion examples/static-files/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var logger = require('morgan');
var path = require('path');
var app = express();
Expand Down
2 changes: 1 addition & 1 deletion examples/vhost/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var logger = require('morgan');
var vhost = require('vhost');

Expand Down
2 changes: 1 addition & 1 deletion examples/view-constructor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');
var GithubView = require('./github-view');
var md = require('marked').parse;

Expand Down
2 changes: 1 addition & 1 deletion examples/view-locals/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../..');
var express = require('express');
var path = require('path');
var User = require('./user');
var app = express();
Expand Down
2 changes: 1 addition & 1 deletion examples/web-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var express = require('../../');
var express = require('express');

var app = module.exports = express();

Expand Down
11 changes: 0 additions & 11 deletions index.js

This file was deleted.

Loading

0 comments on commit a72a6f5

Please sign in to comment.