jscc强大的微型预处理器用于条件注释和编译时变量替换

想要在开发中灵活控制代码的构建版本吗?jscc这个微型预器可以你通过注释和条件编译,实现更灵活的代码管理。你可以用它根据编译时变量,有条件地包含或排除代码块,甚至替换源代码中的变量,简直像给代码加了个超能力。而且,它支持source maps,对调试 JavaScript 源代码有哦。
比如,你可以在代码中使用/* @ifdef prod */来区分生产和开发环境,轻松实现不同版本的构建。对TypeScript的支持也挺不错,可以让你在编译时根据需要声明ES6 import
jscc像是为 JavaScript 和 TypeScript 量身定做的轻量级 C 语言风格的预器,挺适合想要快速调整代码的开发者。
如果你在找一个简洁但功能强大的预工具,不妨试试这个,能为你的代码库不少便利。

zip
jscc-master.zip 预估大小:65个文件
folder
jscc-master 文件夹
folder
src 文件夹
file
jscc.ts 2KB
file
parse-helper.ts 4KB
folder
lib 文件夹
file
path-relative.ts 327B
file
remap-vars.ts 5KB
file
get-expr.ts 3KB
file
parse-options.ts 4KB
file
regexes.ts 2KB
file
parse-chunks.ts 2KB
file
parser.ts 7KB
file
eval-expr.ts 1KB
file
parse-buffer.ts 1KB
file
JsccProps.d.ts 314B
folder
.vscode 文件夹
file
launch.json 618B
file
settings.json 330B
file
.markdownlint.json 125B
file
.codeclimate.yml 255B
file
.travis.yml 276B
file
tsconfig.json 625B
file
LICENSE 1KB
folder
test 文件夹
file
jscc.ts 113B
file
s04-cc.spec.ts 8KB
file
s14-non-js.spec.ts 628B
file
test.env.js 451B
folder
fixtures 文件夹
file
html-vars-js.html 514B
file
eslint-autofix.js 423B
file
directive-ending.js 150B
file
ex-file-and-date.js 89B
file
utf8-bom.txt 35B
file
var-hide-output.js 123B
file
html-comments.html 530B
file
html-short-cmts.html 506B
file
ex-simple-replacement.js 280B
file
ex-object-properties.js 340B
file
def-file-var.js 109B
file
s08-varnames.spec.ts 3KB
file
s16-async.spec.ts 1KB
folder
helpers 文件夹
file
test-str.ts 439B
file
test-file.ts 701B
file
concat-path.ts 271B
file
test-file-str.ts 373B
file
transform-file.ts 316B
file
preproc-str.ts 280B
file
s00-jscc.spec.ts 4KB
file
tsconfig.json 368B
folder
noversion 文件夹
file
package.json 89B
folder
expected 文件夹
file
html-vars-js.html 402B
file
eslint-autofix.js 64B
file
html-comments.html 390B
file
html-short-cmts.html 382B
file
ex-simple-replacement.js 252B
file
ex-object-properties.js 293B
file
def-file-var.js 181B
file
s12.examples.spec.ts 1KB
file
s06-replacement.spec.ts 9KB
file
s10-options.spec.ts 4KB
file
.eslintignore 20B
file
mocha.opts 139B
file
tslint.json 1KB
file
README.md 8KB
file
Makefile 783B
file
index.d.ts 3KB
file
appveyor.yml 662B
file
.gitignore 458B
file
CHANGELOG.md 5KB
file
package.json 2KB
...
zip 文件大小:48.52KB