open-index/open-npm huggingface dataset:
npm package: @newpearl-x/ui
Description: ```shell script npm i @newpearl-x/ui --save ``` ## vue.config.js 配置
Latest version: 0.1.2

# @newpearl-x/ui

## 安装
```shell script
npm i @newpearl-x/ui --save
```
## vue.config.js 配置

```js
const project = require('@newpearl-x/ui/lib/project');
const envConfig = require('./env.config') 
module.exports = project({
   // 环境变量配置
   envConfig: envConfig,
   // 环境变量标识名称
   envTypeName: 'ENV_TYPE',
   // 打包dll
   dll: false,
   // 注入scss变量文件路径
   scssVars: null,
   // 是否支持 prefetch 插件
   prefetch: false
 })
```

## 全局引用注册

```js
import Vue from 'vue'
import ElementUI from 'element-ui'
import NewPearlUI from '@newpearl-x/ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@newpearl-x/ui/lib/css/index.css'

Vue.use(ElementUI)
Vue.use(NewPearlUI)
```

## 按需引用注册

需要安装 babel-plugin-import

### babel.config.js 配置

```js
const createPlugins = require('@newpearl-x/ui/lib/project/babel');
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: [
    ...createPlugins('css', 'css')
  ]
};
```

### main.js
```js
import '@newpearl-x/ui/lib/css/base'
```

### 视图组件
```js
import { XAdmin } from '@newpearl-x/ui';

export default {
  components: {
    XAdmin
  }
}
```
npm package: @newpearl/mui
Description: ``` npm install ```
Latest version: 0.3.8

# uni-project

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @newpearl/ui
Description: PC端业务组件库
Latest version: 0.5.58

# @newpearl/ui

## 安装
```shell script
npm i @newpearl/ui --save
```

## 全局引用注册

```js
import Vue from 'vue'
import NewPearlUI from '@newpearl/ui'
import '@newpearl/ui/lib/css/index.css'

Vue.use(NewPearlUI)
```

## 按需引用注册

需要安装 @newpearl/core

### babel.config.js 配置

```js
const babel = require('@newpearl/core/babel');
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: [
     // 支持 css 或 scss
    ...babel({
      el: 'scss',
      ui: 'scss'
    })
  ]
};
```


### 引用组件
```js
import { XLogin } from '@newpearl/ui';
// 等价于：
// import XLogin from '@newpearl/ui/lib/x-login'
// import '@newpearl/ui/lib/x-login/style.scss'

export default {
  components: {
    XLogin
  }
}
```
npm package: @newpearl/utils
Description: 公共工具库
Latest version: 0.6.34-4

# @newpearl/utils

基础工具库

## 安装
```sh

npm i @newpearl/utils --save

```
## 引用
```js
// 方式一
import { Access, axios } from '@newpearl/utils';

// 方式二
import Access from '@newpearl/utils/lib/Access';
import axios from '@newpearl/utils/lib/axios'

// 方式三
import { isEqual } from '@newpearl/utils/lib/util'

```