Coder Social home page Coder Social logo

Comments (7)

eos3tion avatar eos3tion commented on May 16, 2024

laya的发布脚本就是执行的项目中 .laya文件夹里面相应的脚本啊,你直接用nodejs 调用就好。

from layaair.

rugia813 avatar rugia813 commented on May 16, 2024

直接node .laya/compile.js的話沒出錯也沒編譯,不知道詳細是該怎麼操作呢?

from layaair.

eos3tion avatar eos3tion commented on May 16, 2024

@rugia813 你是不是没安装gulp?

from layaair.

rugia813 avatar rugia813 commented on May 16, 2024

有裝gulp,原本沒裝會報錯,compile.js裡面的套件我都順便裝了,結果就是沒反應。

from layaair.

Lurenyiabc avatar Lurenyiabc commented on May 16, 2024

layaair2-cmd 不过ts项目有点问题,可以在社区bug栏找下compile.js。实验版ts编译脚本还在调整

from layaair.

LayaCharley avatar LayaCharley commented on May 16, 2024

请参考这个文档《VSCode高效开发工作流配置指南》,可以全面解决你的问题。https://ldc2.layabox.com/doc/?nav=zh-ts-3-0-9

from layaair.

rugia813 avatar rugia813 commented on May 16, 2024

请参考这个文档《VSCode高效开发工作流配置指南》,可以全面解决你的问题。https://ldc2.layabox.com/doc/?nav=zh-ts-3-0-9

感謝,這篇確實是我想達成的效果,不過請問是否不適用於舊版呢? 我現在的專案需求使用2.0.2版,
輸入layaair2-cmd compile之後會報錯:

[10:12:27]
Working directory changed to ~\AppData\Roaming\nvm\v10.15.3\node_modules\layaair2-cmd

[10:12:27] Using gulpfile D:\xxx\xxx\.laya\compile.js

[10:12:27] Task 'compile' is not in your gulpfile

[10:12:27] Please check the documentation for proper gulpfile formatting

但是compile.js裡面確實是有gulp.task("compile", prevTasks, function () {...
不懂為何會說找不到?

from layaair.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.