Skip to content

Commit 711bf41

Browse files
committed
init
0 parents  commit 711bf41

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

bin/rong

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require('../index.js').cli.run(process.argv);

index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var rong = module.exports = require('fis');
2+
3+
fis.cli.name = 'rong';
4+
fis.cli.info = fis.util.readJSON(__dirname + '/package.json');
5+
6+
fis.config.set('modules.parser.css', 'less');
7+
fis.config.set('settings.optimizer.png-compressor.type', 'pngquant');
8+
fis.config.set('settings.postprocessor.jswrapper.type', 'amd');
9+
var time = fis.util.md5(Date.now() + '', 9);
10+
var helper = function(obj){
11+
fis.util.map(obj, function(id, res){
12+
if(res.type == 'js' || res.type == 'css' || res.type == 'png')
13+
res.uri = res.uri + '?t=' + time;
14+
});
15+
};
16+
fis.config.set('modules.postpackager', function(ret){
17+
helper(ret.map.res);
18+
helper(ret.map.pkg);
19+
});

package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "rong",
3+
"version": "0.3.0",
4+
"description": "基于fis的前端解决方案",
5+
"main": "index.js",
6+
"bin": {
7+
"rong": "bin/rong",
8+
"fis-rong": "bin/rong"
9+
},
10+
"scripts": {
11+
"test": "echo \"Error: no test specified\" && exit 1"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/MrBackKom/fis-rong.git"
16+
},
17+
"keywords": [
18+
"rong",
19+
"fis",
20+
"fis-rong"
21+
],
22+
"author": {
23+
"name": "mrbackkom"
24+
},
25+
"license": "MIT",
26+
"bugs": {
27+
"url": "https://github.com/MrBackKom/fis-rong/issues"
28+
},
29+
"homepage": "https://github.com/MrBackKom/fis-rong",
30+
"dependencies": {
31+
"fis": "^1.9.28",
32+
"fis-parser-less": "^0.1.3",
33+
"fis-parser-utc": "0.0.2",
34+
"fis-postpackager-autoload": "0.0.20",
35+
"fis-postpackager-simple": "0.0.26",
36+
"fis-postprocessor-require-async": "0.0.9",
37+
"fis-spriter-csssprites": "0.3.0"
38+
},
39+
"gitHead": "77dd2f688c7b1f5b23a60ae6d72dca8327edbb31",
40+
"readme": "ERROR: No README data found!",
41+
42+
"_shasum": "da576357d936a20bbec8454be21c89b9b734c150",
43+
"_from": "rong@*"
44+
}

0 commit comments

Comments
 (0)