iced-coffeescript

    5热度

    1回答

    我使用try catch块在iced coffee script。我打电话不存在的方法fake不存在的对象a并期望发现错误。 db = require '../../call/db.iced' try await db.find "79", defer c, d a.fake() catch error console.log "error catched"

    1热度

    1回答

    我试图做使用coffeescript和冰咖啡的脚本编程异步/等待风格。 如果'未定义'的回应是我得到的。 module.exports = update: (req, res) -> await user = User.find({ id: 1 }).exec (err, user) -> throw err if err? console.log(err) #

    3热度

    1回答

    首先,我安装nodemon全球: npm install -g nodemon 然后我尝试使用下面的命令来开始我的apllication: nodemon app.iced 我也得到这样的错误:“语法错误:意外的令牌非法“。但是,我可以在没有任何错误的情况下运行我的应用程序而不使用nodemon: iced --nodejs --debug app.iced 问题是什么?

    3热度

    2回答

    当我使用vanilla CoffeeScript时,我编译* .coffee文件并将结果* .js发送到客户端。 为了摆脱对客户端模块async.js的依赖,我找到了IcedCoffeeScript语言扩展。但是,当我编译我的代码(至极具有await和defer关键字)* .js文件中,结果我发现非客户端代码: iced = require('iced-coffee-script').iced;

    -1热度

    2回答

    这将是对我非常有用的,如果你能帮助我解决这个功能: textParseQuery = (txtSnippet) -> queryUrl = "http://localhost:8083/txtParse/#{txtSnippet}" console.log queryUrl callback = (response) => parsed = $.pars

    0热度

    1回答

    我试图从冰咖啡脚本文件插入脚本标记。我想指定脚本的defer属性,但coffeescript编译器不喜欢我想要定义一个名为defer的东西,因为它是一个关键字。 是否有允许我做以下任何解决方案: script = document.createElement('script') script.type = 'text/javascript'; script.defer = true scri

    1热度

    1回答

    我可以使用什么IDE来开发具有语法高亮和智能感知功能的IcedCoffeeScript代码? 我试图使用Webstorm,但它不支持IcedCoffeeScript。

    1热度

    1回答

    当我运行冰镇nodeunit测试... $ nodeunit path/to/file/file_name.iced ...这是确定。 当我跑了很多的咖啡脚本测试... grunt.initConfig({ nodeunit: { coffee: ['path/to/coffee/nodeunit/tests/**/*_test.coffee'] } });

    1热度

    2回答

    问题是如何在基于ExpressJS的Web应用程序上使用IcedCoffeeScript(http://maxtaco.github.io/coffee-script)?现在我在我的应用程序中使用vanilla CoffeeScript语言。 谢谢

    1热度

    1回答

    是否有可能在iced coffee script使异步构造: ,并调用它像: await new Animal, defer(animal) 当我尝试这样做,遇到错误: unexpected ,