Last active
December 17, 2015 12:29
-
-
Save czy88840616/5610198 to your computer and use it in GitHub Desktop.
持久化文档
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "rulePool":{ | |
| "81c1ed68-fd17-4796-ae50-4ee64dc2fe01":{ | |
| "title":"规则名字", | |
| "pattern":"规则匹配内容", | |
| "target":"规则替换内容", | |
| "type":"0 普通字符串和正则 1 本地路径和文件 2 http的url 10 组合规则" | |
| }, | |
| "01e21deb-8208-4697-9e08-830d9b9a2119":{ | |
| "title":"kissy去min", | |
| "pattern":"kissy-min", | |
| "target":"kissy", | |
| "type":0 | |
| }, | |
| "ae124aca-3734-4595-8837-604b30dcca88":{ | |
| "title":"本地路径替换", | |
| "pattern":"/apps/tradeface", | |
| "target":"D:/project/tradeface/assets", | |
| "type":1 | |
| }, | |
| "4f447581-2449-4d68-93f2-48ab47b6a2ad":{ | |
| "title":"组合规则1", | |
| "groups":["81c1ed68-fd17-4796-ae50-4ee64dc2fe01","01e21deb-8208-4697-9e08-830d9b9a2119"], | |
| "type":10 | |
| } | |
| }, | |
| "solutions":{ | |
| "GLOBAL":{ | |
| "title":"全局方案", | |
| "rules":[ | |
| { | |
| "id":"81c1ed68-fd17-4796-ae50-4ee64dc2fe01", | |
| "enable":true, | |
| "outputCharset":"gbk" | |
| }, | |
| { | |
| "id":"ae124aca-3734-4595-8837-604b30dcca88", | |
| "enable":false, | |
| "outputCharset":"utf-8" | |
| } | |
| ] | |
| }, | |
| "2fbd1095-5f30-4e4f-87be-1fa354aa823c":{ | |
| "title":"自定方案1", | |
| "rules":[ | |
| { | |
| "id":"81c1ed68-fd17-4796-ae50-4ee64dc2fe01", | |
| "enable":true, | |
| "outputCharset":"" | |
| } | |
| ] | |
| } | |
| }, | |
| "use":{ | |
| "127.0.0.1":"2fbd1095-5f30-4e4f-87be-1fa354aa823c" | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这里有3层,单个规则,id为guid,单个规则的组合成一个规则组,规则组隶属于一个解决方案