承接 thipages/jsbuild 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thipages/jsbuild

Composer 安装命令:

composer require thipages/jsbuild

包简介

Automate js build

README 文档

README

Automate js build

installation

composer require thipages/jsbuild

Usage

  1. 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();"

  1. 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();
  1. update package.json dependencies if any

  2. Create library entry point as ./esm/index.js

  3. execute npm install

  4. 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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固