Skip to content

Commit

Permalink
Modify browserify output to standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Feb 27, 2017
1 parent bb14ded commit 39fd1a4
Show file tree
Hide file tree
Showing 9 changed files with 941 additions and 9,268 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "mocha",
"coverage": "istanbul cover _mocha",
"coveralls": "istanbul cover _mocha && istanbul-coveralls",
"web:build": "browserify index.js | uglifyjs --compress --mangle -o web/each-props.js && browserify -o test/web/each-props.test.js test/*.js",
"web:build": "browserify index.js --standalone eachProps | uglifyjs --compress --mangle -o web/each-props.js && node test/web/make.js",
"web:test": "mocha-phantomjs -p node_modules/.bin/phantomjs test/web/each-props.test.html"
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions test/each-props-args.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

var expect = require('chai').expect;

var eachProps = require('..');
var chai = require('chai');
var expect = chai.expect;

function logger(value, keyChain, nodeInfo) {
this.push({
Expand Down
6 changes: 3 additions & 3 deletions test/each-props-proc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

var expect = require('chai').expect;
var objectAssign = require('object-assign');

var eachProps = require('..');
var chai = require('chai');
var expect = chai.expect;
var objectAssign = require('object-assign');

function logger(value, keyChain, nodeInfo) {
var log = objectAssign({}, nodeInfo);
Expand Down
Loading

0 comments on commit 39fd1a4

Please sign in to comment.