1.1.2 • Published 4 years ago

file-preprocessor v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

file-preprocessor

a C++ like proprocessor to apply to various files in an Ionic/Angular project.

##Usage: fp = new FilePreprocessor( {options} ); output = fp.ProcessString(input);

##OPTIONS:

Supported directives:

##Typescript/Angular7:

since @ngtools/webpack doesn't follow the basic rules for WebPack loaders (Loaders don't read their own imput file), the used of the Preprocessor with typescript isn't quite that simple.

The easiest way is to Path @ngtools/webpack to run the files it loads through the file-preprocessor. A Sample patch can be found in patch/@ngtools+webpack+7.3.8.patch in GIT. It can simply be droppen in the patches directory of your project, and used using the npm packet patch-packets.

##Commandline: There is also a small commandline utility called "preprocess" that can be called on any input (and output) file to run it through the preprocessor. It takes a PREPEND= and a PREFIX= environment variable, and input (and option output) as arguments.

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago