Comparing version 1.6.8 to 1.7.1
@@ -0,1 +1,28 @@ | ||
## 1.7.1 / Tue Feb 18 2014 | ||
> 升级fis-kernel至2.0.0 | ||
* 内核支持事件监听和派发(仅增加接口,尚未派发任何事件): | ||
```javascript | ||
fis.emitter.on('compile.optimier', function(file){ | ||
//TODO | ||
}); | ||
fis.emitter.emit('release', file); | ||
``` | ||
* 支持多种前缀的插件调用 | ||
```javascript | ||
fis.require.prefixes = [ 'your_package_name', 'fis' ]; | ||
``` | ||
配置后,fis会优先尝试加载 ``your_package_name-xxx`` 插件,后尝试加载 ``fis-xxx`` 插件,此功能用于fis的包装产品中。 | ||
* 包装器负责指定 ``--help`` 需要显示帮助的命令,例如: | ||
```javascript | ||
fis.cli.help.commands = [ 'release', 'server', 'install' ]; | ||
``` | ||
## 1.6.8 / Wed Feb 12 2014 | ||
@@ -2,0 +29,0 @@ |
40
fis.js
@@ -44,28 +44,16 @@ /* | ||
var content = [ | ||
'', | ||
' Usage: ' + fis.cli.name + ' <command>', | ||
'', | ||
' Commands:', | ||
'' | ||
], | ||
prefix = 'fis-command-', | ||
prefixLen = prefix.length; | ||
//built-in commands | ||
var deps = { | ||
'fis-command-release' : true, | ||
'fis-command-install' : true, | ||
'fis-command-server' : true | ||
}; | ||
//from package.json dependencies | ||
fis.util.merge(deps, fis.cli.info.dependencies); | ||
//traverse | ||
fis.util.map(deps, function(name){ | ||
if(name.indexOf(prefix) === 0){ | ||
name = name.substring(prefixLen); | ||
var cmd = fis.require('command', name); | ||
name = fis.util.pad(cmd.name || name, 12); | ||
content.push(' ' + name + (cmd.desc || '')); | ||
} | ||
'', | ||
' Usage: ' + fis.cli.name + ' <command>', | ||
'', | ||
' Commands:', | ||
'' | ||
]; | ||
fis.cli.help.commands.forEach(function(name){ | ||
var cmd = fis.require('command', name); | ||
name = cmd.name || name; | ||
name = fis.util.pad(name, 12); | ||
content.push(' ' + name + (cmd.desc || '')); | ||
}); | ||
content = content.concat([ | ||
@@ -83,2 +71,4 @@ '', | ||
fis.cli.help.commands = [ 'release', 'install', 'server' ]; | ||
//output version info | ||
@@ -85,0 +75,0 @@ fis.cli.version = function(){ |
{ | ||
"name" : "fis", | ||
"description" : "front-end integrated solution.", | ||
"version" : "1.6.8", | ||
"version" : "1.7.1", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -28,3 +28,3 @@ "homepage" : "http://fis.baidu.com/", | ||
"fis-kernel" : "1.9.9", | ||
"fis-kernel" : "2.0.0", | ||
@@ -31,0 +31,0 @@ "fis-command-install" : "0.0.7", |
@@ -16,3 +16,3 @@ ![fis logo](http://fis.baidu.com/static/docs/img/logo_3b5cdda.png) | ||
* 跨平台支持win、mac、linux等系统 | ||
* 无内置规范,可配置 [开发和部署规范](https://github.com/fis-dev/fis/wiki/配置API#roadmappath),用于满足任何前后端框架的部署需求 | ||
* 无内置规范,可配置 [开发和部署规范](https://github.com/fis-dev/fis/wiki/配置API#wiki-roadmappath),用于满足任何前后端框架的部署需求 | ||
* 对html、js、css实现 [三种语言能力](https://github.com/fis-dev/fis/wiki/三种语言能力) 扩展,解决绝大多数前端构建问题 | ||
@@ -39,5 +39,5 @@ * 支持二次包装,比如 [spmx](github.com/fouber/spmx)、 [phiz](https://github.com/fouber/phiz/)、 [chassis](https://github.com/xspider/fis-chassis),对fis进行包装后可内置新的插件、配置,从而打造属于你们团队的自己的开发工具 | ||
* 三条命令,满足你的所有开发需求: | ||
* [fis install <name>](https://github.com/fis-dev/fis/wiki/快速上手#fis-install-name) | ||
* [fis release [options]](https://github.com/fis-dev/fis/wiki/快速上手#fis-release-options) | ||
* [fis server <command> [options]](https://github.com/fis-dev/fis/wiki/快速上手#fis-server-command-options) | ||
* [fis install <name>](https://github.com/fis-dev/fis/wiki/快速上手#wiki-fis-install-name) | ||
* [fis release [options]](https://github.com/fis-dev/fis/wiki/快速上手#wiki-fis-release-options) | ||
* [fis server <command> [options]](https://github.com/fis-dev/fis/wiki/快速上手#wiki-fis-server-command-options) | ||
* 试手样例 | ||
@@ -65,21 +65,21 @@ * [纯前端组件化方案](https://github.com/fouber/modjs-todo-demo/) | ||
* 系统配置 | ||
* [project.charset](https://github.com/fis-dev/fis/wiki/配置API#projectcharset) | ||
* [project.md5Length](https://github.com/fis-dev/fis/wiki/配置API#projectmd5length) | ||
* [project.md5Connector](https://github.com/fis-dev/fis/wiki/配置API#projectmd5connector) | ||
* [project.include](https://github.com/fis-dev/fis/wiki/配置API#projectinclude) | ||
* [project.exclude](https://github.com/fis-dev/fis/wiki/配置API#projectexclude) | ||
* [project.fileType.text](https://github.com/fis-dev/fis/wiki/配置API#projectfiletypetext) | ||
* [project.fileType.image](https://github.com/fis-dev/fis/wiki/配置API#projectfiletypeimage) | ||
* [project.charset](https://github.com/fis-dev/fis/wiki/配置API#wiki-projectcharset) | ||
* [project.md5Length](https://github.com/fis-dev/fis/wiki/配置API#wiki-projectmd5length) | ||
* [project.md5Connector](https://github.com/fis-dev/fis/wiki/配置API#wiki-projectmd5connector) | ||
* [project.include](https://github.com/fis-dev/fis/wiki/配置API#wiki-projectinclude) | ||
* [project.exclude](https://github.com/fis-dev/fis/wiki/配置API#wiki-projectexclude) | ||
* [project.fileType.text](https://github.com/fis-dev/fis/wiki/配置API#wiki-projectfiletypetext) | ||
* [project.fileType.image](https://github.com/fis-dev/fis/wiki/配置API#wiki-projectfiletypeimage) | ||
* 插件配置 | ||
* [modules.parser](https://github.com/fis-dev/fis/wiki/配置API#modulesparser) | ||
* [modules.preprocessor](https://github.com/fis-dev/fis/wiki/配置API#modulespreprocessor) | ||
* [modules.postprocessor](https://github.com/fis-dev/fis/wiki/配置API#modulespostprocessor) | ||
* [modules.lint](https://github.com/fis-dev/fis/wiki/配置API#moduleslint) | ||
* [modules.test](https://github.com/fis-dev/fis/wiki/配置API#modulestest) | ||
* [modules.optimizer](https://github.com/fis-dev/fis/wiki/配置API#modulesoptimizer) | ||
* [modules.prepackager](https://github.com/fis-dev/fis/wiki/配置API#modulesprepackager) | ||
* [modules.packager](https://github.com/fis-dev/fis/wiki/配置API#modulespackager) | ||
* [modules.spriter](https://github.com/fis-dev/fis/wiki/配置API#modulesspriter) | ||
* [modules.postpackager](https://github.com/fis-dev/fis/wiki/配置API#modulespostpackager) | ||
* [settings](https://github.com/fis-dev/fis/wiki/配置API#settings) | ||
* [modules.parser](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulesparser) | ||
* [modules.preprocessor](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulespreprocessor) | ||
* [modules.postprocessor](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulespostprocessor) | ||
* [modules.lint](https://github.com/fis-dev/fis/wiki/配置API#wiki-moduleslint) | ||
* [modules.test](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulestest) | ||
* [modules.optimizer](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulesoptimizer) | ||
* [modules.prepackager](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulesprepackager) | ||
* [modules.packager](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulespackager) | ||
* [modules.spriter](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulesspriter) | ||
* [modules.postpackager](https://github.com/fis-dev/fis/wiki/配置API#wiki-modulespostpackager) | ||
* [settings](https://github.com/fis-dev/fis/wiki/配置API#wiki-settings) | ||
* 内置插件运行配置 | ||
@@ -92,10 +92,10 @@ * [settings.postprocessor.jswrapper](https://github.com/fis-dev/fis/wiki/%E9%85%8D%E7%BD%AEAPI#settingspostprocessorjswrapper) | ||
* 目录规范与域名配置 | ||
* [roadmap.path](https://github.com/fis-dev/fis/wiki/配置API#roadmappath) | ||
* [roadmap.ext](https://github.com/fis-dev/fis/wiki/配置API#roadmapext) | ||
* [roadmap.domain](https://github.com/fis-dev/fis/wiki/配置API#roadmapdomain) | ||
* [roadmap.domain.image](https://github.com/fis-dev/fis/wiki/配置API#roadmapdomainimage) | ||
* [roadmap.path](https://github.com/fis-dev/fis/wiki/配置API#wiki-roadmappath) | ||
* [roadmap.ext](https://github.com/fis-dev/fis/wiki/配置API#wiki-roadmapext) | ||
* [roadmap.domain](https://github.com/fis-dev/fis/wiki/配置API#wiki-roadmapdomain) | ||
* [roadmap.domain.image](https://github.com/fis-dev/fis/wiki/配置API#wiki-roadmapdomainimage) | ||
* 部署配置 | ||
* [deploy](https://github.com/fis-dev/fis/wiki/配置API#deploy) | ||
* [deploy](https://github.com/fis-dev/fis/wiki/配置API#wiki-deploy) | ||
* 打包配置 | ||
* [pack](https://github.com/fis-dev/fis/wiki/配置API#pack) | ||
* [pack](https://github.com/fis-dev/fis/wiki/配置API#wiki-pack) | ||
@@ -112,2 +112,2 @@ ## 高级使用 | ||
* [spmx](https://github.com/fouber/spmx) 通过包装fis得到适应seajs架构的集成解决方案 | ||
* [sublime plugin](https://github.com/yuanfang829/fis-sublime-command) 支持FIS编译的sublime插件,可以替代watch功能 | ||
* [sublime plugin](https://github.com/yuanfang829/fis-sublime-command) 支持FIS编译的sublime插件,可以替代watch功能 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35233
109
111
+ Addedfis-kernel@2.0.0(transitive)
- Removedfis-kernel@1.9.9(transitive)
Updatedfis-kernel@2.0.0