renamed extension point in the frontend

This commit is contained in:
Torkel Ödegaard 2018-10-12 07:19:05 +02:00
parent cdfbcbce22
commit c1fd4265a9
2 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -54,7 +54,7 @@ profile.cov
/pkg/cmd/grafana-server/grafana-server
/pkg/cmd/grafana-server/debug
/pkg/extensions
/public/app/enterprise
/public/app/extensions
debug.test
/examples/*/dist
/packaging/**/*.rpm

View File

@ -29,10 +29,10 @@ _.move = (array, fromIndex, toIndex) => {
import { coreModule, registerAngularDirectives } from './core/core';
import { setupAngularRoutes } from './routes/routes';
// import enterprise frontend
const enterpriseIndex = (require as any).context('.', true, /enterprise\/index.ts/);
enterpriseIndex.keys().forEach(key => {
enterpriseIndex(key);
// import symlinked extensions
const extensionsIndex = (require as any).context('.', true, /extensions\/index.ts/);
extensionsIndex.keys().forEach(key => {
extensionsIndex(key);
});
export class GrafanaApp {