Extract variables from handlebars
Usage
git clone https://github.com/a-owl/handlebars-variables-extract.git YOURFOLDERNAMEcd YOURFOLDERNAME # Run npm install and write your library name when asked. That's all! npm install handlebars-variables-extract
;;
like JSON schema https://json-schema.org/
Contributing
NPM scripts
npm t
: Run test suitenpm start
: Runnpm run build
in watch modenpm run test:watch
: Run test suite in interactive watch modenpm run test:prod
: Run linting and generate coveragenpm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't 😉)
Excluding peerDependencies
On library development, one might want to set some peer dependencies, and thus remove those from the final bundle. You can see in Rollup docs how to do that.
Good news: the setup is here for you, you must only include the dependency name in external
property within rollup.config.js
. For example, if you want to exclude lodash
, just write there external: ['lodash']
.
This project refer to barhandles.
Contributions of any kind are welcome!