@beisen/ocean-cmps

Usage no npm install needed!

<script type="module">
  import beisenOceanCmps from 'https://cdn.skypack.dev/@beisen/ocean-cmps';
</script>

README

启动

注:不能使用npm i

yarn yarn run examples

组件

  • 在src下,每一个文件夹为一个组件
  • 每个文件有:
    • src:组件源码

    • examples:Demo示例

      • preview:图片示例
      • default:默认的示例
      • ...other

      在 examples 增加一个文件夹是,可以npm run build-examples,npm run examples

    • .npmignore

    • CHANGELOG

    • README.md

    • package.json

      • name: "name": "@beisen/ocean- + 文件名

      • dependencies 分为两种方式:

        • link: 依赖src下的其它组件,@beisen/drawer": "link:../drawer",
        • npm : "@beisen-phoenix/input": "1.0.27"

    使用固定版本号

注意:

每一先安装一个包时,需要重新yarn

发包

  • ux-ocean-cmps-monorepo/package.json 里的 version

  • npm run commit

查看组件的构建状态

http://cmp.italent-inc.cn/jenkins/job/monorepo/