0.0.3 • Published 7 years ago

ax-system v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

ActiveWidgets

SystemJS + Unpkg = :-)

Pre-configured SystemJS + Unpkg setup for easy prototyping

Installation

Just include a link to ax-system script on unpkg CDN.

<script src="https://unpkg.com/ax-system"></script>

Usage

ES6 and JSX are included (via client-side Babel plugin). The dependencies automagically pulled by SystemJS directly from unpkg CDN.

<script type="x-module">

  import React from 'react';
  import ReactDOM from 'react-dom';

  let hello = <b>Hello, JSX!</b>;

  ReactDOM.render(hello, document.getElementById('app'));

</script>

Old-style ES5/require() also work.

<script type="x-module">

  var $ = require('jquery');

  $('#app').text('Hello!');

</script>

Load external files via System.import() -

<script>
    System.import('./app.js'); // async, returns promise
</script>

Load CSS, HTML (via pre-configured SystemJS plugins) -

    require('./app.css'); // injected as <style> tag
    
    var template = require('./app.html');