Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

avoscloud-sdk

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avoscloud-sdk

AVOSCloud JavaScript SDK.

  • 0.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by10%
Maintainers
1
Weekly downloads
 
Created
Source

LeanCloud JavaScript SDK

JavaScript SDK for LeanCloud.

安装

npm

$ npm install avoscloud-sdk

bower

$ bower install leancloud-javascript-sdk

CDN 加速

<script src="https://cdn1.lncld.net/static/js/av-mini-{版本号}.js"></script>
// 或者你只是用最核心的存储、推送等功能,可以使用精简版的core.js
<script src="https://cdn1.lncld.net/static/js/av-core-mini-{版本号}.js"></script>

Changelog

开发指南

目录结构

├── README.md
├── bower.json
├── changelog.md
├── dist                               // 编译之后生成的文件将会在此目录下
├── gulpfile.js
├── lib
│   ├── acl.js
│   ├── av-browser.js                  // 浏览器环境入口文件,将会被 browserify 编译
│   ├── av-browser-core.js             // 浏览器环境入口文件,只包含核心依赖,将会被 browserify 编译
│   ├── av.js                          // node.js 环境入口文件
│   ├── bigquery.js
│   ├── browserify-wrapper             // 针对 node.js 与浏览器环境之间差异的不同实现
│   │   ├── localstorage-browser.js
│   │   ├── parse-base64-browser.js
│   │   ├── parse-base64.js
│   │   ├── upload-browser.js
│   │   ├── upload.js
│   │   └── xmlhttprequest-browser.js
│   ├── cloud.js
│   ├── cloudfunction.js
│   ├── collection.js
│   ├── error.js
│   ├── event.js
│   ├── facebook.js
│   ├── file.js
│   ├── geopoint.js
│   ├── history.js
│   ├── insight.js
│   ├── object.js
│   ├── op.js
│   ├── promise.js
│   ├── push.js
│   ├── query.js
│   ├── relation.js
│   ├── role.js
│   ├── router.js
│   ├── search.js
│   ├── status.js
│   ├── user.js
│   ├── utils.js
│   ├── version.js
│   └── view.js
├── package.json
├── readme.txt
├── test                               // 单元测试
│   ├── acl.js
│   ├── bigquery.js
│   ├── cloud.js
│   ├── collection.js
│   ├── error.js
│   ├── file.html
│   ├── file.js
│   ├── file_blob.html
│   ├── file_form.html
│   ├── geopoints.js
│   ├── object.js
│   ├── promise.js
│   ├── query.js
│   ├── search.js
│   ├── sms.js
│   ├── status.js
│   ├── test.html
│   ├── test.js
│   └── user.js
└── tools                              // 构建中依赖的第三方工具

Build

We use gulp to build the project.

how to use:

npm install -g gulp 
cd javascript-sdk
npm install
gulp pack       
gulp release    

内部发布

修改版本号
  • lib/version.js
  • package.json
  • bower.json
修改 Changelog
Release
gulp release
提交,打上 tag 并推送到 GitHub

tag 要求为 v{版本号},dist 目录也需要更新提交。

发布到 bower
bower register leancloud-javascript-sdk git@github.com:leancloud/javascript-sdk.git
发布到 npm
npm publish
发布到 CDN
gulp upload

License

MIT License

FAQs

Package last updated on 01 Sep 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc