@injectable/compileable-service
service to compile js code from the server for the web
Last updated 3 months ago by belabohlender .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @injectable/compileable-service 
SYNC missed versions from official npm registry.

Compileable Service

Service to dynamically compile js code for the web using webpack.

This package works with the Injectable Core.

Compileable

An compileable represents any data or function as a value and a string of code to compile with webpack.
Additionally it saves all the nodeModules to compile, additional files that got splitted and imports for using css. An dynamic compileable is just a observable that emits an compileable.

Functions

Registers an id for a compileable.

public registerCompileableId(): number

Sets a compileable to be compiled and hosted

public setCompileable(
    injectableName: string,
    compileableId: number,
    compileable: Compileable<any>,
    route: string,
    additionalFilesBaseRoute: string,
    headers: any,
    encodings: Array<Encoding>,
    onRequest?: OnRequest
): void

Deletes an compileable and all its compiled files.

public deleteCompileable(injectableName: string, compileableId: number): void

Dynamically sets a compileable to be compiled and hosted.

public setDynamicCompileable(
    injectableName: string,
    compileableId: number,
    dynamicCompileable: DynamicCompileable<any>,
    route: string,
    additionalFilesBaseRoute: string,
    headers: any,
    encodings: Array<Encoding>,
    onRequest?: OnRequest
): void

License

See the LICENSE file for license rights and limitations (MIT).

Current Tags

  • 1.0.0                                ...           latest (3 months ago)

1 Versions

  • 1.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 0
Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |