Skip to content

Commit

Permalink
feat: use generator-node-mdl to bring more features
Browse files Browse the repository at this point in the history
  • Loading branch information
sharvit committed Aug 2, 2019
1 parent 32f513c commit e309a0a
Show file tree
Hide file tree
Showing 54 changed files with 3,728 additions and 574 deletions.
12 changes: 10 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"presets": ["@babel/preset-env"],
"presets": [
[
"@babel/env",
{
"targets": { "node": 8 }
}
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
"add-module-exports"
],
"env": {
"test": {
Expand Down
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: 4 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
root = true

[*]

charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules/
dist/
coverage/
.nyc_output/
package-lock.json
package.json
25 changes: 20 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
{
"rules": {
"prettier/prettier": ["error", { "singleQuote": true, "trailingComma": "es5" }]
"parser": "babel-eslint",
"extends": [
"standard",
"prettier",
"prettier/standard"
],
"plugins": [
"prettier",
"standard"
],
"env": {
"node": true,
"jest": true,
"jasmine": true
},
"extends": ["prettier"],
"plugins": ["prettier"],
"parser": "babel-eslint"
"rules": {
"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 -->

* mongoose-data-seed version: <!-- run `npm ls mongoose-data-seed` -->
* 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/sharvit/mongoose-data-seed/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
76 changes: 67 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,69 @@
node_modules/
dist/
coverage/
.nyc_output/
sandboxes/
npm-debug.log
yarn-error.log
.env
.coveralls.yml
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

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

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

# Coverage directory used by tools like istanbul
coverage
.coveralls.yml

# 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/

# npm lock file
package-lock.json

# 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

# sandboxes
sandboxes/
71 changes: 64 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,66 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

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

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

# Coverage directory used by tools like istanbul
coverage
.coveralls.yml

# 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/
coverage/
.nyc_output/
sandboxes/
npm-debug.log
jspm_packages/

# npm lock file
package-lock.json

# 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
.coveralls.yml
.DS_Store
.travis.yml

# sandboxes
sandboxes/
36 changes: 21 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
language: node_js
node_js:
- '8'
services:
- mongodb
cache: yarn
script: yarn test
after_success:
- yarn coveralls
deploy:
skip_cleanup: true
provider: npm
email: sharvita@gmail.com
api_key:
secure: kfj9vhR6t00r0braHL/F89vsKpd9drH9Fh/9aN4863omDTljZyhYNYgVZ6jKIb4/QdM7BTRXg9k5/ibyd9Y+fdivAGYq031s7Op6Dg9AxEC7eE7U+/sMltijvNExc7ihN/2iTyv3j78JiN7JGozc0oTqh7DJW1+cmqkIic+J2GhGU4V2Of4KXSwJYPD9nl2wSRv3Lp6mU/54zY1V3hJFTAoytcb5IspkBdEagqv//uXp6smM4IQ5psvb82wJyE8D9+ODJ6gcq56NareXNdsZx6bHlvdY7J0kZQl00IRYkZPOXJAcf5HMxZl1MsZ91icbzPRqvhtTUfcIYObt8XMGV8saFFsO5oanJuc9RnlNxUyp0MCAbnqyqeox/flDy5YVLdMpd430ZcZvk3f89cFBfYeUfamZpRL4Tn97ju1zgRI8yZOzKb+ncliYtNG7gY3zfe911oiep5BzUHu4T861OMsJJJRRtCYeVsdjSFoKw+NZeYpSt3db8cmKM5+cBKlKM2maGP+suETiuM/sZA3UJeVfdeHSGl2W8inPeg202lRHMUChuXlqWtoQO4h6ATHKMO++1BVyAp00rY5rZzMXdd1C44TMki70HXtXgfxy8xkXR6inGcTe7yNGVH0/HKyoPs/7PG3HqMDSM13ABNA0oGgTg+J/S3DsSF8tyKP81Zo=
on:
tags: true
repo: sharvit/mongoose-data-seed
jobs:
include:
- stage: test
node_js: 8
script: yarn test
- node_js: 10
script: yarn test
- node_js: 12
script:
- yarn lint:commit-travis
- yarn lint
- yarn test
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
6 changes: 3 additions & 3 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Publishing others private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities
Expand All @@ -34,9 +34,9 @@ This Code of Conduct applies both within project spaces and in public spaces whe

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at sharvita@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [sharvita@gmail.com](mailto:sharvita@gmail.com). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the projects leadership.

## Attribution

Expand Down
Loading

0 comments on commit e309a0a

Please sign in to comment.