Skip to content

Commit

Permalink
Merge pull request #148 from ctrlaltdavid/housekeeping
Browse files Browse the repository at this point in the history
Housekeeping
  • Loading branch information
ctrlaltdavid authored Jul 31, 2022
2 parents 8eb1d53 + 8a9cf5c commit 31e5561
Show file tree
Hide file tree
Showing 154 changed files with 178 additions and 27 deletions.
22 changes: 22 additions & 0 deletions PUBLISH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

# Publishing to NPM

Build for release:
```
npm run clean
npm run build-prod
```

Package for release:
```
npm pack
```

This creates the SDK package, `vircadia-web-sdk-vvvv.v.v.tgz`.

Publish the package to https://npmjs.com:

```
npm login
npm publish --access public
```
31 changes: 4 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ The SDK is written in TypeScript.
- [Project Configuration](CONFIGURATION.md)
- [Coding Standard](CODING_STANDARD.md)

To learn more about using Vircadia's metaverse ecosystem, see the [Developer Documentation](https://docs.vircadia.dev).
The SDK is published at NPM: https://www.npmjs.com/package/@vircadia/web-sdk

For scripting API documentation, see the [Vircadia API Reference](https://apidocs.vircadia.dev).
To learn more about using Vircadia's metaverse ecosystem, see the [Developer Documentation](https://docs.vircadia.dev).


## Prerequisites
Expand All @@ -32,7 +32,7 @@ https://nodejs.org/en/download/
[Jest](https://jestjs.io/) is used for unit testing. It is included as an NPM dev dependency, however, you may also install it globally if you want
to.

## Project setup
## Project Setup

### Get the source

Expand All @@ -57,7 +57,7 @@ npm install
```
Loads all the supporting NPM packages as defined in `package.json` into the `node_modules` directory.

## Development and testing
## Development and Testing

### Compile and minify for development
```
Expand Down Expand Up @@ -142,26 +142,3 @@ Developer documentation (includes SDK API documentation):
```
npm run devdoc
```


### Publish to NPM

Build for release:
```
npm run clean
npm run build-prod
```

Package for release:
```
npm pack
```

This creates the SDK package, `vircadia-web-sdk-vvvv.v.v.tgz`.

Publish the package to https://npmjs.com:

```
npm login
npm publish --access public
```
1 change: 1 addition & 0 deletions mocks/domain/audio/AudioWorklets.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 13 Dec 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions mocks/worker-url.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//
// Created by David Rowe on 13 Dec 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/AudioMixer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//
// Created by David Rowe on 24 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/Camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//
// Created by David Rowe on 5 May 2022.
// Copyright 2022 Vircadia contributors.
// Copyright 2022 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/MessageMixer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//
// Created by David Rowe on 23 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/Vircadia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//
// Created by David Rowe on 9 May 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/AssignmentClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 19 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/AvatarManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 29 Oct 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/audio-client/AudioClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 15 Sep 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/audio/AudioConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 11 Sep 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/audio/AudioInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 24 Sep 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/audio/AudioOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 19 Sep 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/audio/AudioWorklets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 13 Dec 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/audio/InboundAudioStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 16 Sep 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/avatars/AvatarDataPacket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 5 Nov 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/FingerprintUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 14 Jun 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/HMACAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 27 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/LimitedNodeList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 7 Jun 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/MessageData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 11 Jun 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/MessagesClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 2 Oct 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/NetworkPeer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 11 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 11 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/NodePermissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 11 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/NodeType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 18 May 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/PacketReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 8 Jun 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/PingType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 6 Sep 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/SockAddr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 7 Jun 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/SocketType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 1 Sep 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/AvatarIdentity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 29 Oct 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/AvatarQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 10 May 2022.
// Copyright 2022 Vircadia contributors.
// Copyright 2022 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/DomainConnectRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 7 Jun 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/DomainConnectionDenied.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 2 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/DomainDisconnectRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 26 Jul 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/DomainList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 9 Jun 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/DomainListRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 28 Jul 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/DomainServerRemovedNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 20 Aug 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/EntityQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by Julien Merzoug on 27 Apr 2022.
// Copyright 2022 Vircadia contributors.
// Copyright 2022 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/KillAvatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 3 Nov 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/MessagesData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 4 Oct 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
1 change: 1 addition & 0 deletions src/domain/networking/packets/MessagesSubscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// Created by David Rowe on 4 Oct 2021.
// Copyright 2021 Vircadia contributors.
// Copyright 2021 DigiSomni LLC.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down
Loading

0 comments on commit 31e5561

Please sign in to comment.