没有合适的资源?快使用搜索试试~ 我知道了~
babel-plugin-add-header-comment
共35个文件
js:16个
md:4个
json:2个
需积分: 9 0 下载量 164 浏览量
2021-05-12
05:12:58
上传
评论
收藏 19KB ZIP 举报
温馨提示
babel-plugin-add-header-comment 将在转译代码的开头添加注释。 由于通过Babel进行转译已成为构建过程的最后一步之一,因此在此最后一步周围添加一些工具非常方便。 例如可以使用: 添加许可证信息 添加版本号以进行构建 等等。 安装 $ npm install babel-plugin-add-header-comment 例子 以下是一个示例.babelrc文件。 使用以下设置,将使用3种不同的功能创建注释: 添加一个硬编码的字符串( "This string will be inserted in" ) 通过执行脚本并注入输出( node executeThisOutputAddedToHeader.js ) 通过读取文件的内容( readInTheContentsOfThisFile.txt ) { "presets" : [ "es2015
资源推荐
资源详情
资源评论
收起资源包目录
babel-plugin-add-header-comment-master.zip (35个子文件)
babel-plugin-add-header-comment-master
.eslintrc.json 106B
.gitignore 101B
.babelrc 323B
package.json 1KB
src
index.js 3KB
LICENSE.md 1KB
.travis.yml 56B
CONTRIBUTING.md 1KB
CODE_OF_CONDUCT.md 2KB
README.md 3KB
.eslintignore 19B
.npmignore 114B
test
test-option-cache-read.js 1KB
test-transpile-file.js 597B
test-read.js 613B
test-option-cache-exec.js 1KB
toInsert.txt 69B
test-option-newline.js 646B
toTranspile
toTranspileB.js 60B
toTranspileA.js 67B
index.js 799B
toExec.js 42B
test-option-comment-modifiers.js 753B
test-comment-line.js 648B
test-use-all.js 779B
test-option-no-header.js 384B
test-exec.js 615B
toExecRandom.js 25B
fixtures
expect-option-newline 54B
expect-transpile-file 333B
expect-exec 73B
expect-use-all 215B
expect-comment-line 112B
expect-option-comment-modifiers 51B
expect-read 114B
共 35 条
- 1
资源评论
LiuTitanium
- 粉丝: 23
- 资源: 4684
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功