thipages/jsbuild
Composer 安装命令:
composer require thipages/jsbuild
包简介
Automate js build
README 文档
README
Automate js build
installation
composer require thipages/jsbuild
Usage
- Create a jsbuild.json file by hand or with this helper
use thipages\jsbuild\JSBuild; require('./vendor/autotload.php'); JSBuild::writeBuildModel();
or execute php -r "require './vendor/autoload.php';thipages\jsbuild\JSBuild::writeBuildModel();"
- Create rollup config files folder and package.json from a jsbuild.json file
use thipages\jsbuild\JSBuild; require('./vendor/autotload.php'); $builder=new JSBuild(); $builder->writeBuild();
-
update package.json dependencies if any
-
Create library entry point as ./esm/index.js
-
execute npm install
-
execute npm run build
This will create three root files
- index.js (esm)
- index.min.js (esm minified)
- min.js (iife minified)
Note : php script (point 2) can not be reused (no update process yet)
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-03