diff options
author | 2017-02-08 10:13:29 -0500 | |
---|---|---|
committer | 2017-02-08 10:15:00 -0500 | |
commit | f8a8d5192b1e5013d9e2f699be54b072ef39d5f0 (patch) | |
tree | b7a65bb0a7d70a9dc24c064113868e5f3b8e6a09 /dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/Snap.svg/Gruntfile.js | |
parent | 72a80fbff7120630576ccd5aa67c20818c2943c7 (diff) |
Initial OpenECOMP UI/DMaapBC commit
Change-Id: Ia492e1b88311b9bed4c31f593b28deaaad73b7e4
Signed-off-by: talasila <talasila@research.att.com>
Diffstat (limited to 'dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/Snap.svg/Gruntfile.js')
-rw-r--r-- | dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/Snap.svg/Gruntfile.js | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/Snap.svg/Gruntfile.js b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/Snap.svg/Gruntfile.js new file mode 100644 index 0000000..415c624 --- /dev/null +++ b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/Snap.svg/Gruntfile.js @@ -0,0 +1,62 @@ +module.exports = function(grunt) { + + var pkg = grunt.file.readJSON("package.json"); + + // Project configuration. + grunt.initConfig({ + // Metadata. + pkg: pkg, + banner: grunt.file.read("./src/copy.js") + .replace(/@VERSION/, pkg.version) + .replace(/@DATE/, grunt.template.today("yyyy-mm-dd")) + "\n", + // Task configuration. + uglify: { + options: { + banner: "<%= banner %>", + report: "min" + }, + dist: { + src: "<%= concat.target.dest %>", + dest: "dist/snap.svg-min.js" + } + }, + concat: { + options: { + banner: "<%= banner %>" + }, + target: { + dest: "dist/snap.svg.js", + src: [ + "./node_modules/eve/eve.js", + "./src/amd-banner.js", + "./src/mina.js", + "./src/svg.js", + "./src/element.js", + "./src/matrix.js", + "./src/attr.js", + "./src/class.js", + "./src/attradd.js", + "./src/paper.js", + "./src/path.js", + "./src/set.js", + "./src/equal.js", + "./src/mouse.js", + "./src/filter.js", + "./src/align.js", + "./src/amd-footer.js" + ] + } + }, + exec: { + dr: { + command: "node node_modules/dr.js/dr dr.json" + } + } + }); + + grunt.loadNpmTasks("grunt-contrib-concat"); + grunt.loadNpmTasks("grunt-contrib-uglify"); + grunt.loadNpmTasks("grunt-exec"); + + grunt.registerTask("default", ["concat", "uglify", "exec"]); +}; |