https://github.com/cdaringe/shizam
tiny opinionated helper to help scaffold your npm/node project with some practical hooks/scripts ⚡️
https://github.com/cdaringe/shizam
Last synced: 8 months ago
JSON representation
tiny opinionated helper to help scaffold your npm/node project with some practical hooks/scripts ⚡️
- Host: GitHub
- URL: https://github.com/cdaringe/shizam
- Owner: cdaringe
- Created: 2016-05-19T19:19:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:52:04.000Z (over 2 years ago)
- Last Synced: 2025-02-18T06:08:49.517Z (over 1 year ago)
- Language: JavaScript
- Size: 572 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shizam 🔮⚡️

opinionated project scaffolding for **libraries**. one `yarn add --dev shizam` install automatically wires:
- `lint` scripts, via `standard`
- `lint` & `test` task runs on git precommit, using `husky`
- automatic `jsdoc` publishing, post-package publish
## why
writing boilerplate code over and over stinks. many of us start new projects _all the time_ and want to easily distribute the structure and methodologies used in all of our projects. this tiny package simply helps scaffold a common project structure and best of best-known-methods via npm scripts.
"ugh, what's the problem with just doing these things on my own?"
nothing! i, however, found that [xkcd justified the effort](http://imgs.xkcd.com/comics/is_it_worth_the_time.png). it's great to start a project, install _just one package_ (this one), and automatically have a basic set of scripts and tooling ready-to-roll. #not-a-framework.
## how
specifically, this package does the following to your project:
- install common npm scripts (e.g. `"test"`, `"prepublish"`, etc)
- installs common pre-commit hooks (e.g. lint, test)
- installs packages that are required for the above tasks to be successful
this package lets you modify the default scripts to your own requirements post-install. on re-install or update, it will NOT squash your modified scripts. it will, however, continue to install dev dependencies that it thinks are mandatory on subsequent installs.
## what opinions are assumed?
this module scaffolds the following topics using the following packages:
- git precommit hooks (`test` & `lint`). bring your own `test: ...` script.
- linting (`standard`)
- docs
- doc generation (`jsdoc`)
- doc publishing to github.io (`gh-pages`, publishes on `npm postpublish`)
required devDependencies are installed whenever `shizam` is installed/updated/etc _iff_ they are missing.
## usage
`yarn add --dev shizam`
everything else happens automatically! and that's the point :)
## contributing
go for it.