![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
amis 自定义组件模板(react&ts 技术栈)
$ npm i 或者 yarn
dev 开发模式:用于在本地 editor 中调试自定义组件。
$ npm run dev
preview 模式:用于预览自定义组件内容。
$ npm run preview
linkDebug 模式:用于在 amis-saas 中预览和调试自定义组件。
$ npm run linkDebug
build2lib 模式:用于构建发布到 npm 中的文件,默认存放到 当前 dist 目录中。
$ npm run build2lib
package.json 中添加 amis-widgets 字段,用于放置当前自定义组件信息,有这个 amis-widgets 字段才能被识别为 amis 组件扩展包。
...
"amis-widgets": [
{
"name": "react-info-card", // 自定义组件名称,必填项
"framework": "react", // 技术栈类型,非必填项,默认为 react 技术栈
"usage": "renderer", // 渲染器类型,非必填项,默认为 renderer
"type": "react-info-card", // 自定义组件类型,必填项,同一应用下不允许有重复的自定义组件类型
"entry": "/dist/reactInfoCard.umd", // 自定义组件入口文件路径,必填项
"files": [ // 自定义组件依赖资源文件路径,非必填项
"/dist/reactInfoCard.css"
],
"editorPlugin": { // amis-editor自定义插件信息
"name": "react-info-card-plugin", // 自定义插件名称,在编辑器左侧组件面板作为title展示,必填项
"description": "信息展示卡片", // 自定义插件描述,在编辑器左侧组件面板作为描述信息展示,必填项
"pluginEntry": "/dist/reactInfoCardPlugin.umd", // 自定义插件的入口文件,必填项
"tag": [ // 自定义插件的分类,必填项
"展示"
],
"sort": 100 // 自定义插件的排序,非必填项
}
}
],
...
}
需要确保 package.json 中的 name 值唯一,version 值不重复。
$ npm publish
打开 NPM 配置文件(src/.npmrc),配置为制定仓库地址即可。
FAQs
amis自定义组件
The npm package aisuda-npm receives a total of 0 weekly downloads. As such, aisuda-npm popularity was classified as not popular.
We found that aisuda-npm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.