open-dingtalk / dingtalk-design-cli Goto Github PK
View Code? Open in Web Editor NEWDingTalk Design CLI是面向钉钉三方前端应用研发的命令行工具。提供钉钉小程序、h5微应用、工作台组件的初始化、开发调试、构建预览、上传等功能。
License: MIT License
DingTalk Design CLI是面向钉钉三方前端应用研发的命令行工具。提供钉钉小程序、h5微应用、工作台组件的初始化、开发调试、构建预览、上传等功能。
License: MIT License
windows11
node version: v16.14.2
npm version: v8.5.0
@tarojs/taro: ^3.4.1
dingtalk-design-cli: 1.0.10
af-appx.worker.min.js:6 ReferenceError: dd is not defined
at initNativeApi (apis.ts:15:1)
at hooks.ts:142:1
at Array.forEach (<anonymous>)
at Hooks.initNativeApi (hooks.ts:142:1)
at Object.node_modulesTarojsTaroIndexJs (index.js:6:1)
at __webpack_require__ (bootstrap:79:1)
at Module.srcAppTsx (app.tsx?fe40:1:1)
at __webpack_require__ (bootstrap:79:1)
at checkDeferredModules (bootstrap:45:1)
at Array.webpackJsonpCallback [as push] (bootstrap:32:1)
http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6
TypeError: Cannot read properties of undefined (reading 'onLaunch')
at e.pushStack (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:261094)
at e.performPostNavigation (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:268695)
at e.onPageCreate (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:262071)
at e.createInstance (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:229961)
at Xv (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:531650)
at http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:531550
at e.prepareAndLoadPage (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:18584)
at e.onCreatePage (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:531511)
at qv (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:529322)
at Uv (http://127.0.0.1:9001/lyra/appx-ng/af-appx.worker.min.js:6:527898)
Debugger listening on ws://127.0.0.1:9230/7d77ab76-ae33-4731-a2ce-e380738d7f3f
For help, see: https://nodejs.org/en/docs/inspector
用这个命令启动调试H5微应用,路由是history模式页面不显示内容
[Vue Router warn]: No match found for location with path "/http://localhost:3000/"
如果用hash 模式启动uniapp项目,会出现环境判断失效
cli版本 dingtalk-design-cli: 1.0.10
nodeJs: v14.21.3
(Write your answer here.)
(Write your answer here.)
(Write your steps here:)
(Write what you thought would happen.)
(Write what happened. Please add screenshots!)
(Paste the link to an example project and exact instructions to reproduce the issue.)
钉钉小程序开发工具缺少支持linux版的,特别是非x86的机器怎么开发钉钉小程序。我发现这个DingTalk Design CLI基于web的设想很好,但在linux上运行有问题。什么时候能解决呢?
need remove dd bin?
这块需要后端提供新接口才能实现
这个功能当前就能实现,我观察到体验码的规则是:
dingtalk://dingtalkclient/action/open_micro_app?corpId=xxxxx&miniAppId=yyyy&source=trial&version=构建号&agentId=zzz&pVersion=1&packageType=1
其中corpId
、miniAppId
、agentId
都可以在钉钉后台配置好
version
其实就是构建号,调试发现构建号会在this.openApi.getBuildStatus
接口返回:
因此希望将 build_id 也返回出来:
脚手架 dd init 没有typescript选项,但是官方实例文档却有
dd -V
dingtalk-design-cli 0.10.0
upload应该增加个version参数用来指定上传时候的版本号
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.