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.jss File can easily refers to each other with the syntax:
var module_name = yasl.relative.path.to.fileYasl 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