Permalink
Browse files

more description

  • Loading branch information...
1 parent ff7f965 commit cb25a4d5d8f13851cb96140b3724d3e44d3d288e @rse committed Apr 6, 2015
Showing with 34 additions and 14 deletions.
  1. +34 −13 README.md
  2. +0 −1 app-node-buildproc/package.json
View
@@ -8,25 +8,46 @@ can be used today in practice in various scenarios.
### Examples
-- *[app-browser-buildproc](./app-browser-buildproc/)*:<br/>
- This shows a browser application, based on a Grunt-based build process.
- The key points are: [Grunt](http://gruntjs.com/) uses
- [Browserify](http://browserify.org/) which itself uses the Browserify
- plugin [Babelify](https://github.com/babel/babelify) to transpile ES5
- to ES6 with [Babel](http://babeljs.io/).
-
-- *[app-browser-onthefly](./app-browser-onthefly/)*<br/>
+- [app-browser-onthefly](./app-browser-onthefly/)<br/>
This shows a browser application, using on-the-fly transpiling.
The key points are: it includes [Babel](http://babeljs.io/)'s
`browser.js` (which is a Browserify'ed Babel distribution)
and then includes the ES6 application code `app.js` with
MIME-type `text/babel` instead of `text/javascript`.
+ This is not recommended for production scenarios.
-- app-node-buildproc
-
-- app-node-onthefly
-
-- grunt-onthefly
+- [app-browser-buildproc](./app-browser-buildproc/):<br/>
+ This shows a browser application, based on a [Grunt](http://gruntjs.com/)-based build process.
+ The key points are: [Grunt](http://gruntjs.com/) uses
+ [Browserify](http://browserify.org/) which itself uses the Browserify
+ plugin [Babelify](https://github.com/babel/babelify) to transpile ES5
+ to ES6 with [Babel](http://babeljs.io/).
+ This is recommended for production scenarios.
+
+- [app-node-buildproc](./app-node-buildproc/)<br/>
+ This shows a [Node.js](http://nodejs.org/)/[IO.js](http://iojs.org)-based server application,
+ based on a [Grunt](http://gruntjs.com/)-based build process.
+ The key points are: [Grunt](http://gruntjs.com/) uses its plugin
+ [Grunt-Babel]([https://www.npmjs.com/package/grunt-babel) transpile
+ ES5 to ES6 with [Babel](http://babeljs.io/).
+ This can be used for production scenarios.
+
+- [app-node-onthefly](./app-node-onthefly/)<br/>
+ This shows a [Node.js](http://nodejs.org/)/[IO.js](http://iojs.org)-based server application,
+ using on-the-fly transpiling.
+ The key points are: it uses an ES5-based boot script `app.js` which
+ activates [Babel](http://babeljs.io/)'s `require` hook which on
+ subsequent `require` calls on-the-fly transpiles all ES6 to ES5 code.
+ This can be used for production scenarios, as server startup times
+ usually do not matter such much.
+
+- [grunt-onthefly](./grunt-onthefly/)<br/>
+ This shows a [Grunt](http://gruntjs.com/)-based build process where
+ ES6 is used for the build script.
+ The key points are: it uses an ES5-based boot script `Gruntfile.js` which
+ activates [Babel](http://babeljs.io/)'s `require` hook which on
+ subsequent `require` calls on-the-fly transpiles all ES6 to ES5 code.
+ This can be used for production scenarios.
- lib-node-browser-buildproc
@@ -10,7 +10,6 @@
"grunt-cli": "~0.1.13",
"grunt-contrib-jshint": "~0.11.1",
"grunt-contrib-clean": "~0.6.0",
- "grunt-browserify": "~3.6.0",
"grunt-babel": "~5.0.0",
"babelify": "~6.0.1"
}

0 comments on commit cb25a4d

Please sign in to comment.