1.0.0 • Published 2 years ago
@hadeshe93/builder-core v1.0.0
A core abstract builder for adapting different builders.
Installation
# install builder-core
$ npm install @hadeshe93/builder-core --save-dev
# install builder-webpack or other builders
$ npm install @hadeshe93/builder-webpack --save-dev
Usage
import BuilderCore from '@hadeshe93/builder-core';
import BuilderWebpack from '@hadeshe93/builder-webpack';
// initialize builder
const builder = new BuilderCore({});
// initialize webpackBuilder
const webpackBuilder = new BuilderWebpack();
// register
builder.registerBuilder('webpack', webpackBuilder);
// create excutore
const excute = builder.createExcutor({
mode: 'development',
builderName: 'webpack',
projectPath: '/path/to/xx',
pageName: 'demo1',
projectConfig: {
page: {
title: 'Show',
description: '',
useFlexible: true,
useDebugger: true,
},
build: {
fePort: 3000,
publicPath: '/',
},
middlewares: [
// middleware and params
// actually, @hadeshe93/wpconfig-mw-vue3 doesn`t need params. just for example
['@hadeshe93/wpconfig-mw-vue3', {}]
],
}
});
async function someOperation() {
// apply excutor in appropriate time
await excute();
}
1.0.0
2 years ago
0.2.11
2 years ago
0.2.10
2 years ago
0.2.7
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.2.6
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.1.2
3 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.1
3 years ago