Permalink
Browse files

various tweaks

  • Loading branch information...
sindresorhus committed Apr 22, 2014
1 parent ba554d5 commit ff817dad0defd95888251af37c716f77b1492ffd
Showing with 28 additions and 20 deletions.
  1. +4 −0 .editorconfig
  2. +4 −4 .travis.yml
  3. +12 −4 Gruntfile.js
  4. +4 −4 README.md
  5. +2 −3 bin/bower
  6. +2 −5 package.json
View
@@ -13,3 +13,7 @@ trim_trailing_whitespace = false
[**.std]
insert_final_newline = false
+
+[{package,bower}.json]
+indent_style = space
+indent_size = 2
View
@@ -1,9 +1,9 @@
language: node_js
node_js:
- - "0.10"
- - "0.11"
+ - '0.10'
+ - '0.11'
matrix:
allow_failures:
- - node_js: "0.11"
+ - node_js: '0.11'
before_script:
- - npm install grunt-cli -g
+ - npm install -g grunt-cli
View
@@ -1,20 +1,29 @@
+'use strict';
module.exports = function (grunt) {
-
require('load-grunt-tasks')(grunt);
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
- files: ['Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/**/*.js', '!test/assets/**/*', '!test/reports/**/*']
+ files: [
+ 'Gruntfile.js',
+ 'bin/*',
+ 'lib/**/*.js',
+ 'test/**/*.js',
+ '!test/assets/**/*',
+ '!test/reports/**/*'
+ ]
},
simplemocha: {
options: {
reporter: 'spec',
timeout: '5000'
},
- full: { src: ['test/test.js'] },
+ full: {
+ src: ['test/test.js']
+ },
short: {
options: {
reporter: 'dot'
@@ -39,7 +48,6 @@ module.exports = function (grunt) {
}
});
-
grunt.registerTask('assets', ['exec:assets-force']);
grunt.registerTask('test', ['jshint', 'exec:assets', 'simplemocha:full']);
grunt.registerTask('cover', 'exec:cover');
View
@@ -1,6 +1,6 @@
# Bower
-[![Build Status](https://secure.travis-ci.org/bower/bower.svg?branch=master)](http://travis-ci.org/bower/bower)
+[![Build Status](https://travis-ci.org/bower/bower.svg?branch=master)](https://travis-ci.org/bower/bower)
<img align="right" height="300" src="http://bower.io/img/bower-logo.png">
@@ -19,11 +19,11 @@ etc.).
## Installing Bower
-Bower depends on [Node](http://nodejs.org/) and [npm](http://npmjs.org/). It's
+Bower depends on [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/). It's
installed globally using npm:
-```
-npm install -g bower
+```sh
+$ npm install -g bower
```
Also make sure that [git](http://git-scm.com/) is installed as some bower
View
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+'use strict';
process.bin = process.title = 'bower';
@@ -8,13 +9,11 @@ var mout = require('mout');
var Logger = require('bower-logger');
var osenv = require('osenv');
var bower = require('../lib');
-var pkg = require(path.join(__dirname, '..', 'package.json'));
+var pkg = require('../package.json');
var cli = require('../lib/util/cli');
var rootCheck = require('../lib/util/rootCheck');
var analytics = require('../lib/util/analytics');
-// --------
-
var options;
var renderer;
var loglevel;
View
@@ -1,18 +1,15 @@
{
"name": "bower",
"version": "1.3.2",
- "description": "The browser package manager.",
+ "description": "The browser package manager",
"author": "Twitter",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/bower/bower/blob/master/LICENSE"
}
],
- "repository": {
- "type": "git",
- "url": "git://github.com/bower/bower.git"
- },
+ "repository": "bower/bower",
"main": "lib",
"homepage": "http://bower.io",
"engines": {

0 comments on commit ff817da

Please sign in to comment.