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

cp-ui

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cp-ui

React components library extracted from map/cp

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
6
50%
Maintainers
1
Weekly downloads
 
Created
Source

MAP/CP UI library

Setup

Install module and its dependencies

npm i --save-dev webpack-svgstore-plugin style-loader css-loader stylus-loader stylus

npm i --save cp-ui https://nexus.x2sy.com/repository/mgg-npm-private-group/

Add the following plugin to your webpack plugins section:

  new SvgStore({
    svgoOptions: {
      plugins: [
        {removeComments: true},
        {removeMetadata: true},
        {removeTitle: true},
        {removeDesc: true},
        {removeEmptyText: true},
        {removeAttrs: {attrs: '(stroke|fill|fill-opacity)' }},
        {cleanupIDs: true },
      ],
    },
    prefix: '',
    baseUrl: '',
  }),

Add the following rules to your webpack module.rules section:

      {
        test: /\.styl$/,
        loader: 'style-loader!css-loader!stylus-loader',
      },
      {
        test: /\.css$/,
        loader: 'style-loader!css-loader',
      }
    ],
  },

Development

npm run start

Build

npm run build

Storybook

npm run storybook

npm run build-storybook

Publishing

https://wiki.x2sy.com/pages/viewpage.action?spaceKey=MGG&title=Megogo+NPM

FAQs

Package last updated on 11 Mar 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