Compare commits

..

24 Commits

Author SHA1 Message Date
Adam Stankiewicz
bb563b01c2 Bump to 1.8.10 2021-01-14 18:42:22 +01:00
Adam Stankiewicz
c94f3f6422 Fix production packing 2021-01-14 18:42:06 +01:00
Adam Stankiewicz
ab589e46e9 Bump to 1.8.9 2021-01-14 17:21:29 +01:00
Adam Stankiewicz
341c3772f0 Improve publish script 2021-01-11 23:56:45 +01:00
Adam Stankiewicz
9734497faf Add package-lock.json to gitignores (we use yarn.lock) 2021-01-11 19:31:26 +01:00
dependabot[bot]
87cc6a3c6c Bump tar-fs from 1.15.3 to 1.16.2 (#2576)
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 1.15.3 to 1.16.2.
- [Release notes](https://github.com/mafintosh/tar-fs/releases)
- [Commits](https://github.com/mafintosh/tar-fs/compare/v1.15.3...v1.16.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-11 19:18:41 +01:00
dependabot[bot]
2a47ba1a1d Bump ini from 1.3.4 to 1.3.7 (#2589)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.4 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.4...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-11 19:17:13 +01:00
dependabot[bot]
26212e7a67 Bump handlebars from 4.3.0 to 4.5.3 (#2586)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.3.0 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.3.0...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-11 19:16:10 +01:00
Adam Stankiewicz
7af181f276 Update CONTRIBUTING.md 2020-05-19 10:01:56 +02:00
Adam Stankiewicz
975f6216e5 Update CONTRIBUTING.md 2020-05-19 10:01:23 +02:00
Adam Stankiewicz
d8747d794e Update minimist (#2578) 2020-04-28 14:04:17 +02:00
Adam Stankiewicz
8630604e82 Update mocha (#2577) 2020-04-28 13:19:08 +02:00
Adam Stankiewicz
8f604adf26 Revert "Bump tar-fs from 1.15.3 to 1.16.2 (#2569)"
This reverts commit 3f01228db4.
2020-04-28 12:41:52 +02:00
Satoshi Nakamura
34b4644ca3 Fix typos in changelog (#2574) 2020-04-28 01:11:43 +02:00
dependabot[bot]
3f01228db4 Bump tar-fs from 1.15.3 to 1.16.2 (#2569)
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 1.15.3 to 1.16.2.
- [Release notes](https://github.com/mafintosh/tar-fs/releases)
- [Commits](https://github.com/mafintosh/tar-fs/compare/v1.15.3...v1.16.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-27 22:10:20 +02:00
Adam Stankiewicz
f5dbab0eac Update yarn.lock 2020-04-27 21:31:30 +02:00
Adam Stankiewicz
26031df67c Prevent errors when expanded env variable does not exist, fixes #2573 2020-04-27 21:29:47 +02:00
Adam Stankiewicz
1226186126 Update dependencies and yarn.lock 2020-04-27 18:05:53 +02:00
Adam Stankiewicz
752d6d42d7 Update deep-extend 2020-04-27 18:03:33 +02:00
Adam Stankiewicz
587f08844b Update yarn.lock 2020-04-27 13:57:27 +02:00
Adam Stankiewicz
6afb7b19ef Fix requires in bower-json 2020-04-27 13:55:22 +02:00
Adam Stankiewicz
6798f961f7 Update yarn.lock 2020-04-27 01:58:42 +02:00
Adam Stankiewicz
f1685ec484 Bump bower-json 2020-04-27 01:57:47 +02:00
Adam Stankiewicz
6682e312ac Vendor ext-name (drop meow dependency) (#2572) 2020-04-26 22:51:21 +02:00
15 changed files with 412 additions and 497 deletions

1
.gitignore vendored
View File

@@ -13,3 +13,4 @@
/test/sample
!/test/sample/bower.json
/npm-shrinkwrap.json
package-lock.json

View File

@@ -1,6 +1,6 @@
# Contributing to Bower
Bower is a large community project with many different developers contributing at all levels to the project. We're **actively** looking for more contributors right now. If you're interested in becoming a Bower maintainer or supporting in any way, please fill the following form: http://goo.gl/forms/P1ndzCNoiG. There is more information about [contributing](https://github.com/bower/bower/wiki/Contributor-Guidelines) in the Wiki.
Bower is a large community project with many different developers contributing at all levels to the project. There is more information about [contributing](https://github.com/bower/bower/wiki/Contributor-Guidelines) in the Wiki.
<a name="bugs"></a>
## 🐛 [Bug reports](https://github.com/bower/bower/wiki/Report-a-Bug)
@@ -16,12 +16,6 @@ Bower is a large community project with many different developers contributing a
* Read [Architecture doc](https://github.com/bower/bower/wiki/Rewrite-architecture)
* Triage, close, fix and resolve [issues](https://github.com/bower/bower/issues)
## Team Meetings
We communicate through a channel on Discord https://discord.gg/0fFM7QF0KpZRh2cY
If you'd like to attend the meetings, please fill the [support form](http://goo.gl/forms/P1ndzCNoiG), and you'll get an invite.
## Using the issue tracker
The issue tracker is the preferred channel for [bug reports](#bugs),
@@ -29,12 +23,9 @@ The issue tracker is the preferred channel for [bug reports](#bugs),
requests](#pull-requests), but please respect the following restrictions:
* Please **do not** use the issue tracker for personal support requests. Use
[Stack Overflow](http://stackoverflow.com/questions/tagged/bower),
[Discord Channel](https://discordapp.com/channels/119103197720739842/123728452816732160),
[Mailing List](http://groups.google.com/group/twitter-bower),
(twitter-bower@googlegroups.com), or
[#bower](http://webchat.freenode.net/?channels=bower) on Freenode.
[Stack Overflow](http://stackoverflow.com/questions/tagged/bower), or in serious cases
send an e-mail to team@bower.io
* Please **do not** derail or troll issues. Keep the discussion on topic and
respect the opinions of others.

View File

@@ -1,6 +1,7 @@
{
"private": true,
"name": "bower",
"version": "1.8.8",
"version": "1.8.10",
"description": "The browser package manager",
"author": "Twitter",
"license": "MIT",
@@ -17,9 +18,9 @@
"dependencies": {
"abbrev": "^1.0.5",
"archy": "1.0.0",
"bower-config": "^1.4.2",
"bower-config": "^1.4.3",
"bower-endpoint-parser": "^0.2.2",
"bower-json": "^0.8.1",
"bower-json": "^0.8.4",
"bower-logger": "^0.2.2",
"bower-registry-client": "^1.0.0",
"cardinal": "0.4.4",
@@ -35,7 +36,7 @@
"github": "^0.2.3",
"glob": "^4.3.2",
"graceful-fs": "^4.1.3",
"handlebars": "^4.0.5",
"handlebars": "^4.5.3",
"inquirer": "0.10.0",
"is-root": "^1.0.0",
"junk": "^1.0.0",
@@ -73,7 +74,7 @@
"husky": "^0.14.3",
"in-publish": "^2.0.0",
"lint-staged": "^9.5.0",
"mocha": "^2.5.3",
"mocha": "^3.5.3",
"multiline": "^1.0.2",
"nock": "^11.7.0",
"nock-legacy": "npm:nock@9.2.3",
@@ -98,5 +99,10 @@
"files": [
"bin",
"lib"
]
],
"resolutions": {
"deep-extend": "0.5.1",
"minimist": "0.2.1"
},
"workspaces": ["packages/*"]
}

View File

@@ -2,6 +2,10 @@
## 1.4.2
- Prevent errors when expanded env variable does not exist
## 1.4.2
- Update minimist to 0.2.1 to fix security issue
## 1.4.0

View File

@@ -33,9 +33,7 @@ function doEnvReplaceStr(f) {
esc = esc.length && esc.length % 2;
if (esc) return orig;
if (undefined === process.env[name]) {
throw new Error(
'Environment variable used in .bowerrc is not defined: ' + orig
);
return '${' + name + '}';
}
return process.env[name];

View File

@@ -1,6 +1,6 @@
{
"name": "bower-config",
"version": "1.4.2",
"version": "1.4.3",
"description": "The Bower config reader and writer.",
"author": "Twitter",
"license": "MIT",
@@ -22,7 +22,7 @@
"expect.js": "^0.3.1",
"glob": "^4.5.3",
"mkdirp": "^0.5.0",
"mocha": "^2.5.3",
"mocha": "^3.5.3",
"node-uuid": "^1.4.3",
"q": "^1.2.0",
"rimraf": "^2.3.2"

View File

@@ -16,7 +16,7 @@
},
"devDependencies": {
"expect.js": "~0.2.0",
"mocha": "^2.5.3",
"mocha": "^3.5.3",
"mout": "~0.9.0"
},
"scripts": {

View File

@@ -1,3 +1,15 @@
# 0.8.4
- Update deep-extend (security fix)
# 0.8.3
- Fix requires
# 0.8.2
- Drop dependency on meow (vendor ext-name)
# 0.8.1
- Revert strict name validations and allow @, spaces and slashes

View File

@@ -1,4 +1,4 @@
var extName = require('ext-name');
var extName = require('../vendor/ext-name');
function isAsset(filename) {
var info = extName(filename);

View File

@@ -1,6 +1,6 @@
{
"name": "bower-json",
"version": "0.8.1",
"version": "0.8.4",
"description": "Read bower.json files with semantics, normalisation, defaults and validation",
"author": "Twitter",
"license": "MIT",
@@ -10,7 +10,7 @@
"node": ">=0.10.0"
},
"dependencies": {
"deep-extend": "^0.4.0",
"deep-extend": "^0.5.1",
"ends-with": "^0.2.0",
"ext-list": "^2.0.0",
"sort-keys-length": "^1.0.0",
@@ -19,7 +19,7 @@
},
"devDependencies": {
"expect.js": "^0.3.1",
"mocha": "^2.5.3",
"mocha": "^3.5.3",
"request": "^2.64.0",
"underscore.string": "^3.0.3"
},

View File

@@ -16,7 +16,7 @@
},
"devDependencies": {
"expect.js": "~0.2.0",
"mocha": "^2.5.3"
"mocha": "^3.5.3"
},
"scripts": {
"test": "mocha -R spec"

View File

@@ -21,7 +21,7 @@
"devDependencies": {
"bower-config": "^1.1.2",
"expect.js": "~0.2.0",
"mocha": "^2.5.3",
"mocha": "^3.5.3",
"nock": "9.2.3"
},
"scripts": {

View File

@@ -5,25 +5,9 @@ var path = require('path');
var childProcess = require('child_process');
var arraydiff = require('arr-diff');
var wrench = require('wrench');
var inquirer = require('inquirer');
var npmVersion = JSON.parse(
childProcess.execSync('npm version --json').toString()
).npm.split('.');
var npmMajor = parseInt(npmVersion[0], 10);
var npmMinor = parseInt(npmVersion[1], 10);
var jsonPackage = require('./package');
if (npmMajor !== 3 || npmMinor < 5) {
console.log('You need to use at npm@3.5 to publish bower.');
console.log(
'It is because npm 2.x produces too long paths that Windows does not handle and newer npm drops lib/node_modules'
);
console.log('Please upgrade it: npm install -g npm@3');
process.exit(1);
}
if (
childProcess
.execSync('git rev-parse --abbrev-ref HEAD')
@@ -35,18 +19,12 @@ if (
process.exit(1);
}
if (process.env.SKIP_TESTS !== '1') {
console.log('Reinstalling dependencies...');
childProcess.execSync('rm -rf node_modules && yarn', {
stdio: [0, 1, 2]
});
console.log('Running test suite...');
childProcess.execSync('yarn test', { stdio: [0, 1, 2] });
}
var dir = tmp.dirSync().name;
console.log('\nInstalling production bundle in:');
console.log(dir + '\n');
wrench.copyDirSyncRecursive(__dirname, dir, {
forceDelete: true,
include: function(path) {
@@ -54,28 +32,30 @@ wrench.copyDirSyncRecursive(__dirname, dir, {
}
});
delete jsonPackage.scripts;
fs.writeFileSync(
path.resolve(dir, 'package.json'),
JSON.stringify(jsonPackage, null, ' ') + '\n'
);
console.log('Installing production dependencies...');
childProcess.execSync('yarn --production', {
childProcess.execSync('yarn --production -s', {
cwd: dir,
stdio: [0, 1, 2]
});
delete jsonPackage.private;
jsonPackage.bundledDependencies = Object.keys(jsonPackage.dependencies)
delete jsonPackage.dependencies;
delete jsonPackage.devDependencies;
delete jsonPackage.scripts;
fs.writeFileSync(
path.resolve(dir, 'package.json'),
JSON.stringify(jsonPackage, null, ' ') + '\n'
);
console.log('Moving node_modules to lib directory...');
wrench.copyDirSyncRecursive(
path.resolve(dir, 'node_modules'),
path.resolve(dir, 'lib', 'node_modules')
);
wrench.rmdirSyncRecursive(path.resolve(dir, 'node_modules'));
fs.writeFileSync(path.resolve(dir, '.npmignore'), '');
console.log('Testing bower on sample project...');
@@ -106,61 +86,9 @@ if (installedDiff.length > 0) {
process.exit(1);
}
console.log('\nBower production bundle installed in:');
console.log(dir + '\n');
var questions = [
{
type: 'confirm',
name: 'review',
message: 'Did you review all the changes with "git diff"?',
default: false
},
{
type: 'confirm',
name: 'tests',
message: 'Are you sure all tests are passing on CI?',
default: false
},
{
type: 'confirm',
name: 'publish',
message:
'Are you SURE you want to publish ' +
jsonPackage.name +
'@' +
jsonPackage.version +
'?',
default: false
}
];
var done = this.async();
inquirer.prompt(questions, function(answers) {
if (!answers.review || !answers.tests || !answers.publish) {
console.log('Please publish bower after you fix this issue');
process.exit(1);
}
console.log(
'\nPlease remember to tag this release, and add a release with changelog on Github!'
);
console.log(
'\nAlso, please remember to test published Bower one more time!'
);
console.log(
'\nYou can promote this bower release with "npm dist-tag add bower@' +
jsonPackage.version +
' latest'
);
console.log('\nPublishing Bower...');
childProcess.execSync('npm publish --tag beta', {
cwd: dir,
stdio: [0, 1, 2]
});
done();
});
console.log('All done!')
console.log('You need to publish prerelease and release manually:')
console.log('')
console.log('- cd ' + dir)
console.log('- npm publish --tag beta')
console.log('- npm dist-tag add bower@' + jsonPackage.version + ' latest')

View File

@@ -692,7 +692,7 @@ describe('bower install', function() {
});
});
it('recognizes proxy option in config', function(done) {
it('recognizes proxy option in config', function() {
this.timeout(10000);
tempDir.prepare({
@@ -722,7 +722,6 @@ describe('bower install', function() {
])
.fail(function(error) {
expect(error.message).to.equal('Status code of 500');
done();
});
});

718
yarn.lock

File diff suppressed because it is too large Load Diff