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

0.0.17 • Public • Published

Usage

npm i @icreate/package

Features

  • Package:打包类

Importing library

You can import the generated bundle to use the whole library generated by this starter:

import Package from '@icreate/package'
const Package = require('@icreate/package')

Package

  /**
   * @description: 打包
   * @param {dir} 目录
   * @param {pkgFile} 包文件
   */
  packageSync(dir: string, pkgFile: string): Promise<void>

  /**
   * @description: 合并脚本
   * @param {dir} 目录
   * @param {scriptFile} 脚本文件
   */
  scriptSync(dir: string, scriptFile: string): Promise<void>

  /**
   * @description:写入数据到指定文件
   * @param {file} 文件路径
   * @param {data} 数据对象
   */
  writeSync(file: string, data: Object): Promise<void>

  /**
   * @description:处理权限
   * @param {routes} 路由数组
   */
  permission(routes: Array<Route>): void

Readme

Keywords

none

Package Sidebar

Install

npm i @icreate/package

Weekly Downloads

2

Version

0.0.17

License

MIT

Unpacked Size

111 kB

Total Files

13

Last publish

Collaborators

  • xyzhang59
  • liqing1014
  • zhangmenglei
  • zer001
  • jiangbing
  • zhu_enrui
  • flown
  • liuzk
  • hanmeng_mon
  • yujian01
  • z5y
  • dingwei1
  • restlife1994
  • c_zhu
  • wenbei