1.0.0 • Published 6 years ago
npm-module-templ v1.0.0
npm module template
- 👩💻Focus on the logic. Don't waste your time setting up environment!
- ✍️Write code like it's 2020 using ES6 syntax. The code will be transpiled and minified before deployment.
- 🛠Test: use Jest to cover your module with unit tests.
Сomplies with GitHub best practices:
- 🔑
LICENSEdescribes the license agreement. This template uses MIT license - 📁
.editorconfigsets up code style rules across all popular code redactors - ⚖️
.gitignoreand.npmignore: splits up the code into 2 chunks: sources will be uploaded to github, transpiled and minified files - tonpm - 🔬
.eslintrclists eslint settings - 🏭
.babelrcdescribes ES6->ES5 rules
Usage
Create your own module in 3 simple steps:
Press "Use this template" button and type a name of your new module
Add some fancy logic to
srcfolderRun
yarn buildto build the module and publish it usingnpm publish
Optional:
- describe you module's API in the README.md file
- add unit tests
1.0.0
6 years ago