Skip to content

Commit

Permalink
Reset package-lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
micahriggan committed Mar 13, 2020
1 parent 4ab2e23 commit 565555c
Show file tree
Hide file tree
Showing 19 changed files with 44,751 additions and 52,758 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"ci:bitcore-lib": "./ci.sh 'npm run test:bitcore-lib'",
"test:bitcore-lib-cash": "cd ./packages/bitcore-lib-cash && npm run test",
"ci:bitcore-lib-cash": "./ci.sh 'npm run test:bitcore-lib-cash'",
"test:bitcore-lib-ltc": "cd ./packages/bitcore-lib-ltc && npm run test",
"ci:bitcore-lib-ltc": "./ci.sh 'npm run test:bitcore-lib-ltc'",
"test:bitcore-p2p": "cd ./packages/bitcore-p2p && npm run test",
"ci:bitcore-p2p": "./ci.sh 'npm run test:bitcore-p2p'",
"test:bitcore-p2p-cash": "cd ./packages/bitcore-p2p-cash && npm run test",
Expand Down
164 changes: 6 additions & 158 deletions packages/bitcore-build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,164 +177,6 @@ function startGulp(name, opts) {
};
}

/**
* Release automation
*/

task['release:install']= shell.task([ 'npm install']);

var releaseFiles = ['./package.json'];

//var bump_version = function(importance) {
//return gulp.src(releaseFiles)
//.pipe(bump({
//type: importance
//}))
//.pipe(gulp.dest('./'));
//};

//var tempBranch = 'releases/' + new Date().getTime() + '-build';
//gulp.task('release:checkout-releases', function(cb) {
//git.branch(tempBranch, {
//args: ''
//}, function() {
//git.checkout(tempBranch, {
//args: ''
//}, cb);
//});
//});

//gulp.task('release:cleanup', function(cb) {
//git.branch(tempBranch, {
//args: '-D'
//}, cb);
//});

//gulp.task('release:checkout-master', function(cb) {
//git.checkout('master', {
//args: ''
//}, cb);
//});

//gulp.task('release:sign-built-files', shell.task([
//'gpg --yes --out ' + fullname + '.js.sig --detach-sig ' + fullname + '.js',
//'gpg --yes --out ' + fullname + '.min.js.sig --detach-sig ' + fullname + '.min.js'
//]));

//var buildFiles = ['./package.json'];
//var signatureFiles = [];
//if (browser) {
//buildFiles.push(fullname + '.js');
//buildFiles.push(fullname + '.js.sig');
//buildFiles.push(fullname + '.min.js');
//buildFiles.push(fullname + '.min.js.sig');

//buildFiles.push('./bower.json');

//signatureFiles.push(fullname + '.js.sig');
//signatureFiles.push(fullname + '.min.js.sig');
//}
//var addFiles = function() {
//var pjson = require('../../package.json');
//return gulp.src(buildFiles)
//.pipe(git.add({
//args: '-f'
//}));
//};

//var buildCommit = function() {
//var pjson = require('../../package.json');
//return gulp.src(buildFiles)
//.pipe(git.commit('Build: ' + pjson.version, {
//args: ''
//}));
//};

//gulp.task('release:add-signed-files', ['release:sign-built-files'], addFiles);
//gulp.task('release:add-built-files', addFiles);

//if (browser) {
//gulp.task('release:build-commit', [
//'release:add-signed-files'
//], buildCommit);
//} else {
//gulp.task('release:build-commit', [
//'release:add-built-files'
//], buildCommit);
//}

//gulp.task('release:version-commit', function() {
//var pjson = require('../../package.json');
//return gulp.src(releaseFiles)
//.pipe(git.commit('Bump package version to ' + pjson.version, {
//args: ''
//}));
//});

//gulp.task('release:push', function(cb) {
//git.push('bitpay', 'master', {
//args: ''
//}, cb);
//});

//gulp.task('release:push-tag', function(cb) {
//var pjson = require('../../package.json');
//var name = 'v' + pjson.version;
//git.tag(name, 'Release ' + name, function() {
//git.push('bitpay', name, cb);
//});
//});

//gulp.task('release:publish', shell.task([
//'npm publish'
//]));


//// requires https://hub.github.com/
//var release = function(importance, cb) {
//var bumper = 'release:bump:' + importance;
//return runsequence(
//// Checkout the release temporal branch
//'release:checkout-releases',
//// Run npm install
//'release:install',
//// Run tests with gulp test
//'test',
//// Update package.json and bower.json
//bumper,
//// build browser files
//browser ? 'browser' : 'noop',
//// Commit
//'release:build-commit',
//// Run git push bitpay $VERSION
//'release:push-tag',
//// Run npm publish
//'release:publish',
//// Checkout the `master` branch
//'release:checkout-master',
//// Bump package.json and bower.json, again
//bumper,
//// Version commit with no binary files to master
//'release:version-commit',
//// Push to master
//'release:push',
//// remove release branch
//'release:cleanup',
//cb);
//};

//['patch', 'minor', 'major'].forEach(function(importance) {
//gulp.task('release:' + importance, function(cb) {
//release(importance, cb);
//});
//gulp.task('release:bump:' + importance, function() {
//bump_version(importance);
//});
//});
//gulp.task('release', ['release:patch']);



if (browser) {
task['test:browser'] = gulp.series(task['browser:uncompressed'], task['browser:maketests'], task['test:karma']);
task['test']= gulp.series(task['test:node'], task['test:browser']);
Expand All @@ -343,6 +185,12 @@ function startGulp(name, opts) {
}
task['default']= task['test'];

/**
* Release automation
*/

task['release:install']= shell.task([ 'npm install']);
var releaseFiles = ['./package.json'];
return task;
}

Expand Down
Loading

0 comments on commit 565555c

Please sign in to comment.