Some utilities methods for the side packages
It will load the package.json
file of the current context and exposes important information from the PackageJson model
It allows one parameter:
- cwd (
string
): optional parameter. Otherwise it usesprocess.cwd()
A simple method to load the content of a file
- filePath (
string
): required parameter.
It executes the provided command in a shell
- command (
string
): required parameter. - silent (
boolean
): optional parameter. If true it display in the console output the results of the command - cwd (
string
): optional parameter. Otherwise it usesprocess.cwd()
-
npm run dev:linting
: Lint files -
npm test
: Run tests -
npm run test:coverage
: Run tests and see coverage reports