fractaljs
Fractaljs ============= [![Build Status](https://travis-ci.org/dmitriiabramov/fractaljs.svg?branch=master)](https://travis-ci.org/dmitriiabramov/fractaljs)
Last updated 6 years ago by dmitriiabramov .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fractaljs 
SYNC missed versions from official npm registry.

Fractaljs

Build Status

Bundle javascript modules + lazy load in browser

// app.js
//= require_fractal
//= require ./jquery.js
//= require ./submodule.js module
//= reference ./lazy_loaded_bundle.js

exports.f = function () { return 'app'; };
// submodule.js
module.exports = 'submodule';
// lazy_loaded_bundle.js
//= require ./react.js module
<script src="/assets/app.js"></script>
<script>
    var submodule = require('submodule.js'); // require synchonously
    console.log(submodule) // => 'submodule'
    use('./react.js', function() { // load 'lazy_loaded_bundle.js' first
      var react = require('./react.js'); // then require module when it's available
    });
</script>

Express middleware

var fractal = require('fractaljs');
fractal.config().assetPath = path.resolve(__dirname, './client');
app.use('/assets/*', fractal.middleware);

development

make install && make dev

run all tests

make test

watch mocha test

make watch_mocha

run karma tests

brew install phantomjs
make karma
Features TODO
  • Q => ES-6 Promises
  • get rid of mutable config
  • bulding bundles for prod

Current Tags

  • 0.0.8                                ...           latest (6 years ago)

6 Versions

  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (12)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |