@aligov/task
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

@aligov/task

政务任务SDK封装,主要内容包括 任务创建、任务查询、任务幂等、任务更新、 Cookie、网络请求、Util工具库等。

二次开发

开发方式

    import TaskFac, {Util} from "@aligov/task";

    const taskProps = {
     domain: 'xxxx', //cookie 相关操作都中在这个cookie 下面
     expires: 9999, // cookie 生效时间
      path: "/",
    };
    const TASK = new TaskFac(taskProps);
    TASK.createTask(type: any, request: any);
    TASK.queryTask(type: string | null, code?: string, status?: string)
    const t =  await Util.get(url,{data:123})

构建

构建 src 目录下的源码, 并生成 ES5 代码到 lib 目录中 NPM包代码统一只构建,不打包。统一css 采用scss 来做。

    just build

发布

发布组件至 tnpm 上

    npm publish
    tnpm publish

Readme

Keywords

Package Sidebar

Install

npm i @aligov/task

Weekly Downloads

25

Version

1.0.10

License

MIT

Unpacked Size

60.1 kB

Total Files

23

Last publish

Collaborators

  • jasoncapricorn
  • qingkaili
  • huguoxin
  • shenyu.wsy
  • liunian
  • tao1991123
  • itrip
  • xiazhiqiang
  • mo.zhou
  • guoliang.hgl
  • daip
  • baizhao