AlastairTaft / closure-library-starter

Use Google's closure library with webpack and jsx.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ Archived

This repo is not maintained, I would encourage not using it.

This proof of concept demonstrates using Google's closure library in the CommonJS ecosystem. It uses a custom babel plugin so that instead of having to do

goog.require('goog.array')

You can now require any goog module the CommonJS way.

var array = require('goog.array')

It uses React's jsx plugin with a pragma option set so that it works with the goog.dom.DomHelper class instead. Which means JSX can be used with any UI component.

It uses the webpack-closure-compiler plugin to build the app with the closure compiler in production.

To start the app run npm start, to build the app run npm run build.

Limitations

  • Doesn't yet work with ES6 modules import/export

About

Use Google's closure library with webpack and jsx.


Languages

Language:JavaScript 94.1%Language:HTML 5.5%Language:CSS 0.5%