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

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

    Install

    npm i @humblebee/toolkit

    DownloadsWeekly Downloads

    13

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    14.9 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar