Skip to content

How to test with local mag.js, or how to minify sources? #17

Description

@pokehanai

I wrote a jasmine spec but failed to test it with local mag.js sources.

I modified specRunnder.html as

  <!-- script src="//rawgit.com/magnumjs/mag.js/master/mag.min.js"></script -->
  <script src="../src/fastdom.js"></script>
  <script src="../src/mag.js"></script>
  <script src="../src/fill.js"></script>
  <script src="../src/render.js"></script>
  <script src="../src/module.js"></script>
  <script src="../src/utils.js"></script>
  <script src="../src/mag.addons.0.2.js"></script>
  <script src="../src/mag.comps.js"></script>

then I got most strange error at the line

var flag, promise = mag.module("lister", mod)
// TypeError: promise.then is not a function

I wonder whether the minified js is same as those files.

Well, could you let me know how to test, or maybe the process to minify?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions