angular-elastic-builder
Advanced tools
Comparing version 1.0.5 to 1.1.1
@@ -6,2 +6,3 @@ /** | ||
, del = require('del') | ||
, header = require('gulp-header') | ||
, gulp = require('gulp') | ||
@@ -17,8 +18,19 @@ , templateCache = require('gulp-angular-templatecache') | ||
var pkg = require('./package.json'); | ||
var banner = ['/**' | ||
, ' * # <%= pkg.name %>' | ||
, ' * ## <%= pkg.description %>' | ||
, ' *' | ||
, ' * @version v<%= pkg.version %>' | ||
, ' * @link <%= pkg.repository.url %>' | ||
, ' * @license <%= pkg.license %>' | ||
, ' * @author <%= pkg.author %>' | ||
, ' */' | ||
, '' | ||
, ''].join('\n'); | ||
var filename = util.format('%s-%s.js', pkg.name, pkg.version) | ||
var filename = util.format('%s.js', pkg.name) | ||
, dest = 'dist/' + filename; | ||
gulp.task('build', ['concat', 'uglify']); | ||
gulp.task('default', ['concat', 'uglify']); | ||
gulp.task('build', ['concat', 'header', 'uglify']); | ||
gulp.task('default', ['concat', 'header', 'uglify']); | ||
@@ -36,4 +48,10 @@ | ||
gulp.task('uglify', [ 'clean', 'concat' ], function() { | ||
gulp.task('header', [ 'concat' ], function() { | ||
return gulp.src('./dist/*.js') | ||
.pipe(header(banner, { pkg: pkg })) | ||
.pipe(gulp.dest('./dist')); | ||
}); | ||
gulp.task('uglify', [ 'clean', 'concat', 'header' ], function() { | ||
return gulp.src('./dist/*.js') | ||
.pipe(uglify(dest.replace(/\.js$/, '.min.js'))) | ||
@@ -40,0 +58,0 @@ .pipe(gulp.dest('./')); |
{ | ||
"name": "angular-elastic-builder", | ||
"version": "1.0.5", | ||
"version": "1.1.1", | ||
"description": "Angular Module for building an Elasticsearch Query", | ||
"author": "Dan Crews <crewsd@gmail.com>", | ||
"license": "MIT", | ||
"keywords": [ | ||
@@ -19,2 +20,3 @@ "angular", | ||
"gulp-concat": "^2.5.2", | ||
"gulp-header": "^1.2.2", | ||
"gulp-rename": "^1.2.2", | ||
@@ -21,0 +23,0 @@ "gulp-uglifyjs": "^0.6.1" |
@@ -10,3 +10,5 @@ # Angular Elasticsearch Query Builder | ||
It's still pretty early on, as it doesn't support a whole lot of use-cases, but we need to make it awesome. Contributions accepted. | ||
## Usage | ||
@@ -21,3 +23,3 @@ | ||
<script type="text/javascript" src="/angular-recursion.min.js"></script> | ||
<script type="text/javascript" src="/angular-elastic-builder-x.x.x.min.js"></script> | ||
<script type="text/javascript" src="/angular-elastic-builder.min.js"></script> | ||
``` | ||
@@ -122,3 +124,3 @@ | ||
## Local Development | ||
To work on this module locally, you will need to clone it and run `gulp watch`. This will ensure that your changes get compiled properly. | ||
To work on this module locally, you will need to clone it and run `gulp watch`. This will ensure that your changes get compiled properly. You will also need to make sure you run `gulp` to build the "dist" files before commit. | ||
@@ -125,0 +127,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
100342
822
132
7
1
1