0.0.17 • Published 2 months ago
@icreate/package v0.0.17
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
0.0.17
2 months ago
0.0.16
5 months ago
0.0.15-beta.1
1 year ago
0.0.14-beta.1
2 years ago
0.0.15
2 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago
0.0.0
3 years ago