aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms-public.gathering.org/old/speedometer/c3-master/Gruntfile.coffee
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-21 20:33:44 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-21 20:33:44 +0100
commit5ba657e0bca0e4970b08583f6dfc94bfae34741c (patch)
tree44ed77deecd40ca984aae4bfa1bb949cb87bf7a0 /web/nms-public.gathering.org/old/speedometer/c3-master/Gruntfile.coffee
parentd528cad67897dd2c3b98ec15a82868ac2764e2c7 (diff)
parent727e4ab31aa6d1a754711d4cd29dbcefae2e952a (diff)
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'web/nms-public.gathering.org/old/speedometer/c3-master/Gruntfile.coffee')
-rw-r--r--web/nms-public.gathering.org/old/speedometer/c3-master/Gruntfile.coffee113
1 files changed, 113 insertions, 0 deletions
diff --git a/web/nms-public.gathering.org/old/speedometer/c3-master/Gruntfile.coffee b/web/nms-public.gathering.org/old/speedometer/c3-master/Gruntfile.coffee
new file mode 100644
index 0000000..750bbc7
--- /dev/null
+++ b/web/nms-public.gathering.org/old/speedometer/c3-master/Gruntfile.coffee
@@ -0,0 +1,113 @@
+module.exports = (grunt) ->
+ require('load-grunt-tasks') grunt, pattern: ['grunt-contrib-*', 'grunt-sass']
+
+ grunt.initConfig
+ watch:
+ concat:
+ tasks: 'concat'
+ files: ['src/*.js']
+ sass:
+ tasks: 'sass'
+ files: ['src/scss/*.scss']
+
+ concat:
+ dist:
+ options:
+ process: (src, filepath) ->
+ if filepath != 'src/head.js' && filepath != 'src/tail.js'
+ lines = []
+ src.split('\n').forEach (line) ->
+ lines.push( (if line.length > 0 then ' ' else '') + line)
+ src = lines.join('\n')
+ return src
+ src: [
+ 'src/head.js',
+ 'src/core.js',
+ 'src/config.js',
+ 'src/scale.js',
+ 'src/domain.js',
+ 'src/data.js',
+ 'src/data.convert.js',
+ 'src/data.load.js',
+ 'src/category.js',
+ 'src/interaction.js',
+ 'src/size.js',
+ 'src/shape.js',
+ 'src/shape.line.js',
+ 'src/shape.bar.js',
+ 'src/text.js',
+ 'src/type.js',
+ 'src/grid.js',
+ 'src/tooltip.js',
+ 'src/legend.js',
+ 'src/axis.js',
+ 'src/clip.js',
+ 'src/arc.js',
+ 'src/region.js',
+ 'src/drag.js',
+ 'src/selection.js',
+ 'src/subchart.js',
+ 'src/zoom.js',
+ 'src/color.js',
+ 'src/format.js',
+ 'src/cache.js',
+ 'src/class.js',
+ 'src/util.js',
+ 'src/api.focus.js',
+ 'src/api.show.js',
+ 'src/api.zoom.js',
+ 'src/api.load.js',
+ 'src/api.flow.js',
+ 'src/api.selection.js',
+ 'src/api.transform.js',
+ 'src/api.group.js',
+ 'src/api.grid.js',
+ 'src/api.region.js',
+ 'src/api.data.js',
+ 'src/api.category.js',
+ 'src/api.color.js',
+ 'src/api.x.js',
+ 'src/api.axis.js',
+ 'src/api.legend.js',
+ 'src/api.chart.js',
+ 'src/api.tooltip.js',
+ 'src/c3.axis.js',
+ 'src/ua.js',
+ 'src/polyfill.js',
+ 'src/tail.js'
+ ]
+ dest: 'c3.js'
+
+ jshint:
+ c3: 'c3.js'
+ spec: 'spec/*.js'
+ options:
+ jshintrc: '.jshintrc'
+
+ jasmine:
+ c3:
+ src: 'c3.js'
+ options:
+ specs: 'spec/*-spec.js'
+ helpers: 'spec/*-helper.js'
+ styles: 'c3.css'
+ vendor: 'https://raw.githubusercontent.com/mbostock/d3/v3.5.0/d3.min.js'
+
+ uglify:
+ c3:
+ files:
+ 'c3.min.js': 'c3.js'
+
+ cssmin:
+ c3:
+ src: 'c3.css'
+ dest: 'c3.min.css'
+
+ sass:
+ options:
+ sourcemap: 'none'
+ c3:
+ files:
+ 'c3.css': 'src/scss/main.scss'
+
+ grunt.registerTask 'default', ['concat', 'jshint', 'jasmine', 'sass', 'cssmin', 'uglify']