Skip to content

Commit

Permalink
Merge pull request #37 from mynaparrot/use_parcel
Browse files Browse the repository at this point in the history
use parcel
  • Loading branch information
jibon57 authored Apr 14, 2023
2 parents 9f70fee + e7497ba commit 3fea7f4
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 34 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dist
node_modules/
docs/
.DS_Store
.parcel-cache
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tslint.json
.eslintignore
.eslintrc.js
.DS_Store
.parcel-cache
node_modules/
src/
examples/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install plugnmeet-sdk-js
JavaScript:

```js
const plugNmeet = require('plugnmeet-sdk-js/cjs').PlugNmeet;
const plugNmeet = require('plugnmeet-sdk-js').PlugNmeet;

// now
const pnm = new plugNmeet(
Expand Down
2 changes: 1 addition & 1 deletion deno_dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Plug-N-Meet SDK for Deno. You can use this SDK to make API requests to the Plug-
You can change it according to latest version

```js
import { PlugNmeet } from 'https://deno.land/x/plugnmeet@v1.2.2/mod.ts';
import { PlugNmeet } from 'https://deno.land/x/plugnmeet@vX.X.X/mod.ts';

const pnm = new PlugNmeet(
'http://localhost:8080',
Expand Down
10 changes: 10 additions & 0 deletions deno_dist/types/createRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export type RoomFeaturesParams = {
external_media_player_features?: ExternalMediaPlayerFeatures;
waiting_room_features?: WaitingRoomFeatures;
breakout_room_features?: BreakoutRoomFeatures;
display_external_link_features?: DisplayExternalLinkFeatures;
ingress_features?: IngressFeatures;
};

export type RecordingFeaturesParams = {
Expand Down Expand Up @@ -66,6 +68,14 @@ export type BreakoutRoomFeatures = {
is_allow: boolean;
};

export type DisplayExternalLinkFeatures = {
is_allow: boolean;
}

export type IngressFeatures = {
is_allow: boolean;
}

export type LockSettingsParams = {
lock_microphone?: boolean;
lock_webcam?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion examples/getActiveRoomInfo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const plugNmeet = require('../dist/cjs').PlugNmeet;
const plugNmeet = require('../').PlugNmeet;

(async () => {
const pnm = new plugNmeet(
Expand Down
2 changes: 1 addition & 1 deletion examples/getRecordings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const plugNmeet = require('../dist/cjs').PlugNmeet;
const plugNmeet = require('../').PlugNmeet;

(async () => {
const pnm = new plugNmeet(
Expand Down
2 changes: 1 addition & 1 deletion examples/quickJoin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const plugNmeet = require('../dist/cjs').PlugNmeet;
const plugNmeet = require('../').PlugNmeet;

(async () => {
const roomId = "room01"; // must be unique.
Expand Down
49 changes: 28 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
{
"name": "plugnmeet-sdk-js",
"version": "1.2.2",
"version": "1.2.3",
"description": "plugNmeet JS SDK",
"author": "Jibon L. Costa",
"license": "MIT",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/cjs/index.js"
},
"source": "src/PlugNmeet.ts",
"main": "dist/main.js",
"module": "dist/module.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"src"
"dist"
],
"scripts": {
"start": "rm -rf ./dist && concurrently -c \"red,green\" --kill-others \"tsc --watch -p . --outDir ./dist && esw -w --ext '.ts','.js' --fix\"",
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
"build": "rm -rf ./dist && parcel build",
"build-docs": "typedoc --sort source-order"
},
"targets": {
"node": {
"isLibrary": true,
"engines": {
"node": ">= 16"
}
}
},
"devDependencies": {
"@types/node": "18.11.9",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.43.0",
"concurrently": "7.5.0",
"eslint": "8.28.0",
"eslint-config-prettier": "8.5.0",
"@parcel/packager-ts": "^2.8.3",
"@parcel/transformer-typescript-types": "^2.8.3",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "5.58.0",
"@typescript-eslint/parser": "5.58.0",
"concurrently": "8.0.1",
"eslint": "8.38.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-watch": "8.0.0",
"prettier": "2.7.1",
"typedoc": "0.23.23",
"typescript": "4.9.3"
"parcel": "^2.8.3",
"prettier": "2.8.7",
"typedoc": "0.24.1",
"typescript": "5.0.4"
}
}
}
10 changes: 10 additions & 0 deletions src/types/createRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export type RoomFeaturesParams = {
external_media_player_features?: ExternalMediaPlayerFeatures;
waiting_room_features?: WaitingRoomFeatures;
breakout_room_features?: BreakoutRoomFeatures;
display_external_link_features?: DisplayExternalLinkFeatures;
ingress_features?: IngressFeatures;
};

export type RecordingFeaturesParams = {
Expand Down Expand Up @@ -66,6 +68,14 @@ export type BreakoutRoomFeatures = {
is_allow: boolean;
};

export type DisplayExternalLinkFeatures = {
is_allow: boolean;
}

export type IngressFeatures = {
is_allow: boolean;
}

export type LockSettingsParams = {
lock_microphone?: boolean;
lock_webcam?: boolean;
Expand Down
8 changes: 0 additions & 8 deletions tsconfig-cjs.json

This file was deleted.

0 comments on commit 3fea7f4

Please sign in to comment.