JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q21376F
  • License MIT

A simple JavaScript compiler for managing dependencies between JavaScript files.

Package Exports

  • yasl

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yasl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Yasl

Yasl is a simple JavaScript compiler for managing dependencies between JavaScript files. You can install yasl with npm install yasl -g. Usage:

yasl /path/to/root yasl.relative.path.to.main > /path/to/output.js

s File can easily refers to each other with the syntax:

var module_name = yasl.relative.path.to.file

Yasl will explore the given main

Example

yasl ./sample/counter yasl.button > ./sample/counter/main.js

Yasl recusively looks for such expression within your code and bundle those files within one big ``main'' file. To implement encapsulation, Yasl wrap file's contents within anonymous function. Therefore a Yasl module looks like this:

// protected scope
// yasl imports
// initialization
// x is visible with import
return x