Skip to content

hezky/dh-scripts-run

Repository files navigation

@dh-scripts/run

Readme in Czech (Readme v Češtině)

Devstack basic set of development tools.

Detail

script build

Compile the babel code into ecmascript above the directory "src/js/". The compiled code is moved to the directory "lib/js/".

script clean

Delete the directories "div/", "lib/".

script devel

Run the example.

script eslint

Run static code analysis with eslint over the directories "src/js/", "test/".

script help

Help for the application 'dh-run'.

script prepublishOnly

Lifecycle script prepublishOnly. Runs only with the "npm publish" command. Executing the script before the "npm publish" itself is run The current script runs the "clean" and "build" scripts.

script test

Run tests over the directory "src/js/".

script version

The current version of the application 'dh-run'.

Usage

In your project install the package @dh-scripts/run. In the project directory, run the command:

$ npm install --save @dh-scripts/run

Add to the configuration file ** package.json **:

{
  ...
  "scripts": {
    "build": "dh-run build",
    "clean": "dh-run clean",
    "eslint": "dh-run eslint",
    "prepublishOnly": "dh-run prepublishOnly",
    "test": "dh-run test"
  },
  ...
}

Run with command npm run [script].

License

MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published