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
b48b2ac6
Commit
b48b2ac6
authored
Mar 29, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated grunt tasks for the src -> public directory change
parent
fde11be2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
public/test/karma.conf.js
+5
-5
public/test/test-main.js
+1
-1
tasks/options/karma.js
+5
-5
tasks/options/requirejs.js
+4
-1
No files found.
public/test/karma.conf.js
View file @
b48b2ac6
...
@@ -8,11 +8,11 @@ module.exports = function(config) {
...
@@ -8,11 +8,11 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
// list of files / patterns to load in the browser
files
:
[
files
:
[
'
sr
c/test/test-main.js'
,
'
publi
c/test/test-main.js'
,
{
pattern
:
'
sr
c/app/**/*.js'
,
included
:
false
},
{
pattern
:
'
publi
c/app/**/*.js'
,
included
:
false
},
{
pattern
:
'
sr
c/vendor/**/*.js'
,
included
:
false
},
{
pattern
:
'
publi
c/vendor/**/*.js'
,
included
:
false
},
{
pattern
:
'
sr
c/test/**/*.js'
,
included
:
false
},
{
pattern
:
'
publi
c/test/**/*.js'
,
included
:
false
},
{
pattern
:
'
sr
c/**/*.js'
,
included
:
false
}
{
pattern
:
'
publi
c/**/*.js'
,
included
:
false
}
],
],
// list of files to exclude
// list of files to exclude
...
...
public/test/test-main.js
View file @
b48b2ac6
require
.
config
({
require
.
config
({
baseUrl
:
'http://localhost:9876/base/
sr
c/app'
,
baseUrl
:
'http://localhost:9876/base/
publi
c/app'
,
paths
:
{
paths
:
{
specs
:
'../test/specs'
,
specs
:
'../test/specs'
,
...
...
tasks/options/karma.js
View file @
b48b2ac6
module
.
exports
=
function
(
config
)
{
module
.
exports
=
function
(
config
)
{
return
{
return
{
dev
:
{
dev
:
{
configFile
:
'
src
/test/karma.conf.js'
,
configFile
:
'
<%= srcDir %>
/test/karma.conf.js'
,
singleRun
:
false
,
singleRun
:
false
,
},
},
debug
:
{
debug
:
{
configFile
:
'
src
/test/karma.conf.js'
,
configFile
:
'
<%= srcDir %>
/test/karma.conf.js'
,
singleRun
:
false
,
singleRun
:
false
,
browsers
:
[
'Chrome'
]
browsers
:
[
'Chrome'
]
},
},
test
:
{
test
:
{
configFile
:
'
src
/test/karma.conf.js'
,
configFile
:
'
<%= srcDir %>
/test/karma.conf.js'
,
},
},
coveralls
:
{
coveralls
:
{
configFile
:
'
src
/test/karma.conf.js'
,
configFile
:
'
<%= srcDir %>
/test/karma.conf.js'
,
reporters
:
[
'dots'
,
'coverage'
,
'coveralls'
],
reporters
:
[
'dots'
,
'coverage'
,
'coveralls'
],
preprocessors
:
{
preprocessors
:
{
'
src
/app/**/*.js'
:
[
'coverage'
]
'
<%= srcDir %>
/app/**/*.js'
:
[
'coverage'
]
},
},
coverageReporter
:
{
coverageReporter
:
{
type
:
'lcov'
,
type
:
'lcov'
,
...
...
tasks/options/requirejs.js
View file @
b48b2ac6
...
@@ -61,7 +61,10 @@ module.exports = function(config,grunt) {
...
@@ -61,7 +61,10 @@ module.exports = function(config,grunt) {
'controllers/all'
,
'controllers/all'
,
'routes/all'
,
'routes/all'
,
'components/partials'
,
'components/partials'
,
// bundle the datasources
'plugins/datasource/grafana/datasource'
,
'plugins/datasource/grafana/datasource'
,
'plugins/datasource/graphite/datasource'
,
'plugins/datasource/influxdb_08/datasource'
,
]
]
}
}
];
];
...
@@ -69,7 +72,7 @@ module.exports = function(config,grunt) {
...
@@ -69,7 +72,7 @@ module.exports = function(config,grunt) {
var
fs
=
require
(
'fs'
);
var
fs
=
require
(
'fs'
);
var
panelPath
=
config
.
srcDir
+
'/app/panels'
;
var
panelPath
=
config
.
srcDir
+
'/app/panels'
;
// create a module for each directory in
sr
c/app/panels/
// create a module for each directory in
publi
c/app/panels/
fs
.
readdirSync
(
panelPath
).
forEach
(
function
(
panelName
)
{
fs
.
readdirSync
(
panelPath
).
forEach
(
function
(
panelName
)
{
requireModules
[
0
].
include
.
push
(
'panels/'
+
panelName
+
'/module'
);
requireModules
[
0
].
include
.
push
(
'panels/'
+
panelName
+
'/module'
);
requireModules
[
0
].
include
.
push
(
'text!panels/'
+
panelName
+
'/module.html'
);
requireModules
[
0
].
include
.
push
(
'text!panels/'
+
panelName
+
'/module.html'
);
...
...
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