
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
基于fis3的纯前端工程自动化工具
Linux
$npm install -g reasy
$npm install -g web-debug
;or use git
$git clone https://github.com/wEasyTeam/reasy
$cd reasy
$./reasy-install.sh
Windows
>npm install -g reasy
>npm install -g web-debug
;or use git
>git clone https://github.com/wEasyTeam/reasy
>cd reasy
>reasy-install.bat
如
npm方式安装失败,可以下载安装脚本进行安装:[Linux安装脚本] [Windows安装脚本] 将文件保存至本机后执行即可进行自动安装。
详见: FIS3官网
注:建议将默认配置文件命名为
reasy-conf.js,与fis3的配置文件fis-conf.js区分开来。
为了确保一致性,reasy对FSI3的API进行了增量拓展。
module.exports导出现有的内置规则有:
-l或--lintreasy-postpackager-qunit,即npm install -g reasy-postpackager-qunit你也可以自己编写规则放置在工程目录下的rules目录下,如:workdir/myrule.js,则调用方法为:reasy.extend('myrule', args1, args2)。
rule文件书写示例:
module.exports = function(args1, args2) {
return this.match('**', {
// ... 写法请参考FIS3配置文件写法
});
};
为了减少不必要的配置文件的书写,本工具在release命令上拓展了一个-R(或--rules)命令,使用方法示例: reasy release -R parse,compress,md5 -d ../output 。表示编译时会将parse, compress, 和 md5规则应用上去,而不需要编写reasy-conf.js
reasy没有使用FIS3内置的fis server做为web服务器,原因主要有:
fis3 release -L 命令会将liveload.js加入页面,开发阶段可能会打调试版的代码部署至服务器,导致liveload.js无法被用户加载而出错。web-debug是在做为本地服务器动态解析时自动加入liveload.js,并不修改本地代码。web-debug集成了对移动端的调试功能,可以更方便地进行移动页面开发使用时在工程目录执行
web-debug 8080 ./dist即可。
reasy前端自动化工具基于FIS3构建,并在其基础上对纯前端开发模式进行了一定的优化,使用更为轻便。主要特点有:
对前端默认的编译插件集进行了打包,实现一键安装即可使用
实现配置继承,并对常用的功能(如压缩,md5,sass编译,模版编译等)进行了封装,可以在一定程度上减少配置文件的书写量
增加了-m配置实现无配置实现基础的压缩,md5等功能
更改FIS3内置Server为web-debug,增加了移动端调试功能
更多功能正在进一步添加...
FAQs
An automatical tool for Front-end constructed by fis3
We found that reasy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.