@humblebee/toolkit
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

@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
  },
);

Readme

Keywords

Package Sidebar

Install

npm i @humblebee/toolkit

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

11.7 kB

Total Files

18

Last publish

Collaborators

  • humblebee-admin
  • humblebee-hive
  • flosch