This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed the dev server and cleaned up package.json
- Loading branch information
Spencer Alger
committed
Jan 20, 2015
1 parent
89e082b
commit 94ff1e9
Showing
11 changed files
with
63 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,10 @@ | |
"Lukas Olson <[email protected]>" | ||
], | ||
"scripts": { | ||
"test": "grunt test", | ||
"start": "node ./src/server/bin/kibana.js", | ||
"test": "grunt test --use-jruby", | ||
"server": "grunt server", | ||
"precommit": "grunt hintStagedFiles", | ||
"prepush": "echo" | ||
"server": "node ./src/server/bin/kibana.js", | ||
"precommit": "grunt hintStagedFiles" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -93,17 +92,6 @@ | |
"simple-git": "^0.11.0", | ||
"tar": "^1.0.1" | ||
}, | ||
"scripts": { | ||
"test": "grunt test --use-jruby", | ||
"server": "grunt server", | ||
"precommit": "grunt hintStagedFiles", | ||
"prepush": "echo" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:elasticsearch/kibana.git" | ||
}, | ||
"author": "", | ||
"license": "Apache 2.0", | ||
"bugs": { | ||
"url": "https://github.com/elasticsearch/kibana/issues" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* jshint node:true */ | ||
|
||
var express = require('express'); | ||
var instrumentationMiddleware = require('./_instrumentation'); | ||
var amdRapperMiddleware = require('./_amd_rapper'); | ||
|
||
var glob = require('glob'); | ||
var path = require('path'); | ||
var join = path.join; | ||
var rel = join.bind(null, __dirname); | ||
var ROOT = rel('../../../'); | ||
var SRC = join(ROOT, 'src'); | ||
var APP = join(SRC, 'kibana'); | ||
var TEST = join(ROOT, 'test'); | ||
|
||
module.exports = function (app) { | ||
app.use(instrumentationMiddleware({ | ||
root: SRC, | ||
displayRoot: SRC, | ||
filter: function (filename) { | ||
return filename.match(/.*\/src\/.*\.js$/) | ||
&& !filename.match(/.*\/src\/kibana\/bower_components\/.*\.js$/) | ||
&& !filename.match(/.*\/src\/kibana\/utils\/(event_emitter|next_tick|rison)\.js$/); | ||
} | ||
})); | ||
|
||
app.use(instrumentationMiddleware({ | ||
root: APP, | ||
displayRoot: SRC, | ||
filter: function (filename) { | ||
return filename.match(/.*\/src\/.*\.js$/) | ||
&& !filename.match(/.*\/src\/kibana\/bower_components\/.*\.js$/) | ||
&& !filename.match(/.*\/src\/kibana\/utils\/(event_emitter|next_tick|rison)\.js$/); | ||
} | ||
})); | ||
|
||
app.use(amdRapperMiddleware({ | ||
root: ROOT | ||
})); | ||
|
||
app.use('/test', express.static(TEST)); | ||
app.use('/specs', function (req, res) { | ||
var unit = join(ROOT, '/test/unit/'); | ||
glob(join(unit, 'specs/**/*.js'), function (er, files) { | ||
var moduleIds = files | ||
.filter(function (filename) { | ||
return path.basename(filename).charAt(0) !== '_'; | ||
}) | ||
.map(function (filename) { | ||
return path.relative(unit, filename).replace(/\.js$/, ''); | ||
}); | ||
|
||
res.end(JSON.stringify(moduleIds)); | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.