Siemens Low-Code前端组件开发--入门教程--项目脚手架代码
小艺001
2021.10.13 15:41发布于技术 - 前端与UI
5802

安装脚手架工具

npm install -g yo

@mendix/generator-widget

  • 9.x
npm install -g @mendix/generator-widget@9.0.2
  • 8.x
npm install -g @mendix/generator-widget@8.18.0

生成脚手架代码

yo @mendix/widget MyWidgetName

? What is the name of your widget MyWidgetName
? Enter a description for your widget My widget description
? Organization name Mendix
? Add a copyright 2020 Mendix Technology BV
? Add a license Apache-2.0
? Initial version 1.0.0
? Author John
? Mendix project path ./tests/testProject
? Which programming language do you want to use for the widget? TypeScript
? Which type of widget are you developing? For web and hybrid mobile apps
? Which template do you want to use for the widget? Empty widget (recommended for more experienced developers)
? Add unit tests for the widget ? (recommended for Full Boilerplate) No
? Add End-to-end tests for the widget ? (recommended for Full Boilerplate) No

作者在
点赞
收藏
手机查看
举报
2个评论
倒序看帖
仅看楼主
    Alex_Zhou
    2022.07.23 02:54 发布
    #1
    小艺老师,您好,我的mendix版本是9.11.0的,照着您的提示,最终还是无法同过指令yo @mendix/widget text生成widget。 会一直卡在命令行中,依赖无法添加 请问,能有什么原因吗?多谢老师! File configuration done, now running npm install to install development dependencies npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm WARN config cache-min This option has been deprecated in favor of `--prefer-offline`. npm WARN deprecated @types/classnames@2.3.1: This is a stub types definition. classnames provides its own type definitions, so you do not need this installed. npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0 [##################] \ reify:date-fns: timing reifyNode:node_modules/react-native Completed in 25153ms
    首赞
    评论
    举报
    小艺001
    评论
    Alex_Zhou
    2022.07.25 11:35 发布
    作者
    网络问题,你可以试试我自己做的一个模板,用的是国内的npm源 https://forum.mendix.tencent-cloud.com/info/30e4952d377f4582a1d4105d49bf2f3c?csr=1
    首赞
    评论
    举报