go-js
Potty frontend commonjs webpack server
Last updated 2 years ago by moyuyc .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install go-js 
SYNC missed versions from official npm registry.

go-js

NPM version NPM Downloads

Setup frontend webpack server quickly

Video

https://www.youtube.com/embed/VDfcNhSxbQY

What is it?

以 commonjs 为标准的,快捷地前端代码执行环境(基于webpack)

Concept

  1. one javascript file is one entry. (一个 JavaScript 文件即是一个入口)

Feature

  1. Download Dependencies Automatically. (自动下载依赖)
  2. HMR works (HMR 自动生效,无需自行配置)
  3. Dynamic Entry. (动态入口)
  4. 为了有效地 cache bundle file,为 Dynamic Entry 提供更好的体验。颗粒化对 WebpackDevMiddleware/WebpackHotMiddleware 的过滤处理

How to use

npm install -g go-js
gojs -h

Customized Loader

可以在当前工作目录下书写自己的 gojs.jsloader.js

module.exports = [
    {
      test: /\.jsx?$/,
      loader: 'babel-loader',
      include: [
        // root
      ],
      query: {
        cacheDirectory: true,
        presets: [
          require.resolve('babel-preset-es2015'),
          require.resolve('babel-preset-react'),
          require.resolve('babel-preset-stage-0')
        ],
        plugins: [
          require.resolve('babel-plugin-transform-decorators-legacy'),
        ]
      }
    },
]

Todo

  • [ ] 添加上对 TypeScript 的支持(CoffeeScript先放放)

ChangeLog

  • v1.2.4
    • 添加custom loader支持(gojs.jsloader.js)
  • v1.3.0
    • 支持全局依赖的使用 (对用户不可见)

Current Tags

  • 1.3.13                                ...           latest (2 years ago)

37 Versions

  • 1.3.13                                ...           2 years ago
  • 1.3.12                                ...           2 years ago
  • 1.3.11                                ...           2 years ago
  • 1.3.10                                ...           2 years ago
  • 1.3.9                                ...           2 years ago
  • 1.3.8                                ...           2 years ago
  • 1.3.7                                ...           2 years ago
  • 1.3.6                                ...           3 years ago
  • 1.3.5                                ...           3 years ago
  • 1.3.4                                ...           3 years ago
  • 1.3.3                                ...           3 years ago
  • 1.3.2                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.5                                ...           3 years ago
  • 1.2.4                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0-0                                ...           3 years ago
  • 1.1.8                                ...           3 years ago
  • 1.1.7                                ...           3 years ago
  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 9
Dependencies (33)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |