Skip to content

Commit

Permalink
Added new 'build' task in gulp to add a 'min' for minified files.
Browse files Browse the repository at this point in the history
  • Loading branch information
istvank committed Jun 30, 2016
1 parent 4b7747a commit edff24b
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 1,539 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## sweva-visualization-graph

Graph visualization module for the Collaborative Visualization Tool.
Graph visualization module for SWeVA.


## Dependencies
Expand All @@ -24,7 +24,10 @@ or
```sh
gulp pack
```
for minified files.
for minified files. To produce both, run
```sh
gulp build
```


## Playing With Your Element
Expand Down
15 changes: 8 additions & 7 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"name": "sweva-visualization-graph",
"version": "1.0.6",
"version": "1.0.7",
"authors": [
"Anonymous <[email protected]>"
"Alexander Ruppert",
"István Koren"
],
"description": "An element providing a solution to no problem in particular.",
"description": "Graph visualization module for SWeVA.",
"keywords": [
"web-component",
"polymer",
"seed"
],
"main": "sweva-visualization-line-graph.html",
"license": "http://polymer.github.io/LICENSE.txt",
"homepage": "https://github.com/<USERNAME>/seed-element/",
"license": "https://raw.githubusercontent.com/rwth-acis/sweva-visualization-graph/master/LICENSE",
"homepage": "https://github.com/rwth-acis/sweva-visualization-graph/",
"ignore": [
"/.*",
"/test/"
],
"dependencies": {
"polymer": "Polymer/polymer#^1.2.0",
"download-as-file": "https://github.com/bahmutov/download-as-file.git"

"download-as-file": "https://github.com/bahmutov/download-as-file.git",
"sigma": "https://github.com/jacomyal/sigma.js/releases/download/v1.1.0/release-v1.1.0.zip"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
Expand Down
1,559 changes: 38 additions & 1,521 deletions dist/sweva-visualization-graph.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/sweva-visualization-graph.min.html

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ var vulcanize = require('gulp-vulcanize');
var replace = require('gulp-replace');
var minifyHTML = require('gulp-minify-html');
var minifyInline = require('gulp-minify-inline');
var rename = require('gulp-rename');
var debug = require('gulp-debug');

var FILE = 'sweva-visualization-graph.html'
gulp.task('pack', function () {
Expand All @@ -15,15 +17,17 @@ gulp.task('pack', function () {
.pipe(vulcanize({
stripComments: true,
inlineCss: true,
inlineScripts: true
inlineScripts: false
}))

.pipe(minifyInline())
.pipe(minifyHTML({
quotes: true,
empty: true,
spare: true
}))
}))
.pipe(rename({
suffix: '.min'
}))
.pipe(gulp.dest('dist'))
});

Expand All @@ -39,4 +43,6 @@ gulp.task('packdev', function () {
inlineScripts: true
}))
.pipe(gulp.dest('dist'))
});
});

gulp.task('build', ['pack', 'packdev']);
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
"private": true,
"devDependencies": {
"gulp": "^3.8.5",
"gulp-vulcanize": "^6.0.0",
"gulp-replace": "^0.5.4",
"gulp-debug": "^2.1.2",
"gulp-minify-html": "^1.0.2",
"gulp-minify-inline": "^0.1.1"
"gulp-minify-inline": "^0.1.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-vulcanize": "^6.0.0"
},

"scripts": {
"pack": "gulp pack"
},
"engines": {
"node": ">=0.10.0"
}
}
}

0 comments on commit edff24b

Please sign in to comment.