Skip to content

Commit

Permalink
feat: apply node mdl generator
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfefer committed Aug 29, 2019
1 parent 5512e02 commit d080880
Show file tree
Hide file tree
Showing 22 changed files with 14,148 additions and 116 deletions.
7 changes: 5 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"presets": ["env", "react"],
"plugins": ["transform-object-rest-spread"]
"presets": [
"@babel/preset-react",
"@babel/env",
],
"plugins": ["@babel/proposal-object-rest-spread"]
}
6 changes: 6 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"@commitlint/config-conventional",
"cz"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage/
dist/
package-lock.json
package.json
38 changes: 9 additions & 29 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,32 +1,12 @@
{
"parser": "babel-eslint",

"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},

"globals": {

},

"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},

"plugins": [
"react"
"plugins": ["patternfly-react"],
"extends": [
"plugin:patternfly-react/recommended",
],
"extends": ["eslint:recommended", "plugin:react/recommended"],

"rules": {
// overrides
"no-multiple-empty-lines": ["error", {"max": 2}]
}
}
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "es5"
}],
},
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
*.js text eol=lf
48 changes: 48 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--- Provide a general summary of the issue in the Title above -->

## I'm submitting a…

<!-- Check one of the following options with "x" -->

* [ ] Regression (a behavior that used to work and stopped working in a new release)
* [ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
* [ ] Feature request
* [ ] Documentation issue or request
* [ ] Support request

## Expected Behavior

<!--- If you‘re describing a bug, tell us what should happen -->

<!--- If you‘re suggesting a change/improvement, tell us how it should work -->

## Current Behavior

<!--- If describing a bug, tell us what happens instead of the expected behavior -->

<!--- If suggesting a change/improvement, explain the difference from current behavior -->

## Possible Solution

<!--- Not obligatory, but suggest a fix/reason for the bug, -->

<!--- or ideas how to implement the addition or change -->

## Steps to Reproduce (for bugs)

<!--- Provide a link to a live example, or an unambiguous set of steps to -->

<!--- reproduce this bug. Include code or screenshot if relevant -->

1. 2. 3. 4.

## Environment

<!--- Include as many relevant details about the environment you experienced the bug in -->

* react-ellipsis-with-tooltip version: <!-- run `npm ls react-ellipsis-with-tooltip` -->
* Node version: <!-- run `node -v` -->
* NPM version: <!-- run `npm -v` -->
* Yarn version (if you use Yarn):
* Operating system: <!-- Mac, Linux, Windows -->
* Link to your project:
48 changes: 48 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!---
Please read the contribution guide before sending your first commit:
https://github.com/amirfefer/react-ellipsis-with-tooltip/blob/master/contributing.md
-->

## PR Type

<!---
What types of changes does your code introduce?
Put an `x` in all the boxes that apply:
-->

* [ ] Bugfix
* [ ] Feature
* [ ] Code style update (whitespace, formatting, missing semicolons, etc.)
* [ ] Refactoring (no functional changes, no api changes)
* [ ] Build related changes
* [ ] CI related changes
* [ ] Documentation content changes
* [ ] Other… Please describe:

## Description

<!---
Describe your changes in detail
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
-->

## How Has This Been Tested?

<!---
Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc.
-->

## Screenshots (if appropriate):

## Does this PR introduce a breaking change?

<!--
If this PR contains a breaking change,
please also describe the impact and migration path for existing applications
-->

* [ ] Yes
* [ ] No
64 changes: 60 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
node_modules
dist/*.js
# 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
package-lock.json
.idea

# 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

# compiled
dist
65 changes: 62 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
node_modules
examples/dist/bundle.js
# Source
./src

# Test files
*test.*.*

# 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

.idea
# 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
33 changes: 27 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
language: node_js
sudo: required
node_js:
- '8'
- '6'
script:
- npm run test
jobs:
include:
- stage: test
node_js: 8
script:
- yarn test
- yarn build
- node_js: 10
script:
- yarn test
- yarn build
- node_js: 12
script:
- yarn lint:commit-travis
- yarn lint
- yarn test
- yarn build
after_success: yarn coveralls
- stage: release
if: branch = master AND type = push
node_js: 12
script: yarn build
deploy:
provider: script
skip_cleanup: true
script: yarn semantic-release

Loading

0 comments on commit d080880

Please sign in to comment.