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
7c72705b
Commit
7c72705b
authored
Jan 01, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more work on build process
parent
33e3fc70
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
26 deletions
+33
-26
src/views/index.html
+3
-3
tasks/build_task.js
+28
-0
tasks/distribute_task.js
+2
-23
No files found.
src/views/index.html
View file @
7c72705b
...
...
@@ -16,8 +16,8 @@
</script>
<!-- build:js app/app.js -->
<script
src=
"public/vendor/require/require.js"
></script>
<script
src=
"public/app/components/require.backend.js"
></script>
<script
src=
"
/
public/vendor/require/require.js"
></script>
<script
src=
"
/
public/app/components/require.backend.js"
></script>
<!-- endbuild -->
<script>
require
([
'app'
],
function
(
app
)
{
app
.
boot
();
})
</script>
...
...
@@ -25,7 +25,7 @@
</head>
<body
ng-cloak
ng-controller=
"GrafanaCtrl"
>
<link
rel=
"stylesheet"
href=
"/
public/
css/grafana.light.min.css"
ng-if=
"grafana.style === 'light'"
>
<link
rel=
"stylesheet"
href=
"/css/grafana.light.min.css"
ng-if=
"grafana.style === 'light'"
>
<div
class=
"pro-container"
ng-class=
"{'pro-sidemenu-open': grafana.sidemenu}"
>
...
...
tasks/build_task.js
View file @
7c72705b
...
...
@@ -23,6 +23,34 @@ module.exports = function(grunt) {
//'uglify:dest'
]);
grunt
.
registerTask
(
'build-post-process'
,
function
()
{
var
mode
=
grunt
.
config
.
get
(
'mode'
);
if
(
mode
===
'backend'
)
{
grunt
.
config
(
'copy.dist_to_tmp'
,
{
expand
:
true
,
cwd
:
'<%= destDir %>'
,
src
:
'**/*'
,
dest
:
'<%= tempDir %>/public/'
,
});
grunt
.
config
(
'copy.backend_bin'
,
{
cwd
:
'../bin'
,
expand
:
true
,
src
:
[
'grafana'
],
options
:
{
mode
:
true
},
dest
:
'<%= tempDir %>'
});
grunt
.
config
(
'copy.backend_conf'
,
{
cwd
:
'../'
,
expand
:
true
,
src
:
[
'conf/*'
,
'!conf/grafana.dev.ini'
],
dest
:
'<%= tempDir %>'
});
grunt
.
task
.
run
(
'copy:dist_to_tmp'
);
grunt
.
task
.
run
(
'copy:backend_bin'
);
grunt
.
task
.
run
(
'copy:backend_conf'
);
}
});
grunt
.
registerTask
(
'build:grafanaVersion'
,
function
()
{
grunt
.
config
(
'string-replace.config'
,
{
files
:
{
...
...
tasks/distribute_task.js
View file @
7c72705b
module
.
exports
=
function
(
grunt
)
{
// build, then zip and upload to s3
grunt
.
registerTask
(
'distribute'
,
[
'distribute:load_s3_config'
,
'build'
,
'compress:zip'
,
'compress:tgz'
,
's3:dist'
,
'clean:temp'
]);
"use strict"
;
// build, then zip and upload to s3
grunt
.
registerTask
(
'release'
,
[
// 'distribute:load_s3_config',
'build'
,
'compress:zip_release'
,
'compress:tgz_release'
,
//'s3:release',
//'clean:temp'
]);
// collect the key and secret from the .aws-config.json file, finish configuring the s3 task
grunt
.
registerTask
(
'distribute:load_s3_config'
,
function
()
{
var
config
=
grunt
.
file
.
readJSON
(
'.aws-config.json'
);
grunt
.
config
(
's3.options'
,
{
key
:
config
.
key
,
secret
:
config
.
secret
});
});
}
\ No newline at end of file
};
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