This package has been deprecated

Author message:

obsolete, do not use

ax-system

0.0.3 • Public • Published

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');

Readme

Keywords

Package Sidebar

Install

npm i ax-system

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • xkam