This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

yt-app-js-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.3.35 • Public • Published

使用方法

安装依赖 npm 或 yarn

npm i --save yt-app-js-sdk
# or
yarn add yt-app-js-sdk

前端使用

import { YT } from 'yt-app-js-sdk'

更新镜像npm包版本

访问如下地址 https://npmmirror.com/sync/yt-app-js-sdk

tsconfig.json 配置

{
  "compilerOptions": {
    "baseUrl": ".",
    "target": "es5",
    "module": "commonjs",
    "declaration": true,
    "outDir": "",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true
  },
  "exclude": ["node_modules", "dist"]
}

NPM包依赖及执行命令

使用 npm 或 yarn

npm i -g typescript
npm i -g uglify-js

typescript转es5并压缩

tsc && uglifyjs index.js -c -m -o index.min.js

发布,发布前需切换到官方镜像

npm i -g nrm
nrm use npm

更新第三方镜像 访问: https://npmmirror.com/sync/yt-app-js-sdk

sdk文档

https://wiki.devops.yitong.com/zh/frontend/js-sdk

npm install yt-app-js-sdk@0.3.34 --registry="https://nexus.devops.yitong.com/repository/npm"

Readme

Keywords

none

Package Sidebar

Install

npm i yt-app-js-sdk

Weekly Downloads

3

Version

0.3.35

License

ISC

Unpacked Size

49.5 kB

Total Files

10

Last publish

Collaborators

  • csorz