Skip to content

Commit

Permalink
Merge pull request flickr#31 from jeremyruppel/scripts
Browse files Browse the repository at this point in the history
Use package.json scripts
  • Loading branch information
jeremyruppel authored Aug 19, 2016
2 parents 3b9a706 + 5ef2ac8 commit cf6238d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 35 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ module.exports = {

env: {
node: true
}
},

rules: {}

};
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ before_script:
- npm run lint
script:
- npm run build
- npm test
- npm test --coverage
after_script:
- npm run coverage
7 changes: 5 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Copyright 2016 Yahoo Inc.
// Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.
/*!
* Copyright 2016 Yahoo Inc.
* Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.
* @license
*/

'use strict';

Expand Down
7 changes: 5 additions & 2 deletions lib/row.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Copyright 2016 Yahoo Inc.
// Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.
/*!
* Copyright 2016 Yahoo Inc.
* Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.
* @license
*/

var merge = require('merge');

Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
"main": "./lib/index.js",
"scripts": {
"lint": "eslint .",
"test": "mocha",
"coverage": "./script/coverage.sh",
"build": "./script/build.sh",
"test": "istanbul test _mocha",
"build": "npm run build-dist && npm run build-min",
"build-dist": "mkdir -p dist && browserify -r $npm_package_main:justified-layout > dist/justified-layout.js",
"build-min": "uglifyjs dist/justified-layout.js --comments -o dist/justified-layout.min.js",
"coverage": "cat ./coverage/lcov.info | coveralls",
"prepublish": "npm run build"
},
"repository": {
Expand All @@ -36,7 +38,7 @@
"browserify": "~11.1.0",
"coveralls": "^2.11.9",
"eslint": "^2.13.1",
"eslint-config-flickr": "^1.1.7",
"eslint-config-flickr": "~1.1.8",
"expect": "1.14.0",
"istanbul": "^0.4.2",
"mocha": "2.4.5",
Expand Down
14 changes: 0 additions & 14 deletions script/build.sh

This file was deleted.

11 changes: 0 additions & 11 deletions script/coverage.sh

This file was deleted.

0 comments on commit cf6238d

Please sign in to comment.