Giter VIP home page Giter VIP logo

lovearth-xdua-browser-sdk's Introduction

lovearth-xdua-browser-sdk

地球号(xdua.com)是专为软件开发者提供的稳定、高效、安全,保密的云端用户管理平台。 无论是个人、团队、或是企业,都能够用地球号实现用户托管和二次开发。 地球号于2018年正式推出,由中科院计算所泛在计算中心开发,致力于为开发者提供优质稳定的用户托管服务。

Install

Install with npm:

npm i lovearth-xdua-browser-sdk

Install with yarn:

yarn add lovearth-xdua-browser-sdk --dev

Publish to npmjs

发布npm包,在package.json里修改版本号后,使用npm publish命令,可能会要求npm adduser 来添加用户.

npm run build
npm publish

我们发现一个问题,必须先要npm run build把dist文件夹建立起来,然后npm publish 才会把整个dist连同lib都发到库里,然后在www.xdua.com调用的时候调用的是npm发布的dist。

为什么使用dist而不是lib,是因为SDK根目录的index.js里面直接引用了dist而不是lib.

lib里是ES6的语法,改动要改在lib里,运行npm run build会把lib的code转成es5存放到dist里。

api用法

github账号:[email protected] h2b

lovearth-xdua-browser-sdk's People

Contributors

lovearthhome avatar jiaoshuai avatar sunless96 avatar yuanchenxi95 avatar

Watchers

James Cloos avatar  avatar  avatar

lovearth-xdua-browser-sdk's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.