Package Exports
- @topazdom/bido-nodejs-package-toolkit
- @topazdom/bido-nodejs-package-toolkit/dist/main.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@topazdom/bido-nodejs-package-toolkit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Bido Node.js Package Toolkit
Starter Project for a Node.js application using TypeScript with all boring stuff already configured.
Overview
Starter project for Node.js applications using TypeScript with test, lint, code formatter already configured.
Check the tooling section for more details.
The preferable way to use this boilerplate is using npx command. You can use npm init too.
Use the following commands to bootstrap a new project:
NPX
npx bido-node-package --no --app=your-appNPM Init
npm init nodejs-ts -- --app=your-appWithout parameters, the project will be created on a folder my-app in the same directory where you executed the command. All parameters available:
--destination=<FOLDER_DESTINATION> Defaults to the current directory
--app=<APP_NAME> Defaults to my-appThe final folder will the parameter destination, if provided, concatenated with the parameter app.
ESM
The project template now uses ESM by default.
Docker
Minimalist docker image generation. Check this Dockerfile.
Local Dev Environment
Run make up to spin up a local environment with Docker Compose.
Check this docker-compose.yml for more details.
Tooling
- ESM
- TypeScript
- Jest
- EsLint
- Husky
- Commit Lint
- Lint Staged
- Prettier
- Nodemon
- Docker | Docker Compose
License
This project is MIT Licensed.
Remove everything from here and above
My Package Name
<> My Awesome Node.js Module built with TypeScript and effective tooling foundations. <>
My awesome module
Install
npm install my-package-nameUsage
import { myPackage } from 'my-package-name';
myPackage('hello');
//=> 'hello from my package'API
myPackage(input, options?)
input
Type: string
Lorem ipsum.
options
Type: object
postfix
Type: string
Default: rainbows
Lorem ipsum.
License
This project is MIT Licensed.