New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

umi-plugin-pro-block-ts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

umi-plugin-pro-block-ts

A plugin for deliver umi block files like ant design pro structure

latest
Source
npmnpm
Version
1.3.8
Version published
Maintainers
1
Created
Source

umi-plugin-pro-block-ts

NPM version NPM downloads

A plugin for deliver umi block files like ant design pro structure.

When you use umi block demo to download a block, if you did not use this plugin, you will get:

- src
  - mock
  - pages
+   - demo
+     - index.js
+     - _mock.js
+     - service.js

And if you use it, you will get:

- src
  - mock
+   - demo.js
  - service.js
+   - demo.js
  - pages
+   - demo
+     - index.js

Ant will replace umi-request to util(s)/request.js if it exist.

Usage

Configure in .umirc.js,

export default {
  plugins: [["umi-plugin-pro-block-ts", {}]]
};

Options

{
  moveMock: false, // whether move _mock.js to mock, default to true
  moveService: false, // whether move service.js to src/services/, default to true
  modifyRequest: false, // whether modify umi-request to util(s)/request (if it exist), default to true
  autoAddMenu: false, // whether add name and icon config to route config when download a pro, default to true
}

LICENSE

MIT

FAQs

Package last updated on 20 Jul 2019

Did you know?

Socket

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.

Install

Related posts