Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

seller-base-service

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Issues
File Explorer

Advanced tools

seller-base-service

Seller Centre Base Service

    0.0.22unpublished

Version published
Maintainers
1
Weekly downloads
3
decreased by-57.14%

Weekly downloads

Readme

Source

seller-base-service

安装

npm install seller-base-service --save

使用

import { CommonServiceWithSip } from 'seller-base-service'; console.log(CommonServiceWithSip);

按需引入

安装babel-plugin-import,在babel的plugin中加入这段配置

[require('seller-base-service/dist/babel-config-for-main-project')]

Seller Center 按需引入

Seller Center 由于是多模块模式,因此需要使用的模块需要修改构建配置

{ externals: [Object.assign(config.getExternalsConfig(), { 'seller-base': config.getExternalsConfig(['@/framework'])['@/framework'] })], babelPlugin: config.mode === 'production' ? [require('seller-base-service/dist/babel-config-for-main-project')] : [] }

注意

  1. 不要修改删除.gitignore中已有部分
  2. 不要在本项目local.config.js加入个人定制的开发环境代码
  3. 开发一个模块MyService需要创建src/modules/my-service/index.tssrc/modules/my-service/service.ts至少两个文件,src/modules/my-service/index.ts不能有默认导出。
  4. 跨模块引入只能从其他模块入口index.ts,不能从其他模块的其他文件引入。
  5. Constants 作为 MyService 的静态属性,不要额外导出。
  6. src/modules/index.ts代码不能重命名导入。

开发

开发执行

  1. CLI准备,参考CLI文档安装部分
  2. 初始化项目(scc init -d)
  3. yarn start

构建

构建执行

  1. CLI准备,参考CLI文档安装部分
  2. 初始化项目(scc init -b)
  3. yarn build

FAQs

What is seller-base-service?

security holding package

Is seller-base-service popular?

The npm package seller-base-service receives a total of 3 weekly downloads. As such, seller-base-service popularity was classified as not popular.

Is seller-base-service well maintained?

We found that seller-base-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 0 open source maintainers collaborating on the project.

Last updated on 07 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc