Common tasks used during development of PixelOven
npm install @pixeloven/tasks> Pixel Oven tasks
See our website pixeloven-tasks for more information or the issues associated with this package.
Using npm:
``sh`
npm install --save-dev @pixeloven/tasks
or using yarn:
`sh`
yarn add --dev @pixeloven/tasks
When making a libraries similar to the ones seen in PixelOven we can use this simple wrapper for common tasks like linting, compiling and testing.
Example of usage in package.json`json``
"scripts": {
"clean": "pixeloven-tasks clean",
"compile": "pixeloven-tasks compile:ts",
"precompile": "pixeloven-tasks compile:clean",
"document": "pixeloven-tasks document:ts src",
"predocument": "pixeloven-tasks document:clean",
"lint": "yarn lint:ts",
"lint:ts": "pixeloven-tasks lint:ts src/*/.{ts,tsx}",
"pretest": "pixeloven-tasks test:clean",
"pretty": "pixeloven-tasks pretty src/*/.{ts,tsx}",
"pretty:ts": "pixeloven-tasks pretty:ts src/*/.{ts,tsx}",
"test": "pixeloven-tasks test --color --coverage",
"test:ci": "pixeloven-tasks test --ci --coverage",
"test:watch": "pixeloven-tasks test:watch"
}