Skip to content

Commit

Permalink
Merge pull request #197 from glebmachine/feature/196/es6-refactor
Browse files Browse the repository at this point in the history
1.0.0-alpha 1 release.
  • Loading branch information
patrickcate authored Jun 25, 2019
2 parents ebf476e + 073a2ba commit 1aafc3e
Show file tree
Hide file tree
Showing 81 changed files with 7,956 additions and 3,219 deletions.
13 changes: 9 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 4
end_of_line = lf
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,yml}]
indent_size = 2
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.eslintrc.js
commitizen.config.js
commitlint.config.js
coverage
63 changes: 63 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
module.exports = {
root: true,
env: {
mocha: true,
node: true,
},
parserOptions: {
ecmaVersion: 2017,
},
plugins: ['prettier', 'jsdoc'],
extends: ['eslint:recommended', 'airbnb-base', 'plugin:prettier/recommended'],
rules: {
// Only allow debugger in development
'no-debugger': process.env.PRE_COMMIT ? 'error' : 'off',

// Only allow `console.log` in development
'no-console': process.env.PRE_COMMIT
? ['error', { allow: ['warn', 'error'] }]
: 'off',
'prettier/prettier': 'error',
'max-len': [
'warn',
{
code: 80,
ignoreTrailingComments: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
// JSDoc linting rules.
'jsdoc/check-alignment': 'warn',
'jsdoc/check-examples': 'warn',
'jsdoc/check-indentation': 'warn',
'jsdoc/check-param-names': 'warn',
'jsdoc/check-syntax': 'warn',
'jsdoc/check-tag-names': 'warn',
'jsdoc/check-types': 'warn',
'jsdoc/implements-on-classes': 'warn',
'jsdoc/match-description': 'warn',
'jsdoc/newline-after-description': 'warn',
'jsdoc/no-types': 'off',
'jsdoc/no-undefined-types': [
'warn',
{
definedTypes: ['Promise'],
},
],
'jsdoc/require-description': 'off',
'jsdoc/require-description-complete-sentence': 'warn',
'jsdoc/require-example': 'off',
'jsdoc/require-hyphen-before-param-description': 'warn',
'jsdoc/require-jsdoc': 'warn',
'jsdoc/require-param': 'warn',
'jsdoc/require-param-description': 'warn',
'jsdoc/require-param-name': 'warn',
'jsdoc/require-param-type': 'warn',
'jsdoc/require-returns': 'warn',
'jsdoc/require-returns-check': 'warn',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-returns-type': 'warn',
'jsdoc/valid-types': 'warn',
},
};
13 changes: 0 additions & 13 deletions .eslintrc.json

This file was deleted.

44 changes: 44 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Fix end-of-lines in Git versions older than 2.10
# https://github.com/git/git/blob/master/Documentation/RelNotes/2.10.0.txt#L248
* text=auto eol=lf

# ===
# Binary Files (don't diff, don't fix line endings)
# ===

# Images
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.tiff binary

# Fonts
*.oft binary
*.ttf binary
*.eot binary
*.woff binary
*.woff2 binary

# Videos
*.mov binary
*.mp4 binary
*.webm binary
*.ogg binary
*.mpg binary
*.3gp binary
*.avi binary
*.wmv binary
*.flv binary
*.asf binary

# Audio
*.mp3 binary
*.wav binary
*.flac binary

# Compressed
*.gz binary
*.zip binary
*.7z binary
3 changes: 0 additions & 3 deletions .githooks/pre-commit/lint

This file was deleted.

29 changes: 27 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
node_modules/
## OS generated files ##
*.DS_Store
*.DS_Store?
._*
*.Spotlight-V100
*.Trashes
Icon?
ehthumbs.db
Thumbs.db

## Sublime Text files ##
*.sublime-project
*.sublime-workspace

## VS Code Files ##
.vscode

## Ignore the Node Modules folder ##
node_modules

## Ignore debug log files ##
npm-debug.log
.DS_Store

## Test coverage files ##
.nyc_output
coverage
test/**/sprites
test/demo/output.css
6 changes: 0 additions & 6 deletions .jscsrc

This file was deleted.

91 changes: 0 additions & 91 deletions .jshintrc

This file was deleted.

17 changes: 14 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
.gitignore

# Node files/folders.
node_modules/
npm-debug.log

# Test files/folders.
test/
coverage/
.travis.yml

gulpfile.js

# Lint/git configuration files.
.editorconfig
.eslintignore
.eslintrc.js
.gitattributes
.gitignore
.prettierignore
.prettierrc.js
commitizen.config.js
commitlint.config.js
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/**
**/output.css
15 changes: 15 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// prettier.config.js or .prettierrc.js
module.exports = {
arrowParens: 'always',
bracketSpacing: true,
endOfLine: 'lf',
htmlWhitespaceSensitivity: 'strict',
jsxBracketSameLine: false,
printWidth: 80,
proseWrap: 'never',
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
};
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
sudo: false
language: node_js
node_js:
- '12'
- '11'
- '10'
- '9'
- '8'
- '6'
- '5'
- '4.2'
- '4.1'
- '4.0'
script:
- npm run test
35 changes: 26 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
#0.1.7
# Changelog

## 0.1.10

- Update lodash dependency to 4.17.11.
- Replace custom console.log override 'fixture-stdout' library.
- Updated other non-major dependencies.
- Update Travis config to test with more recent versions of Node.
- Add package-lock.json file so consistent install of dependencies can be assured.

## 0.1.9

- Save .parent prior to replaceWith #181. Thanks for [@AMar4enko](https://github.com/AMar4enko) Cheers!)

## 0.1.8

- Fixed minified css support. Big thank to [@jonas8](https://github.com/jonas8) Cheers!

## 0.1.7

- Package deps fixed, huge thanks and lots of beer for [Daniel Lindenkreuz @dlindenkreuz](http://github.com/dlindenkreuz))

#0.1.6
## 0.1.6

- Package deps updated (broken!)
- Package deps updated (broken!)

#0.1.5
## 0.1.5

- Fixes improper rule property in background-color extraction function.
- Fixed linter warnings in plugin tests.
- Fixed linter warnings in plugin tests.

Thanks for [Eugene Romanovsky @setage](http://github.com/setage) again 🍺

#0.1.4

- Deprecation warnings fixed (Thanks for [Eugene Romanovsky @setage](http://github.com/setage))
## 0.1.4

- Deprecation warnings fixed (Thanks for [Eugene Romanovsky @setage](http://github.com/setage))

#0.1.3
## 0.1.3

- Added tests
Loading

0 comments on commit 1aafc3e

Please sign in to comment.