Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@alitajs/block-dev

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alitajs/block-dev

A umi plugin for develop a alita block with umi

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
7
Created
Source

umi-plugin-block-dev

NPM version NPM downloads

A umi plugin for develop a umi block with umi

Layout

blankLayout

image

ant-design-pro

image

ant-design-pro-user

image

Usage

Configure in .umirc.js,

export default {
  plugins: [['umi-plugin-block-dev', options]]
};

And you can use create-umi to create a umi block automatically:

$ yarn create umi --block

options

{
  layout: 'ant-design-pro', // or ant-design-pro-user
  menu: {
    name: 'demo',
    icon: 'home',
  },
  mockUmiRequest: true // whether to build mock data . _mock.js
}

env

  • BLOCK_DEV_PATH: custom block preview path
  • BLOCK_DEV_MOCK_UMI_REQUEST: package mock data to build result, for build static preview site
  • BLOCK_PAGES_LAYOUT: custom block Layout

LICENSE

MIT

FAQs

Package last updated on 14 Feb 2020

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