Reusable plop
tasks for repetitive actions.
- Clone tasks somewhere
git clone https://github.com/alextheartisan/tasks.git <some-dir>
- Install
plop
globally
npm install -g plop
- Add
powershell
alias (or unix equivalent)
# For example using `glop` as a name
function glop {
plop --plopfile <some-dir>/plop.config.js --dest ($pwd).path $args
}
Adds Prettier to the project
- Modifies
package.json
file- Adds
prettier
task - Sets
prettier
field to@alextheartisan/prettier-config
- Adds
Adds TypeScript support to the project
- Adds
tsconfig.json
file that extends@alextheartisan/typescript-config
- Adds basic alias support
- Installs
typescript
,@alextheartisan/typescript-config
Adds Jest support
- Modifies
package.json
file- Adds
test
andtest:watch
tasks - Sets
jest
field to{ preset: "@alextheartisan/jest-config" }
- Adds
- Installs
jest
,ts-jest
,@types/jest
,@alextheartisan/jest-config
Allows to create a module inside src
directory
Allows to create a component inside a specified module
Scaffolds a project for using with Next.js
- Generates a file structure
- Installs
next
,react(-dom)@17
,normalize.css
,sass
and corresponding types
todo