Skip to content

Commit

Permalink
BLD: Add test script to verify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
royriojas committed Nov 2, 2015
1 parent 387f234 commit 5ff8fdf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ module.exports = function ( browserifyOpts, opts, argv ) {
}

var defaultCache = {
cache: {}, packageCache: {}
cache: {},
packageCache: {}
};

var persistifyCache = ignoreCache ? defaultCache : (cache.getKey( 'persistifyArgs' ) || defaultCache);
Expand Down Expand Up @@ -95,10 +96,7 @@ module.exports = function ( browserifyOpts, opts, argv ) {
} );
}

cache.setKey( 'persistifyArgs', {
cache: browserifyOpts.cache,
packageCache: browserifyOpts.packageCache
} );
cache.setKey( 'persistifyArgs', { cache: browserifyOpts.cache, packageCache: browserifyOpts.packageCache } );
}

normalizeCache();
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"beautify": "esbeautifier 'index.js' 'bin/**/*.js' 'specs/**/*.js'",
"beautify-check": "npm run beautify -- -k",
"eslint": "eslinter 'index.js' 'bin/**/*.js' 'specs/**/*.js'",
"lint": "npm run beautify && npm run eslint",
"verify": "npm run beautify-check && npm run eslint",
"eslint-fix": "npm run eslint -- --fix",
"autofix": "npm run beautify && npm run eslint-fix",
"check": "npm run beautify-check && npm run eslint",
"verify": "npm run check",
"install-hooks": "prepush install && changelogx install-hook && precommit install",
"changelog": "changelogx -f markdown -o ./changelog.md",
"do-changelog": "npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify",
Expand All @@ -19,6 +21,7 @@
"bump-minor": "npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v",
"bump-patch": "npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v",
"bundle": "./bin/cmd.js demo/dep1.js -o dist/bundle.js",
"test": "npm run verify",
"bundle:watch": "./bin/cmd.js demo/dep1.js -o dist/bundle.js --watch"
},
"repository": {
Expand All @@ -36,8 +39,8 @@
"devDependencies": {
"babelify": "^6.1.3",
"changelogx": "^1.0.18",
"esbeautifier": "^4.2.11",
"eslinter": "^3.0.1",
"esbeautifier": "^6.1.8",
"eslinter": "^3.2.1",
"precommit": "^1.1.5",
"prepush": "^3.1.4",
"react": "^0.13.3",
Expand Down

0 comments on commit 5ff8fdf

Please sign in to comment.