0.1.0-alpha.8 • Published 2 years ago
@calculang/calculang-js v0.1.0-alpha.8
calculang-js
calculang-js is a Javascript implementation of calculang.
usage
calculang-js includes a compiler API which converts a calculang entrypoint into a Javascript bundle with sourcemap, and a cul-js CLI with compile and introspect commands (and others). For CLI usage examples see calculang README.
calculang-js compiler API usage example:
import compiler from '@calculang/calculang-js';
const output = await compiler(entrypoint, options);internals
calculang-js relies on @calculang/introspection-api and webpack (Note: @calculang/introspection-api also relies on webpack (separately) for its own internal processing pass).
From compiler.js:
// compiler is implemented as a call to webpack v4 (atm) api with a loader setup to transform source code (via babel with a custom loader: calculang-transform-loader).
// The output is a Javascript bundle and sourcemap created by webpack, according to configuration below.
// pre-processed calculang information is needed to complete the compile, this comes from the introspection api call below, where results are passed to calculang-transform-loader via options.0.1.0-alpha.7
2 years ago
0.1.0-alpha.8
2 years ago
0.1.0-alpha.6
3 years ago
0.1.0-alpha.5
4 years ago
0.1.0-alpha.4
4 years ago
0.1.0-alpha.3
4 years ago
0.1.0-alpha.2
4 years ago