npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

go-js

v1.3.13

Published

Potty frontend commonjs webpack server

Downloads

93

Readme

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
    • 支持全局依赖的使用 (对用户不可见)