ykit
高可用高扩展前端开发工具
Last updated 4 months ago by ymfe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ykit 
SYNC missed versions from official npm registry.

Ykit CircleCI

Ykit 是一个基于 Webpack 的打包工具,它利用插件机制封装了各种 JavaScript 应用的配置,选择和安装合适的插件即可开始构建你的 App。Ykit 内置了各种优化和辅助工具,让你的应用开发更稳定、高效。

特性

  1. 包含 hot reloading 本地 server,无需在项目中配置
  2. 比 Webpack 更快的编译打包速度
  3. 通过插件可快速定制开发环境
  4. 内置 eslint 和代理工具

和 Webpack 性能对比

本地 server 访问页面资源加载和页面渲染时间:

资源数 Webpack 耗时 Ykit 耗时
3 assets 9s 5s
10 assets 18s 5s
20 assets 33s 5s

build(包含压缩)时间:

资源数 Webpack 耗时 Ykit 耗时
3 assets 10s 7s
10 assets 20s 16s
20 assets 38s 32s

测试工程:https://github.com/roscoe054/ykit-benchmark

快速开始

  1. npm install ykit -g
  2. mkdir ykit-app && cd ykit-app
  3. ykit init
  4. cd .. && ykit server
  5. 用浏览器访问 http://localhost/ykit-app/index.html

初始化结束后,项目中会生成一个名为 ykit.js 的配置文件:

module.exports = {
    plugins: [],
    config: {
        export: ['./scripts/index.js', './styles/index.css'],
        modifyWebpackConfig: function modifyWebpackConfig(baseConfig) {
            // 更改 Webpack 配置
            return baseConfig;
        }
    },
    hooks: {},
    commands: []
};

配置文件选项

  • plugins - 插件是对一类配置和功能的封装,通过安装插件可以快速搭建开发环境
  • config.exports - 资源入口
  • config.modifyWebpackConfig - 用来更改 Webpack 现有配置的函数
  • hooks - 打包过程钩子
  • commands - 自定义命令

范例

通过插件快速搭建不同类型的应用,可参考以下示例。

文档

访问 ykit.ymfe.org 来获取更多 ykit 的文档。

Current Tags

  • 0.8.13-beta                                ...           beta (4 months ago)
  • 0.8.13                                ...           latest (4 months ago)
  • 2.3.2                                ...           next (2 years ago)
  • 0.8.9-rc.1                                ...           rc (a year ago)

112 Versions

  • 0.8.13                                ...           4 months ago
  • 0.8.13-beta                                ...           4 months ago
  • 0.8.12                                ...           4 months ago
  • 0.8.10                                ...           a year ago
  • 0.8.10-beta.0                                ...           a year ago
  • 0.8.9                                ...           a year ago
  • 0.8.9-rc.1                                ...           a year ago
  • 0.8.8                                ...           a year ago
  • 0.8.7                                ...           a year ago
  • 0.8.7-rc.0                                ...           a year ago
  • 0.8.6                                ...           a year ago
  • 0.8.6-rc.0                                ...           a year ago
  • 0.8.5                                ...           a year ago
  • 0.8.5-beta.4                                ...           a year ago
  • 0.8.5-beta.3                                ...           a year ago
  • 0.8.5-beta.2                                ...           a year ago
  • 0.8.5-beta.1                                ...           a year ago
  • 0.8.5-beta.0                                ...           a year ago
  • 0.8.4                                ...           a year ago
  • 0.8.3-beta.1                                ...           a year ago
  • 0.8.3-beta.0                                ...           2 years ago
  • 0.8.2                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 4.0.0-beta.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 2.3.3-rc.0                                ...           2 years ago
  • 2.3.2                                ...           2 years ago
  • 0.7.7                                ...           2 years ago
  • 2.3.1                                ...           2 years ago
  • 0.7.6                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.3.0-rc.1                                ...           2 years ago
  • 2.3.0-rc.0                                ...           2 years ago
  • 2.2.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.2.0-rc.1                                ...           2 years ago
  • 2.2.0-rc.0                                ...           2 years ago
  • 0.7.5                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 0.7.4                                ...           2 years ago
  • 2.1.0-beta.1                                ...           2 years ago
  • 2.1.0-beta.0                                ...           2 years ago
  • 0.7.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-beta.4                                ...           2 years ago
  • 2.0.0-beta.3                                ...           2 years ago
  • 2.0.0-beta.2                                ...           2 years ago
  • 2.0.0-beta.1                                ...           2 years ago
  • 0.0.3-test                                ...           2 years ago
  • 0.0.2-test                                ...           2 years ago
  • 0.8.0-beta.0                                ...           2 years ago
  • 0.8.0-rc.4                                ...           2 years ago
  • 0.8.0-rc.3                                ...           2 years ago
  • 0.7.2                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.8.0-rc.2                                ...           2 years ago
  • 0.8.0-rc.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.7.0-rc.1                                ...           2 years ago
  • 0.7.0-rc.0                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.6.0-rc.4                                ...           2 years ago
  • 0.6.0-rc.3                                ...           2 years ago
  • 0.6.0-rc.2                                ...           2 years ago
  • 0.6.0-rc.1                                ...           2 years ago
  • 0.6.0-rc.0                                ...           2 years ago
  • 1.0.0-beta.1                                ...           2 years ago
  • 0.5.5                                ...           2 years ago
  • 0.5.4                                ...           2 years ago
  • 1.0.0-beta.0                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.1-rc.0                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.5.0-rc.5                                ...           2 years ago
  • 0.5.0-rc.4                                ...           2 years ago
  • 0.5.0-rc3                                ...           2 years ago
  • 0.5.0-rc2                                ...           2 years ago
  • 0.5.0-rc1                                ...           2 years ago
  • 0.5.0-rc0                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.4.0-rc2                                ...           3 years ago
  • 0.4.0-rc1                                ...           3 years ago
  • 2.0.0-rc1 [deprecated]           ...           3 years ago
  • 0.4.0-rc0                                ...           3 years ago
  • 0.3.4                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.1-rc0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.3.0-rc0                                ...           3 years ago
  • 0.2.6-rc7                                ...           3 years ago
  • 0.2.6-rc6                                ...           3 years ago
  • 0.2.6-rc5                                ...           3 years ago
  • 0.2.6-rc4                                ...           3 years ago
  • 0.2.6-rc3                                ...           3 years ago
  • 0.2.6-rc2                                ...           3 years ago
  • 0.2.5                                ...           3 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.0.1-alpha                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 35
This Month 403
Last Day 16
Last Week 347
Last Month 720
Dependencies (46)
Dev Dependencies (15)

Copyright 2014 - 2016 © taobao.org |