Skip to content

Commit 36cdae8

Browse files
committedFeb 26, 2016
[plugins] change plugin ids to be snakecase
1 parent 3e75120 commit 36cdae8

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed
 

‎src/plugins/dev_mode/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "devMode",
2+
"name": "dev_mode",
33
"version": "1.0.0"
44
}

‎src/plugins/spy_modes/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "spyModes",
2+
"name": "spy_modes",
33
"version": "1.0.0"
44
}

‎src/plugins/status_page/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "statusPage",
2+
"name": "status_page",
33
"version": "1.0.0"
44
}

‎src/plugins/tests_bundle/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default (kibana) => {
1919
let config = kibana.config;
2020

2121
const testGlobs = ['src/ui/public/**/*.js'];
22-
const testingPluginId = config.get('testsBundle.pluginId');
22+
const testingPluginId = config.get('tests_bundle.pluginId');
2323

2424
if (testingPluginId) {
2525
const plugin = plugins.byId[testingPluginId];
@@ -49,7 +49,7 @@ export default (kibana) => {
4949
const testFiles = await findSourceFiles(testGlobs);
5050
for (let f of testFiles) modules.push(f);
5151

52-
if (config.get('testsBundle.instrument')) {
52+
if (config.get('tests_bundle.instrument')) {
5353
env.addPostLoader({
5454
test: /\.jsx?$/,
5555
exclude: /[\/\\](__tests__|node_modules|bower_components|webpackShims)[\/\\]/,

‎src/plugins/tests_bundle/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "testsBundle",
2+
"name": "tests_bundle",
33
"version": "0.0.0"
44
}

‎src/server/status/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function (kbnServer, server, config) {
2121
});
2222

2323
server.decorate('reply', 'renderStatusPage', function () {
24-
var app = kbnServer.uiExports.getHiddenApp('statusPage');
24+
var app = kbnServer.uiExports.getHiddenApp('status_page');
2525
var resp = app ? this.renderApp(app) : this(kbnServer.status.toString());
2626
resp.code(kbnServer.status.isGreen() ? 200 : 503);
2727
return resp;

‎tasks/config/run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = function (grunt) {
8686
args: [
8787
...buildTestsArgs,
8888
'--server.port=5610',
89-
'--testsBundle.instrument=true',
89+
'--tests_bundle.instrument=true',
9090
...kbnServerFlags,
9191
]
9292
},

‎test/functional/status_page/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define(function (require) {
1010
bdd.before(function () {
1111
common = new Common(this.remote);
1212
// load the status page
13-
return common.navigateToApp('statusPage', false);
13+
return common.navigateToApp('status_page', false);
1414
});
1515

1616
bdd.it('should show the kibana plugin as ready', function () {
@@ -27,4 +27,4 @@ define(function (require) {
2727
.catch(common.handleError(self));
2828
});
2929
});
30-
});
30+
});

0 commit comments

Comments
 (0)
Please sign in to comment.