README
Sofia2 - ECMAScript
** UNDER CONSTRUCTION, COMING SOON... **
The client for ECMAScript (from now simply "ES", the standard specification of the well known JavaScript language) is built over ECMAScript 6 draft standards, but using only the subset that is able to be pollyfied with and for ES3.
Always looking at the future!
By doing this, Sofia2 ECMAScript version will be able to run not only in modern browsers but also over legacy ones like Internet Explorer 8.
Use it
Because sofia2 follows the UMD, it is able to run over any module system (like CommonJS Modules on node.js, RequireJS on browsers or a simple global variable var Sofia2
).
Nodejs && NPM
With npm do:
npm install sofia2 --save-dev
Browsers
Include the release/sofia2.bundle.js
in your document with a <script>
tag or with a require
sentence.
Polyfills
EcmaScript 5:
- Shim: you can download it from es5-shim npm package before ECMAScript 6 pollyfills and sofia2js.
EcmaScript 6:
- Promise: You can download it from es6-promise npm package before sofia2js.
Build it
In order to build the ECMAScript client of Sofia2, you will need to following the next steps:
- Install node.js, with npm included in the setup process.
- Open a command prompt over the
ecmascript
folder. - Run
npm install
.
A new folder release
will appear, containing ol the generated files...
Thats all!