incremental-compiler
v19.0.68
Published
Description for incremental-compiler. Hello world!
Readme
INCREMENTAL COMPILER
A library for any kind of incremental compilers and file watchers, based on @parcel/watcher and chokidar.
API
- Incremental Compiler class "IncCompiler"
import { BaseClientCompiler, BaseClientCompilerOptions } from 'incremental-compiler/src';
export abstract class BaseCompilerForProject<
ADDITIONAL_DATA = any,
PROJECT extends BaseProject = BaseProject,
> extends BaseClientCompiler<ADDITIONAL_DATA> {
constructor(
public project: PROJECT,
options: BaseClientCompilerOptions,
) {
super();
this.initOptions(options);
}
}- Incremental watcher object "incrementalWatcher"
import { incrementalWatcher } from 'incremental-compiler/src';
const watcher = await incrementalWatcher(
[
this.project.pathFor(`environments/**/*.ts`),
this.project.pathFor(`env.ts`),
],
{
name: 'Environment Config Watcher',
ignoreInitial: true,
followSymlinks: false,
},
);
watcher.on('all', async (event, filePath) => {
onChange();
});Folders ALWAYS ignored
- node_modules/
- .git/
