Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #14 from reduct/development
Browse files Browse the repository at this point in the history
[BUGFIX] Trigger a new release, simplify the install process of the r…
  • Loading branch information
Inkdpixels committed Jan 3, 2016
2 parents 24ead28 + 720cb93 commit ca62db7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.gitignore
.codeclimate.yml
coverage
.travis.yml
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"postinstall": "npm run build",
"build": "browserify src/logger.js -o dist/logger.js --standalone reduct.logger -t [ babelify --presets [ es2015 ] ]",
"lint": "xo src/**/*.js",
"mocha": "export TEST=true && find ./src -name '*.spec.js' | xargs istanbul cover -x *.spec.js _mocha -- -R spec --compilers js:babel/register",
"mocha": "export TEST=true && find ./src -name '*.spec.js' | xargs istanbul cover -x *.spec.js _mocha -- -R spec --compilers js:babel-register",
"test": "npm run lint && npm run mocha && npm run build",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
Expand Down Expand Up @@ -44,16 +44,20 @@
},
"homepage": "https://github.com/reduct/logger#readme",
"devDependencies": {
"@inkdpixels/commit-analyzer": "0.0.2",
"@inkdpixels/release-notes-generator": "0.0.2",
"@inkdpixels/commit-analyzer": "0.0.4",
"@inkdpixels/release-notes-generator": "0.0.4",
"babel-preset-es2015": "^6.3.13",
"babel-register": "^6.3.13",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"chai": "^3.4.1",
"istanbul": "^0.4.0",
"jsdom": "^7.0.2",
"mocha": "^2.3.3",
"istanbul": "^0.4.1",
"jsdom": "^7.2.2",
"mocha": "^2.3.4",
"semantic-release": "^4.3.5",
"sinon": "^1.17.2",
"sinon-chai": "^2.8.0",
"xo": "^0.11.0"
"xo": "^0.12.1"
},
"xo": {
"esnext": true,
Expand Down
6 changes: 4 additions & 2 deletions src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ if (!(global.reduct.logger instanceof Logger)) {
global.reduct.logger = logger;
}

export default {
logger: global.reduct.logger,
const logger = global.reduct.logger;

export {
logger,
logLevels
};

0 comments on commit ca62db7

Please sign in to comment.