From 508c59e05c1d093f4afff53583926ada61bab87e Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 30 Oct 2014 16:53:08 -0700 Subject: [PATCH] Rename bower_components To components. Because tab-completion works better when there aren't two things starting with bower, and shorter names are nicer to deal with in general. --- .bowerrc | 4 ++++ Gruntfile.js | 4 ++-- README.md | 6 +++--- {bower_components => components}/backbone/backbone.js | 0 .../bootstrap/dist/css/bootstrap.css | 0 .../bytebuffer/dist/ByteBufferAB.js | 0 {bower_components => components}/chai/.bower.json | 0 {bower_components => components}/chai/CONTRIBUTING.md | 0 {bower_components => components}/chai/History.md | 0 {bower_components => components}/chai/README.md | 0 {bower_components => components}/chai/ReleaseNotes.md | 0 {bower_components => components}/chai/bower.json | 0 {bower_components => components}/chai/chai.js | 0 {bower_components => components}/chai/component.json | 0 {bower_components => components}/chai/karma.conf.js | 0 {bower_components => components}/chai/karma.sauce.js | 0 {bower_components => components}/chai/package.json | 0 {bower_components => components}/chai/sauce.browsers.js | 0 {bower_components => components}/jquery/dist/jquery.js | 0 {bower_components => components}/long/dist/Long.js | 0 {bower_components => components}/mocha/.bower.json | 0 {bower_components => components}/mocha/.editorconfig | 0 {bower_components => components}/mocha/History.md | 0 {bower_components => components}/mocha/LICENSE | 0 {bower_components => components}/mocha/Readme.md | 0 {bower_components => components}/mocha/bower.json | 0 {bower_components => components}/mocha/media/logo.svg | 0 {bower_components => components}/mocha/mocha.css | 0 {bower_components => components}/mocha/mocha.js | 0 {bower_components => components}/mustache/mustache.js | 0 .../protobuf/dist/ProtoBuf.js | 0 {bower_components => components}/qrcode/qrcode.js | 0 {bower_components => components}/underscore/underscore.js | 0 index.html | 2 +- js-deps/bower_components.js => js/components.js | 0 options.html | 4 ++-- test/index.html | 8 ++++---- 37 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 .bowerrc rename {bower_components => components}/backbone/backbone.js (100%) rename {bower_components => components}/bootstrap/dist/css/bootstrap.css (100%) rename {bower_components => components}/bytebuffer/dist/ByteBufferAB.js (100%) rename {bower_components => components}/chai/.bower.json (100%) rename {bower_components => components}/chai/CONTRIBUTING.md (100%) rename {bower_components => components}/chai/History.md (100%) rename {bower_components => components}/chai/README.md (100%) rename {bower_components => components}/chai/ReleaseNotes.md (100%) rename {bower_components => components}/chai/bower.json (100%) rename {bower_components => components}/chai/chai.js (100%) rename {bower_components => components}/chai/component.json (100%) rename {bower_components => components}/chai/karma.conf.js (100%) rename {bower_components => components}/chai/karma.sauce.js (100%) rename {bower_components => components}/chai/package.json (100%) rename {bower_components => components}/chai/sauce.browsers.js (100%) rename {bower_components => components}/jquery/dist/jquery.js (100%) rename {bower_components => components}/long/dist/Long.js (100%) rename {bower_components => components}/mocha/.bower.json (100%) rename {bower_components => components}/mocha/.editorconfig (100%) rename {bower_components => components}/mocha/History.md (100%) rename {bower_components => components}/mocha/LICENSE (100%) rename {bower_components => components}/mocha/Readme.md (100%) rename {bower_components => components}/mocha/bower.json (100%) rename {bower_components => components}/mocha/media/logo.svg (100%) rename {bower_components => components}/mocha/mocha.css (100%) rename {bower_components => components}/mocha/mocha.js (100%) rename {bower_components => components}/mustache/mustache.js (100%) rename {bower_components => components}/protobuf/dist/ProtoBuf.js (100%) rename {bower_components => components}/qrcode/qrcode.js (100%) rename {bower_components => components}/underscore/underscore.js (100%) rename js-deps/bower_components.js => js/components.js (100%) diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 00000000..978041dc --- /dev/null +++ b/.bowerrc @@ -0,0 +1,4 @@ +{ + "directory": "components/", + "analytics": false +} diff --git a/Gruntfile.js b/Gruntfile.js index 34cee3ba..edcabed0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -3,14 +3,14 @@ module.exports = function(grunt) { // build the concat config from the preen config var components = []; for (component in grunt.file.readJSON('bower.json').preen) { - components.push('bower_components/' + component + '/**/*.js'); + components.push('components/' + component + '/**/*.js'); } grunt.initConfig({ concat: { components: { src: components, - dest: 'js-deps/bower_components.js', + dest: 'js/components.js', }, }, }); diff --git a/README.md b/README.md index d71d494b..be56a51a 100644 --- a/README.md +++ b/README.md @@ -61,11 +61,11 @@ actually use from the new package, e.g.: ``` Now, run `grunt` to delete unused package files and concatenate the remaining -javascript files into `js-deps/bower_components.js`. Note that packages will be +javascript files into `js/components.js`. Note that packages will be concatenated **in the order** that they are listed in the preen config. -Finally, stage and commit changes to bower.json, js-deps/bower_components.js, -and bower_components/. The latter should be limited to files we actually use. +Finally, stage and commit changes to bower.json, `js/bower_components.js`, +and `components/`. The latter should be limited to files we actually use. Tests ===== diff --git a/bower_components/backbone/backbone.js b/components/backbone/backbone.js similarity index 100% rename from bower_components/backbone/backbone.js rename to components/backbone/backbone.js diff --git a/bower_components/bootstrap/dist/css/bootstrap.css b/components/bootstrap/dist/css/bootstrap.css similarity index 100% rename from bower_components/bootstrap/dist/css/bootstrap.css rename to components/bootstrap/dist/css/bootstrap.css diff --git a/bower_components/bytebuffer/dist/ByteBufferAB.js b/components/bytebuffer/dist/ByteBufferAB.js similarity index 100% rename from bower_components/bytebuffer/dist/ByteBufferAB.js rename to components/bytebuffer/dist/ByteBufferAB.js diff --git a/bower_components/chai/.bower.json b/components/chai/.bower.json similarity index 100% rename from bower_components/chai/.bower.json rename to components/chai/.bower.json diff --git a/bower_components/chai/CONTRIBUTING.md b/components/chai/CONTRIBUTING.md similarity index 100% rename from bower_components/chai/CONTRIBUTING.md rename to components/chai/CONTRIBUTING.md diff --git a/bower_components/chai/History.md b/components/chai/History.md similarity index 100% rename from bower_components/chai/History.md rename to components/chai/History.md diff --git a/bower_components/chai/README.md b/components/chai/README.md similarity index 100% rename from bower_components/chai/README.md rename to components/chai/README.md diff --git a/bower_components/chai/ReleaseNotes.md b/components/chai/ReleaseNotes.md similarity index 100% rename from bower_components/chai/ReleaseNotes.md rename to components/chai/ReleaseNotes.md diff --git a/bower_components/chai/bower.json b/components/chai/bower.json similarity index 100% rename from bower_components/chai/bower.json rename to components/chai/bower.json diff --git a/bower_components/chai/chai.js b/components/chai/chai.js similarity index 100% rename from bower_components/chai/chai.js rename to components/chai/chai.js diff --git a/bower_components/chai/component.json b/components/chai/component.json similarity index 100% rename from bower_components/chai/component.json rename to components/chai/component.json diff --git a/bower_components/chai/karma.conf.js b/components/chai/karma.conf.js similarity index 100% rename from bower_components/chai/karma.conf.js rename to components/chai/karma.conf.js diff --git a/bower_components/chai/karma.sauce.js b/components/chai/karma.sauce.js similarity index 100% rename from bower_components/chai/karma.sauce.js rename to components/chai/karma.sauce.js diff --git a/bower_components/chai/package.json b/components/chai/package.json similarity index 100% rename from bower_components/chai/package.json rename to components/chai/package.json diff --git a/bower_components/chai/sauce.browsers.js b/components/chai/sauce.browsers.js similarity index 100% rename from bower_components/chai/sauce.browsers.js rename to components/chai/sauce.browsers.js diff --git a/bower_components/jquery/dist/jquery.js b/components/jquery/dist/jquery.js similarity index 100% rename from bower_components/jquery/dist/jquery.js rename to components/jquery/dist/jquery.js diff --git a/bower_components/long/dist/Long.js b/components/long/dist/Long.js similarity index 100% rename from bower_components/long/dist/Long.js rename to components/long/dist/Long.js diff --git a/bower_components/mocha/.bower.json b/components/mocha/.bower.json similarity index 100% rename from bower_components/mocha/.bower.json rename to components/mocha/.bower.json diff --git a/bower_components/mocha/.editorconfig b/components/mocha/.editorconfig similarity index 100% rename from bower_components/mocha/.editorconfig rename to components/mocha/.editorconfig diff --git a/bower_components/mocha/History.md b/components/mocha/History.md similarity index 100% rename from bower_components/mocha/History.md rename to components/mocha/History.md diff --git a/bower_components/mocha/LICENSE b/components/mocha/LICENSE similarity index 100% rename from bower_components/mocha/LICENSE rename to components/mocha/LICENSE diff --git a/bower_components/mocha/Readme.md b/components/mocha/Readme.md similarity index 100% rename from bower_components/mocha/Readme.md rename to components/mocha/Readme.md diff --git a/bower_components/mocha/bower.json b/components/mocha/bower.json similarity index 100% rename from bower_components/mocha/bower.json rename to components/mocha/bower.json diff --git a/bower_components/mocha/media/logo.svg b/components/mocha/media/logo.svg similarity index 100% rename from bower_components/mocha/media/logo.svg rename to components/mocha/media/logo.svg diff --git a/bower_components/mocha/mocha.css b/components/mocha/mocha.css similarity index 100% rename from bower_components/mocha/mocha.css rename to components/mocha/mocha.css diff --git a/bower_components/mocha/mocha.js b/components/mocha/mocha.js similarity index 100% rename from bower_components/mocha/mocha.js rename to components/mocha/mocha.js diff --git a/bower_components/mustache/mustache.js b/components/mustache/mustache.js similarity index 100% rename from bower_components/mustache/mustache.js rename to components/mustache/mustache.js diff --git a/bower_components/protobuf/dist/ProtoBuf.js b/components/protobuf/dist/ProtoBuf.js similarity index 100% rename from bower_components/protobuf/dist/ProtoBuf.js rename to components/protobuf/dist/ProtoBuf.js diff --git a/bower_components/qrcode/qrcode.js b/components/qrcode/qrcode.js similarity index 100% rename from bower_components/qrcode/qrcode.js rename to components/qrcode/qrcode.js diff --git a/bower_components/underscore/underscore.js b/components/underscore/underscore.js similarity index 100% rename from bower_components/underscore/underscore.js rename to components/underscore/underscore.js diff --git a/index.html b/index.html index 16c12f17..ceb214cb 100644 --- a/index.html +++ b/index.html @@ -125,7 +125,7 @@ - + diff --git a/js-deps/bower_components.js b/js/components.js similarity index 100% rename from js-deps/bower_components.js rename to js/components.js diff --git a/options.html b/options.html index 1eb85c3b..8e8d555b 100644 --- a/options.html +++ b/options.html @@ -18,7 +18,7 @@ TextSecure Options - +
@@ -93,7 +93,7 @@ - + diff --git a/test/index.html b/test/index.html index adda39dd..df718489 100644 --- a/test/index.html +++ b/test/index.html @@ -16,7 +16,7 @@ TextSecure test runner - +

Run this out of the chrome-plugin:// namespace (and expect plugin state to be cleared/corrupted), not file://

@@ -119,14 +119,14 @@ - - + + - +