cakefile

    0热度

    1回答

    我尝试使用正常的cd命令更改目录,但它说execvp():没有这样的文件或目录。 这些都是行: fs = require 'fs' util = require 'util' {spawn} = require 'child_process' clientTest = (callback) -> d = spawn 'cd', ['client'] d.stderr.

    1热度

    2回答

    我有以下结构: /lib /myfile.js.cofee /secondfile.js /src ,我想将它们汇编成 /lib /myfile.js.cofee /secondfile.js /src /awesomefile.min.js 我看了一下Cakefiles,但我不知道如何正是这样做。 谢谢, 迈克

    0热度

    1回答

    我正在写一个Cakefile定义了一个名为build任务,其中出现以下行: coffee.stderr.on 'data', (data) -> process.stderr.write.data.toString() 当我运行cake build任务,它抛出一个ReferenceError说,功能toString未定义。 我试过修复节点安装,并用npm重新安装CoffeeScrip

    0热度

    1回答

    我刚进入咖啡因的世界,我在Cakefiles中遇到了一些麻烦。 这是我的理解,Cakefiles使用咖啡脚本语法;如果我想在子目录中查找文件,那么我需要fs模块并执行我需要做的任何操作,就好像我在使用nodejs应用程序一样吗?我只需要一个Cakefile来完成整个项目,对吗?我是否需要对package.json或其他任何项目进行更改以使用Cakefile? 话虽这么说,因为我一直在寻找在this

    1热度

    1回答

    设置twilson63构建的express coffee app。看起来蛋糕找不到咖啡,但它们都可以用which。我还需要在这里做些什么吗?这是我的步骤: [email protected] ~/dev/express-coffee-master $ which coffee /c/Users/jcollum/AppData/Roaming/npm/node_modules/coffee-sc

    -1热度

    1回答

    我正在尝试构建一个简单的cakefile来执行我正在处理的节点项目的构建任务。继this gist from github,我已经成功地引发以下基本代号: CoffeeScript = require 'coffee-script' {exec} = require 'child_process' fs = require 'fs' web_build_path = 'bin/web'

    0热度

    1回答

    我正在尝试构建在脊柱框架中作为TODO示例给出的代码。我已经使用npm安装了coffescript,并且它包含了蛋糕生成器。 当我浏览到Cakefile目录,并执行cake build我收到以下错误: src/local.coffee:1:1: error: the variable "Spine" can't be assigned with ?= because it has not been

    1热度

    1回答

    如何从Cakefile中的任务调用另一个任务? 我试图tasks[taskName].action options但由于tasks没有工作在我Cakefile的范围不绑定: /home/omer/___/Cakefile:52 return console.log(tasks); ^ ReferenceError: tasks is not defined

    0热度

    2回答

    我有以下文件: Cakefile: require './test' test.coffee: console.log 'hi' another_test.coffee: require './test' 如果我运行蛋糕,我会得到以下异常: module.js:340 throw err; ^ Error: Cannot find module './test'

    2热度

    1回答

    我已经做了一些基本的谷歌搜索,并没有找到任何有说服力的理由来为我的Node.js构建过程选择Jake over Cake(主要是将* .coffee编译为* .js到正确的文件夹中)。任何人都可以提供一些关于为什么选择杰克或蛋糕而不是另一个的简短要点? 如果适用的:我从Java,Grails进来,看Ruby on Rails开发商一点,所以我很熟悉Ant,MVN和Gradle,Rake,等...