Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBackKom committed Sep 24, 2015
0 parents commit 711bf41
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/rong
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('../index.js').cli.run(process.argv);
19 changes: 19 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var rong = module.exports = require('fis');

fis.cli.name = 'rong';
fis.cli.info = fis.util.readJSON(__dirname + '/package.json');

fis.config.set('modules.parser.css', 'less');
fis.config.set('settings.optimizer.png-compressor.type', 'pngquant');
fis.config.set('settings.postprocessor.jswrapper.type', 'amd');
var time = fis.util.md5(Date.now() + '', 9);
var helper = function(obj){
fis.util.map(obj, function(id, res){
if(res.type == 'js' || res.type == 'css' || res.type == 'png')
res.uri = res.uri + '?t=' + time;
});
};
fis.config.set('modules.postpackager', function(ret){
helper(ret.map.res);
helper(ret.map.pkg);
});
44 changes: 44 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "rong",
"version": "0.3.0",
"description": "基于fis的前端解决方案",
"main": "index.js",
"bin": {
"rong": "bin/rong",
"fis-rong": "bin/rong"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MrBackKom/fis-rong.git"
},
"keywords": [
"rong",
"fis",
"fis-rong"
],
"author": {
"name": "mrbackkom"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/MrBackKom/fis-rong/issues"
},
"homepage": "https://github.com/MrBackKom/fis-rong",
"dependencies": {
"fis": "^1.9.28",
"fis-parser-less": "^0.1.3",
"fis-parser-utc": "0.0.2",
"fis-postpackager-autoload": "0.0.20",
"fis-postpackager-simple": "0.0.26",
"fis-postprocessor-require-async": "0.0.9",
"fis-spriter-csssprites": "0.3.0"
},
"gitHead": "77dd2f688c7b1f5b23a60ae6d72dca8327edbb31",
"readme": "ERROR: No README data found!",
"_id": "[email protected]",
"_shasum": "da576357d936a20bbec8454be21c89b9b734c150",
"_from": "rong@*"
}

0 comments on commit 711bf41

Please sign in to comment.