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
5db838a7
Commit
5db838a7
authored
Sep 20, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spencer/build-tweaks' into buildTweak
parents
79aa7e87
3b14e3e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
50 deletions
+42
-50
Gruntfile.js
+42
-50
src/app/panels/bettermap/leaflet.amd.js
+0
-0
No files found.
Gruntfile.js
View file @
5db838a7
...
...
@@ -18,42 +18,17 @@ module.exports = function (grunt) {
on_start
:
[
'<%= destDir %>'
,
'<%= tempDir %>'
],
temp
:
[
'<%= tempDir %>'
],
},
copy
:
{
everthing_left_in_src
:
{
cwd
:
'<%= srcDir %>'
,
expand
:
true
,
src
:
[
'**/*.js'
,
'**/*.json'
,
'font/**/*'
,
'img/**/*'
,
'app/panels/bettermap/leaflet/images/*'
],
dest
:
'<%= tempDir %>'
}
},
jshint
:
{
// just lint the source dir
source
:
{
files
:
{
src
:
[
'Gruntfile.js'
,
'<%= srcDir %>/app/**/*.js'
]
}
},
options
:
{
jshintrc
:
'.jshintrc'
}
},
less
:
{
// this is the only task, other than copy, that runs on the src directory, since we don't really need
// the less files in the dist. Everything else runs from on temp, and require copys everything
// from temp -> dist
dist
:{
options
:{
compress
:
true
},
expand
:
true
,
cwd
:
'<%= srcDir %>/vendor/bootstrap/less/'
,
src
:
[
'bootstrap.dark.less'
,
'bootstrap.light.less'
],
dest
:
'<%= tempDir %>/css/'
,
},
// Compile
to src
when not building
// Compile
in place
when not building
src
:{
options
:
{
paths
:
[
"<%= srcDir %>/vendor/bootstrap/less"
],
...
...
@@ -65,24 +40,34 @@ module.exports = function (grunt) {
}
}
},
c
ssmin
:
{
dist
:
{
expand
:
true
,
c
opy
:
{
// copy source to temp, we will minify in place for the dist build
everything_but_less_to_temp
:
{
cwd
:
'<%= srcDir %>'
,
src
:
[
'**/*.css'
],
expand
:
true
,
src
:
[
'**/*'
,
'!**/*.less'
],
dest
:
'<%= tempDir %>'
}
},
jshint
:
{
// just lint the source dir
source
:
{
files
:
{
src
:
[
'Gruntfile.js'
,
'<%= srcDir %>/app/**/*.js'
]
}
},
options
:
{
jshintrc
:
'.jshintrc'
}
},
htmlmin
:{
dist
:
{
build
:
{
options
:{
removeComments
:
true
,
collapseWhitespace
:
true
},
expand
:
true
,
cwd
:
'<%=
src
Dir %>'
,
cwd
:
'<%=
temp
Dir %>'
,
src
:
[
'index.html'
,
'app/panels/**/*.html'
,
...
...
@@ -91,8 +76,16 @@ module.exports = function (grunt) {
dest
:
'<%= tempDir %>'
}
},
cssmin
:
{
build
:
{
expand
:
true
,
cwd
:
'<%= tempDir %>'
,
src
:
'**/*.css'
,
dest
:
'<%= tempDir %>'
}
},
ngmin
:
{
scripts
:
{
build
:
{
expand
:
true
,
cwd
:
'<%= tempDir %>'
,
src
:
[
...
...
@@ -109,7 +102,7 @@ module.exports = function (grunt) {
}
},
requirejs
:
{
compile_temp
:
{
build
:
{
options
:
{
appDir
:
'<%= tempDir %>'
,
dir
:
'<%= destDir %>'
,
...
...
@@ -119,14 +112,13 @@ module.exports = function (grunt) {
optimize
:
'none'
,
optimizeCss
:
'none'
,
optimizeAllPluginResources
:
false
,
removeCombined
:
true
,
preserveLicenseComments
:
false
,
findNestedDependencies
:
true
,
normalizeDirDefines
:
"none"
,
normalizeDirDefines
:
'all'
,
inlineText
:
true
,
skipPragmas
:
true
,
optimizeAllPluginResources
:
false
,
done
:
function
(
done
,
output
)
{
var
duplicates
=
require
(
'rjs-build-analysis'
).
duplicates
(
output
);
...
...
@@ -175,7 +167,7 @@ module.exports = function (grunt) {
},
{
expand
:
true
,
src
:
[
'LICENSE.md'
,
'README.md'
],
src
:
[
'LICENSE.md'
,
'README.md'
],
dest
:
'<%= pkg.name %>-latest'
}
]
...
...
@@ -193,7 +185,7 @@ module.exports = function (grunt) {
},
{
expand
:
true
,
src
:
[
'LICENSE.md'
,
'README.md'
],
src
:
[
'LICENSE.md'
,
'README.md'
],
dest
:
'<%= pkg.name %>-latest'
}
]
...
...
@@ -219,7 +211,7 @@ module.exports = function (grunt) {
};
// setup the modules require will build
var
requireModules
=
config
.
requirejs
.
compile_temp
.
options
.
modules
=
[
var
requireModules
=
config
.
requirejs
.
build
.
options
.
modules
=
[
{
// main/common module
name
:
'app'
,
...
...
@@ -271,12 +263,12 @@ module.exports = function (grunt) {
grunt
.
registerTask
(
'build'
,
[
'jshint:source'
,
'clean:on_start'
,
'htmlmin'
,
'less:dist'
,
'cssmin'
,
'copy:everthing_left_in_src'
,
'ngmin'
,
'requirejs:compile_temp'
,
'copy:everything_but_less_to_temp'
,
'htmlmin:build'
,
'cssmin:build'
,
'ngmin:build'
,
'requirejs:build'
,
'clean:temp'
,
'build:write_revision'
,
'uglify:dest'
...
...
src/app/panels/bettermap/leaflet.amd.js
deleted
100755 → 0
View file @
79aa7e87
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