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

Commit

Permalink
Refactoring codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulightouch committed May 17, 2018
0 parents commit 96bae67
Show file tree
Hide file tree
Showing 13 changed files with 1,684 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
root: true,
parserOptions: {
sourceType: "module"
},
env: {
browser: true,
node: true,
},
extends: [
'plugin:jest/recommended',
'eslint:recommended',
'standard'
],
plugins: ['jest'],
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-empty': ['error', { 'allowEmptyCatch': true }]
}
}
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# we don't need to lock package version
yarn.lock
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

## 1.0.0 / 2018-05-15

* Breaking: Re-write in ES6
* Breaking: createDebug.humanize move to env.humanize
* Breaking: createDebug.enabled renamed to createDebug.enabler
* Addition: nwjs support
* Addition: `process` package support
* Addition: 99% coverage test
* Fix: JSON.stringify circular issue
* Fix: Edge > 16.16215 support console colors
* Fix: window.webkitURL is existed in Edge issue
Loading

0 comments on commit 96bae67

Please sign in to comment.