Skip to content

Commit

Permalink
feat(init): updated using generator-node-mdl v3.0.0 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
sharvit committed Dec 21, 2019
1 parent a71d15a commit 02c0346
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 14 deletions.
3 changes: 3 additions & 0 deletions config/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional', 'cz'],
};
39 changes: 39 additions & 0 deletions config/esdoc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
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 },
},
],
};
15 changes: 15 additions & 0 deletions config/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const path = require('path');

const projectRoot = path.resolve(__dirname, '../');

const config = {
rootDir: projectRoot,
roots: [path.resolve(projectRoot, './src')],
testEnvironment: 'node',
transform: {
'^.+\\.js$': 'babel-jest',
},
collectCoverage: true,
};

module.exports = config;
19 changes: 5 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"prebuild": "rimraf dist",
"build": "yarn build:babel && yarn build:docs",
"build:babel": "babel src --out-dir dist --ignore **/*.test.js",
"build:docs": "esdoc -c .esdoc.json",
"build:docs": "esdoc -c ./config/esdoc.config.js",
"develop:docs": "watch \"yarn build:docs\" . --ignoreDirectoryPattern='/node_modules|docs|dist|coverage|.git|.nyc*./'",
"test:watch": "jest --watch",
"test": "jest --coverage",
"test:watch": "jest --config ./config/jest.config.js --watch",
"test": "jest --config ./config/jest.config.js --coverage",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"lint": "eslint ./src",
"lint:commit": "commitlint -e",
"lint:commit-travis": "commitlint-travis",
"lint:commit": "commitlint -e --config ./config/commitlint.config.js",
"lint:commit-travis": "commitlint-travis --config ./config/commitlint.config.js",
"commit": "git-cz",
"semantic-release": "semantic-release"
},
Expand Down Expand Up @@ -63,15 +63,6 @@
"cz-conventional-changelog": "^3.0.2",
"semantic-release": "^15.13.1"
},
"jest": {
"testEnvironment": "node",
"transform": {
"^.+\\.js$": "babel-jest"
},
"collectCoverageFrom": [
"src/**/*.js"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
Expand Down

0 comments on commit 02c0346

Please sign in to comment.