huahets
v1.0.0
Published
MathJax & Katex 易学函数库
Downloads
3
Readme
MathJax & Katex 易学函数库
导出为 npm 包文件 npx gulp tsc -P tsconfig.json npm run test
修改 gulpfile.js 使用 task "tsc";
编译单一文件 gulpfile.js 使用 task "browserify";
制作包
1 gulpfile.js 使用 -> gulp.task("default", gulp.series('copy-libs', 'tsc')) tsconfig.json -> "declaration": true"
2 npx gulp
3 npm run test
打包独立文件
1 gulpfile.js 使用 -> gulp.task("default", gulp.series('browserify')) 如果要看生成文件的代码,屏蔽压缩 // .pipe(uglify()) // Kommend to see Code
2 测试 将 'src/Katext.html' 文件在浏览器中打开
快速命令
cp ./dist/bundle.js ~/projects/tianyawiki/docs/_libs/ cp ./dist/bundle.js ~/projects/gitbook-plugin-huahe/assets/ cp ./dist/bundle.js ~/Pictures/img_github/libs/