gfp-doctor
v1.12.0
Published
A command-line tool to help identify problems with GFP modules
Downloads
50
Readme
gfp-doctor
A command-line tool to help identify problems with GFP modules
Installation
npm install gfp-doctor -gUsage
When in a GFP repository folder, run gfp-doctor
Usage: gfp-doctor [options]
Options:
-V, --version output the version number
-v, --verbose
-s, --silent
-pp, --package-path <path> override default path for package.json
-h, --help output usage informationChecks
package.jsonShould use
eslint-config-gfpShould use public npm version of
eslint-config-gfpShould use public npm version
angular-module-no-depsShould use
documentationShould use some
lintscriptShould use
babel-cliShould use
babel-coreShould use
babel-loaderShould use
babel-plugin-istanbulShould use
babel-plugin-transform-runtimeShould use
babel-preset-envShould use
babel-preprocessorShould use
puppeteerShould use
headless ChromeShould use prepush hooks
Should use public
require-polyfillShould use
eslint-config-gfp3.0.0 and upShould use
gfp-doctor1.12.0 and upShould run
gfp-doctoraspostinstallShould use
karma1.7.0 and upShould use
karma-coverage1.1.0 and upShould use
karma-jasmine1.1.0 and up
.eslintrc- Should use
valid-jsdocrule - Should use
require-jsdocrule
- Should use
karma.conf.js- Should use
angularandangular-mocksfromnode_modules
- Should use
bower.json- Should not have
"version"property
- Should not have
.babelrc- Should use
"plugin istanbul"test - Should use
"babel-preset-env"presets
- Should use
Contributing
Create a branch or fork, then submit PR.
Remember to:
- Update CHANGELOG.md
- Update README.md
npm run lintnpm test
Please respect the .editorconfig and .eslintrc. Basically:
- UTF-8
- Unix linebreaks
- 4 space indentation
- Semicolons
Adding new tests
- Create a new file in
/liband require it inlib/index.js - The new file should return an array with the following format to the
runfunction inlib/index.js:
[
{
desc: 'a description of the test being made',
errorMsg: 'a descriptive error message',
run: 'a proposed solution that is copy paste friendly through the command line. [This property is not a requirement]'
passed: Boolean
},
{...}
]