2.0.2 • Published 10 years ago

nfe v2.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

#前端模块化(AMD)开发框架

基于CMD的编译工具请参考:https://github.com/opedfe/nfe.git (npm install nfe@0.0.3)

###v2.0.0

  • 模块化支持:esl.js, require.js
  • 支持模块化依赖自动合并,如:require('./view?_inline'); ###v2.0.1
  • 增加对字体文件的发布 ###v2.0.2
  • libs目录下非模块化文件支持图片、css等

##安装

npm install -g nfe
nfe -v

##使用

nfe start server [-p 8080]
nfe release

##页面结构

####编译前

- root
- | - src
- | - | - modA
- | - | - index.html
- | - libs
- | - dep (模块化文件,不需要封装)

####编译后

- root
- | - template
- | - | - index.html
- | - static
- | - | - js
- | - | - css
- | - | - libs
- | - | - dep

更多内容请参考FIS官网:http://fis.baidu.com/