Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
20f04ab3
Commit
20f04ab3
authored
Sep 21, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(build): fixed requirejs optimized build
parent
7f1af243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
tasks/options/requirejs.js
+11
-15
No files found.
tasks/options/requirejs.js
View file @
20f04ab3
...
...
@@ -7,7 +7,7 @@ module.exports = function(config,grunt) {
appDir
:
'<%= genDir %>'
,
dir
:
'<%= tempDir %>'
,
mainConfigFile
:
'<%= genDir %>/app/components/require.config.js'
,
baseUrl
:
'
app
'
,
baseUrl
:
'
./
'
,
waitSeconds
:
0
,
modules
:
[],
// populated below,
...
...
@@ -39,7 +39,7 @@ module.exports = function(config,grunt) {
var
requireModules
=
options
.
modules
=
[
{
// main/common module
name
:
'app'
,
name
:
'app
/app
'
,
include
:
[
'kbn'
,
'text'
,
...
...
@@ -54,21 +54,17 @@ module.exports = function(config,grunt) {
'jquery.flot'
,
'angular-strap'
,
'angular-dragdrop'
,
'core/core'
,
'services/all'
,
'features/all'
,
'controllers/all'
,
'components/partials'
,
'
app/
core/core'
,
'
app/
services/all'
,
'
app/
features/all'
,
'
app/
controllers/all'
,
'
app/
components/partials'
,
// bundle the datasources
'plugins/datasource/grafana/datasource'
,
'plugins/datasource/graphite/datasource'
,
'
plugins/datasource/influxdb_08
/datasource'
,
'
app/
plugins/datasource/grafana/datasource'
,
'
app/
plugins/datasource/graphite/datasource'
,
'
app/plugins/datasource/influxdb
/datasource'
,
]
},
// {
// name: 'features/org/all',
// exclude: ['app'],
// }
];
var
fs
=
require
(
'fs'
);
...
...
@@ -76,7 +72,7 @@ module.exports = function(config,grunt) {
// create a module for each directory in public/app/panels/
fs
.
readdirSync
(
panelPath
).
forEach
(
function
(
panelName
)
{
requireModules
[
0
].
include
.
push
(
'panels/'
+
panelName
+
'/module'
);
requireModules
[
0
].
include
.
push
(
'
app/
panels/'
+
panelName
+
'/module'
);
});
return
{
options
:
options
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment