Skip to content

Commit

Permalink
feat(init): updated using generator-node-mdl v2.6.0 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
sharvit committed Oct 12, 2019
1 parent f4121af commit 48df53a
Show file tree
Hide file tree
Showing 9 changed files with 764 additions and 18 deletions.
38 changes: 38 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"source": "./src",
"destination": "./docs",
"excludes": ["__mocks__"],
"plugins": [
{
"name": "esdoc-standard-plugin",
"option": {
"lint": { "enable": true },
"accessor": {
"access": ["public", "protected"],
"autoPrivate": true
},
"undocumentIdentifier": { "enable": false },
"unexportedIdentifier": { "enable": false },
"typeInference": { "enable": true },
"manual": {
"index": "./readme.md",
"globalIndex": true,
"files": [
"./other/examples.md",
"./contributing.md",
"./other/code_of_conduct.md",
"./other/roadmap.md"
]
},
"test": {
"source": "./src",
"interfaces": ["describe", "it", "context", "suite", "test"],
"includes": ["\\.test\\.js$"]
}
}
}, {
"name": "esdoc-ecmascript-proposal-plugin",
"option": { "all": true }
}
]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage/
dist/
docs/
package-lock.json
package.json
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# compiled
dist

# Docs
docs
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Source
./src

# Docs
./docs

# Test files
*test.*.*

Expand Down
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ jobs:
node_js: 12
script: yarn build
deploy:
provider: script
skip_cleanup: true
script: yarn semantic-release
- provider: script
skip_cleanup: true
script: yarn semantic-release
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ./docs
keep_history: true


16 changes: 14 additions & 2 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ Run test suits to validate the project is working:

```sh
yarn test
# run test in watch mode
yarn test:watch
```

Build the project:

```sh
yarn build
# only build the dist folder from source
yarn build:babel
# only build the docs using esdocs
yarn build:docs
# build docs in watch mode
yarn develop:docs
```

Run linter to validate the project code:
Expand All @@ -46,8 +60,6 @@ yarn lint:commit
```


## Committing and Pushing changes

## Committing and Pushing changes

Create a branch and start hacking:
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
},
"scripts": {
"prebuild": "rimraf dist",
"build": "babel src --out-dir dist --ignore **/*.test.js",
"build": "yarn build:babel && yarn build:docs",
"build:babel": "babel src --out-dir dist --ignore **/*.test.js",
"build:docs": "esdoc -c .esdoc.json",
"develop:docs": "watch \"yarn build:docs\" . --ignoreDirectoryPattern='/node_modules|docs|dist|coverage|.git|.nyc*./'",
"test:watch": "jest --watch",
"test": "jest --coverage",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
Expand All @@ -41,6 +44,9 @@
"babel-plugin-add-module-exports": "^1.0.0",
"commitlint-config-cz": "^0.12.0",
"coveralls": "^3.0.2",
"esdoc": "^1.1.0",
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
"esdoc-standard-plugin": "^1.0.0",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-standard": "^13.0.1",
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/**
* Return the passed argument as is.
* @param {String} [input='No args passed!'] input argument to return.
* @return {String} return the recived import.
*/
export default (input = 'No args passed!') => input;

0 comments on commit 48df53a

Please sign in to comment.