【问题标题】:The simplest Gruntfile.coffee that will prove grunt is working?能证明 grunt 工作的最简单的 Gruntfile.coffee?
【发布时间】:2013-04-18 06:40:06
【问题描述】:

寻找 grunt 的基本介绍,所以我想知道最简单的 Gruntfile 是什么,它仍然可以让我在命令行运行 grunt 并查看 grunt 进程是否正常工作。然后我可以从那里添加功能,但我想从头开始。

【问题讨论】:

    标签: javascript build coffeescript gruntjs


    【解决方案1】:

    会产生输出的最简单的 grunt 文件(Gruntfile.coffee):

    module.exports = (grunt) ->
      grunt.registerTask 'default', 'Try Logging', ->
        grunt.log.write('Running the default task')
    

    【讨论】:

      猜你喜欢
      • 2012-09-26
      • 1970-01-01
      • 2010-12-02
      • 2017-09-23
      • 2013-11-14
      • 2014-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多