@humblebee/toolkit
v0.4.0
Published
Tooling set for humblebee applications
Downloads
21
Readme
@humblebee/toolkit
Tooling set for humblebee applications
Usage
Install as a dependency
# if you use yarn
yarn add -D @humblebee/toolkit
# or if you use npm
npm i --save-dev @humblebee/toolkit
CLI
A binary executable can be invoked as an npm script: humblebee-toolkit
.
create-dotenv-file
Create a local .env
file based on an example file
humblebee-toolkit create-dotenv-file --example .env.example
Exports
This package also provides some centralised default configurations for e.g. webpack and babel.
// webpack.config.babel.js
import { getWebpack4Configuration } from '@humblebee/toolkit';
export default getWebpack4Configuration(
'production', // or 'development'
{
buildFolder: path.resolve(__dirname, 'build'), // generated build folder
htmlTemplate: path.resolve(__dirname, 'public/index.html'), // entry point for HtmlWebpackPlugin
},
{
// any custom configuration that will be merged using webpack-merge
},
);