Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Commit 28bdc0d

Browse files
committed
Refactoring codebase
close debug-js/debug#569 close debug-js/debug#563
0 parents  commit 28bdc0d

File tree

13 files changed

+1684
-0
lines changed

13 files changed

+1684
-0
lines changed

.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
sourceType: "module"
5+
},
6+
env: {
7+
browser: true,
8+
node: true,
9+
},
10+
extends: [
11+
'plugin:jest/recommended',
12+
'eslint:recommended',
13+
'standard'
14+
],
15+
plugins: ['jest'],
16+
rules: {
17+
// allow async-await
18+
'generator-star-spacing': 'off',
19+
// allow debugger during development
20+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
21+
'no-empty': ['error', { 'allowEmptyCatch': true }]
22+
}
23+
}

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
62+
63+
# we don't need to lock package version
64+
yarn.lock

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
## 1.0.0 / 2018-05-15
4+
5+
* Breaking: Re-write in ES6
6+
* Breaking: createDebug.humanize move to env.humanize
7+
* Breaking: createDebug.enabled renamed to createDebug.enabler
8+
* Addition: nwjs support
9+
* Addition: `process` package support
10+
* Addition: 99% coverage test
11+
* Fix: JSON.stringify circular issue
12+
* Fix: Edge > 16.16215 support console colors
13+
* Fix: window.webkitURL is existed in Edge issue

0 commit comments

Comments
 (0)