yanps v5.0.7
yanps
yet another node project starter (for typescript projects)
this is opinionated af and frankly there really isn't a whole lot of room for customization
dude, why?
configuring things manually every time (and having to look them up) is annoying, so this tool just creates a new typescript project loaded with a linter/formatter/tester configuration that works perfectly with vscode autosave (code fixing for fixable errors in eslint and formatting)
you'll need to inform:
- the name of the project (which will define to folder created in the current path)
- whether you're using react or not (mainly for eslint config)
- your packagame manager for dependency installation; it'll list whatever it finds in your path if you have anything other than npm installed
how do i run it?
using npx/pnpx is just the civilized, superior choice; you could also install it globally but why would you?
yarn create
doesn't work for obvious reasons
// executing it directly
npx yanps // npm
pnpx yanps // pnpm
// being weird and installing it globally
npm i -g yanps // npm
pnpm i -g yanps // pnpm
yarn global add yanps // yarn
but really, what's special about this?
it uses Airbnb's excellent JavaScript guide and ESLint to try and catch/prevent errors during coding
it also uses Prettier to try and set you in the righteous path of code cleanliness, using a sane default
Jest is the tool used for testing, but you gotta setup actual tests and a test script in package.json yourself
for example, if you use 4 spaces instead of 2, like a good programmer, prettier will help you out and prevent you from pushing embarrassing code
in the end, eslint auto fix and prettier auto format will just work on save
i see a test fixture but it's... just a placeholder?
yes
that's it?
that's it
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago