├── .editorconfig ├── .gitignore ├── .jshintrc ├── .npmignore ├── .travis.yml ├── Gruntfile.js ├── LICENSE ├── README.md ├── appveyor.yml ├── benchmark └── gruntMochaTestPreprocess.js ├── lib ├── preprocess.js └── regexrules.js ├── package.json └── test ├── context.spec.js ├── echo.spec.js ├── exclude.spec.js ├── exec.spec.js ├── extend.spec.js ├── fixtures ├── extend │ ├── extend.coffee │ ├── extend.html │ ├── extend.js │ └── extendadv.html ├── include │ ├── include.block.js │ ├── include.coffee │ ├── include.html │ ├── include.js │ ├── include.txt │ ├── includenewline.txt │ └── static.txt └── processFile │ ├── processFileTest.html │ └── processFileTestInclude.html ├── foreach.spec.js ├── hidden-by-default.spec.js ├── if-else.spec.js ├── if.spec.js ├── ifdef.spec.js ├── ifndef.spec.js ├── include-static.spec.js ├── include.spec.js ├── lib ├── copyFile.js └── hello.js ├── newlines.spec.js ├── options.spec.js ├── processFile.spec.js └── processFileSync.spec.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/.gitignore -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/.jshintrc -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/Gruntfile.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/appveyor.yml -------------------------------------------------------------------------------- /benchmark/gruntMochaTestPreprocess.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/benchmark/gruntMochaTestPreprocess.js -------------------------------------------------------------------------------- /lib/preprocess.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/lib/preprocess.js -------------------------------------------------------------------------------- /lib/regexrules.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/lib/regexrules.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/package.json -------------------------------------------------------------------------------- /test/context.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/context.spec.js -------------------------------------------------------------------------------- /test/echo.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/echo.spec.js -------------------------------------------------------------------------------- /test/exclude.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/exclude.spec.js -------------------------------------------------------------------------------- /test/exec.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/exec.spec.js -------------------------------------------------------------------------------- /test/extend.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/extend.spec.js -------------------------------------------------------------------------------- /test/fixtures/extend/extend.coffee: -------------------------------------------------------------------------------- 1 | a 2 | # @extendable 3 | b -------------------------------------------------------------------------------- /test/fixtures/extend/extend.html: -------------------------------------------------------------------------------- 1 | ab -------------------------------------------------------------------------------- /test/fixtures/extend/extend.js: -------------------------------------------------------------------------------- 1 | a/* @extendable */b 2 | -------------------------------------------------------------------------------- /test/fixtures/extend/extendadv.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/fixtures/extend/extendadv.html -------------------------------------------------------------------------------- /test/fixtures/include/include.block.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/fixtures/include/include.block.js -------------------------------------------------------------------------------- /test/fixtures/include/include.coffee: -------------------------------------------------------------------------------- 1 | !foobar! 2 | # @exec hello('coffee') 3 | # @include static.txt -------------------------------------------------------------------------------- /test/fixtures/include/include.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/fixtures/include/include.html -------------------------------------------------------------------------------- /test/fixtures/include/include.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/fixtures/include/include.js -------------------------------------------------------------------------------- /test/fixtures/include/include.txt: -------------------------------------------------------------------------------- 1 | !foobar! 2 | @exec hello('simple') 3 | @include static.txt -------------------------------------------------------------------------------- /test/fixtures/include/includenewline.txt: -------------------------------------------------------------------------------- 1 | !foobar! 2 | -------------------------------------------------------------------------------- /test/fixtures/include/static.txt: -------------------------------------------------------------------------------- 1 | !bazqux! -------------------------------------------------------------------------------- /test/fixtures/processFile/processFileTest.html: -------------------------------------------------------------------------------- 1 | ab -------------------------------------------------------------------------------- /test/fixtures/processFile/processFileTestInclude.html: -------------------------------------------------------------------------------- 1 | a 2 | 3 | b -------------------------------------------------------------------------------- /test/foreach.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/foreach.spec.js -------------------------------------------------------------------------------- /test/hidden-by-default.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/hidden-by-default.spec.js -------------------------------------------------------------------------------- /test/if-else.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/if-else.spec.js -------------------------------------------------------------------------------- /test/if.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/if.spec.js -------------------------------------------------------------------------------- /test/ifdef.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/ifdef.spec.js -------------------------------------------------------------------------------- /test/ifndef.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/ifndef.spec.js -------------------------------------------------------------------------------- /test/include-static.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/include-static.spec.js -------------------------------------------------------------------------------- /test/include.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/include.spec.js -------------------------------------------------------------------------------- /test/lib/copyFile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/lib/copyFile.js -------------------------------------------------------------------------------- /test/lib/hello.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/lib/hello.js -------------------------------------------------------------------------------- /test/newlines.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/newlines.spec.js -------------------------------------------------------------------------------- /test/options.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/options.spec.js -------------------------------------------------------------------------------- /test/processFile.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/processFile.spec.js -------------------------------------------------------------------------------- /test/processFileSync.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsoverson/preprocess/HEAD/test/processFileSync.spec.js --------------------------------------------------------------------------------