【文件属性】:
文件名称:grunt-amdify:用 AMD 包装 CommonJs 模块
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-08 09:43:51
CoffeeScript
咕噜咕噜
在 AMD 中包装 CommonJs 模块
入门
这个插件需要 Grunt。
如果您以前没有使用过 ,请务必查看指南,因为它解释了如何创建以及安装和使用 Grunt 插件。 熟悉该过程后,您可以使用以下命令安装此插件:
npm install grunt-amdify --save-dev
安装插件后,可以使用以下 JavaScript 代码在 Gruntfile 中启用它:
grunt . loadNpmTasks ( 'grunt-amdify' ) ;
“修改”任务
概述
在项目的 Gruntfile 中,将名为amdify的部分添加到传递给grunt.initConfig()的数据对象中。
grunt . initConfig ( {
amdify : {
options : {
// Task-specific options go
【文件预览】:
grunt-amdify-master
----.gitignore(37B)
----package.json(761B)
----gruntfile.coffee(577B)
----README.md(1KB)
----.coffeelintrc(1KB)
----tasks()
--------amdify.coffee(720B)
----.editorconfig(470B)