New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-br-formatter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-br-formatter - npm Package Compare versions

Comparing version 0.1.1 to 0.2.1

dist/angular-br-formatter.min.js

31

gulpfile.js

@@ -13,2 +13,3 @@ /* jshint node: true */

git = require('gulp-git'),
excludeGitIgnore = require('gulp-exclude-gitignore'),
del = require('del'),

@@ -78,18 +79,21 @@ karmaServer = require('karma').Server,

gulp.task('release', function() {
runSequence('build', 'bump', 'git', 'publish');
runSequence('build', 'bump', 'git:commit', 'git:tag', 'git:push', 'publish');
});
gulp.task('bump', function() {
gulp.task('bump', function(done) {
if (argv.patch) {
gulp.src(path.jsonFiles)
.pipe(bump())
.pipe(gulp.dest('./'));
.pipe(gulp.dest('./'))
.on('end', done);
} else if (argv.minor) {
gulp.src(path.jsonFiles)
.pipe(bump({type: 'minor'}))
.pipe(gulp.dest('./'));
.pipe(gulp.dest('./'))
.on('end', done);
} else if (argv.major) {
gulp.src(path.jsonFiles)
.pipe(bump({type: 'major'}))
.pipe(gulp.dest('./'));
.pipe(gulp.dest('./'))
.on('end', done);
} else {

@@ -100,10 +104,17 @@ console.error('Need to specify a type for version bump (--patch|--minor|--major)');

gulp.task('git', function() {
gulp.src('./*')
gulp.task('git:commit', function() {
gulp.src('**/*')
.pipe(excludeGitIgnore())
.pipe(git.add())
.pipe(git.commit('Release ' + getVersion()))
//.pipe(git.tag(getVersion()))
.pipe(git.push('origin', 'master', {args: ' --tags'}));
.pipe(git.commit('Release ' + getVersion()));
});
gulp.task('git:tag', function(done) {
git.tag(getVersion(), 'Release ' + getVersion(), done);
});
gulp.task('git:push', function(done) {
git.push('origin', 'master', {args: '--tags'}, done);
});
gulp.task('publish', function(done) {

@@ -110,0 +121,0 @@ spawn('npm', ['publish'], {stdio: 'inherit'})

{
"name": "angular-br-formatter",
"version": "0.1.1",
"version": "0.2.1",
"description": "Collection of angular filters and directives for Brazilian data formats",

@@ -28,3 +28,6 @@ "main": "dist/angular-br-formatter.js",

"gulp": "^3.9.0",
"gulp-bump": "^0.3.1",
"gulp-concat": "^2.6.0",
"gulp-exclude-gitignore": "^1.0.0",
"gulp-git": "^1.2.4",
"gulp-jscs": "^2.0.0",

@@ -41,4 +44,5 @@ "gulp-jshint": "^1.11.2",

"phantomjs": "^1.9.18",
"run-sequence": "^1.1.2"
"run-sequence": "^1.1.2",
"yargs": "^3.21.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc