Some tool functions used in the Nodejs environment.
const path = require('path')
const { afterBuild } = require('sp-editor/nodejs-helpers')
const pkg = require('../package.json')
afterBuild(path.resolve(__dirname, '../dist'), pkg, true)
Handler function after build
Param | Types | Required | Description |
---|---|---|---|
distDir | string |
yes | The directory where the processed files are located. |
pkg | object |
yes | package.json |
needMoveToDist | boolean |
no | optional parameter. It's true, will be move build files to the root dist directory. |
- @returns
void
type StringObject = Record<string, string | StringObject>
Docs | Description | Url |
---|---|---|
Editor | class Editor documentation, main module of SpEditor. | /docs/Editor.md |
EventEmitter | class EventEmitter documentation. | /docs/EventEmitter.md |
SpEditor | class SpEditor documentation. | /docs/SpEditor.md |
nodejs-helpers | nodejs-helpers documentation. | /docs/nodejs-helpers.md |
Others | Other documentations. | /docs |
MIT License © 2018-Present Capricorncd.