tree: e773c8a62aa7cad1e3200b13f1e4240ec0859f37 [path history] [tgz]
  1. .bowerrc
  2. .gitignore
  3. README.md
  4. bower.json
  5. gulp/
  6. gulpfile.js
  7. package.json
  8. src/
xos/core/xoslib/xos-builder/README.md

XOS Lib Helper

This library should help you while developing with:

Serve

  • Install Bower deps
  • Load js files (from args folder)
  • Load html templates (from args folder)
  • Compile ES6
  • Compile Scss
  • Compile template using ng2html
  • Watch source folder
  • Livereload
  • Generate a basic index.html in a dist folder under args folder loading files

Build

  • Install Bower deps
  • Load js files (from args folder)
  • Load html templates (from args folder)
  • Compile ES6
  • Compile Scss
  • Compile template using ng2html
  • Minify Js & Css
  • Prefix Css
  • Cicle trough bower.json and diff it with base bower.json to exclude already loaded modules (eg: angular) [Optional]
  • Move dist under xos folder

App Structure

App Name └- src ├ js ├ templates ├ bower_components └ dist

Angular apps should be saved under xoslib/source and builded apps should be moved under xoslib/static/js.

Two files should be generated, appname_main.js and appname_vendor.js, these file should be included into xoslib/dashboards/appname.html (tbd if this file has to be automatically generated during the build)

Advantages

  • Faster development with common tool
  • Standard build for community developer
  • Minified files