UNPKG

1.52 kBMarkdownView Raw
1# @pixeloven/tasks
2
3> Pixel Oven tasks
4
5See our website [pixeloven-tasks](https://github.com/pixeloven/pixeloven) for more information or the [issues](https://github.com/pixeloven/pixeloven) associated with this package.
6
7## Install
8
9Using npm:
10
11```sh
12npm install --save-dev @pixeloven/tasks
13```
14
15or using yarn:
16
17```sh
18yarn add --dev @pixeloven/tasks
19```
20
21## Usage
22> Note this package was originally created to encapsulate common dependecies and scripts used during the development of PixelOven. For a full public CLI experience please see [@pixeloven/cli](https://www.npmjs.com/package/@pixeloven/cli).
23
24When making a libraries similar to the ones seen in [PixelOven](https://github.com/pixeloven/pixeloven) we can use this simple wrapper for common tasks like linting, compiling and testing.
25
26Example of usage in `package.json`
27```json
28 "scripts": {
29 "prepublishOnly": "yarn lint && yarn test && yarn compile",
30 "clean": "pixeloven-tasks clean",
31 "compile": "pixeloven-tasks compile:ts",
32 "precompile": "pixeloven-tasks compile:clean",
33 "document": "pixeloven-tasks document:ts src",
34 "predocument": "pixeloven-tasks document:clean",
35 "lint": "yarn lint:ts",
36 "lint:ts": "pixeloven-tasks lint:ts src/**/*.{ts,tsx}",
37 "pretest": "pixeloven-tasks test:clean",
38 "pretty": "pixeloven-tasks pretty src/**/*.{ts,tsx}",
39 "pretty:ts": "pixeloven-tasks pretty:ts src/**/*.{ts,tsx}",
40 "test": "pixeloven-tasks test --color --coverage",
41 "test:watch": "pixeloven-tasks test:watch"
42 }
43```
\No newline at end of file