@plateui/toolkit
v0.2.2
Published
Tooling set for functionary applications
Downloads
1
Readme
@plateui/toolkit
Tooling set for functionary applications
Usage
Install as a dependency
# if you use yarn
yarn add -D @plateui/toolkit
# or if you use npm
npm i --save-dev @plateui/toolkit
CLI
A binary executable can be invoked as an npm script: plateui-toolkit
.
create-dotenv-file
Create a local .env
file based on an example file
plateui-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 '@plateui/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
},
);