1.0.5 • Published 6 months ago

uc-fun v1.0.5

Weekly downloads
53
License
ISC
Repository
-
Last release
6 months ago

uc-fun

工具函数库

USAGE

  • npm install -S uc-fun
  • npm install babel-plugin-transform-imports --save-dev
  • .babelrc plugin参数增加配置项
    {
      // package.json
      "babel": {
        "plugins": [
          ["transform-imports",
            {
              "uc-fun": {
                "transform": "uc-fun/lib/${member}",
                "preventFullImport": true
              }
            }
          ]
        ]
      }
    }
  • .eslintrc 配置。 当引入 uc-fun eslint报错的时候配置以下两行
    {
      // ...
      rules: {
        // ...
        "import/no-unresolved": "off",
        "import/extensions": "off",
      }
    }
  • import { timeFormat } from 'uc-fun';

CONTRIBUTION

Scripts

  • pnpm install
  • npm run docs 生成文档
  • npm test 测试
  • npm run build 构建
  • npm publish 发布

Quick Start

  • src 写函数逻辑
  • test 中是单测逻辑, 写完执行 npm test

REFERENCE

1.0.5

6 months ago

1.0.4

6 months ago

1.0.2

9 months ago

1.0.3

9 months ago

1.0.0

10 months ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago