Skip to content

Commit

Permalink
feat: create npm package (#1)
Browse files Browse the repository at this point in the history
* refactor: convert to npm package

* feat: add webrtc stuff into tari connector

* fix package-lock.json

* add webrtc to the package

* fix package.json

* switch to rollup

* 1.11 working package

* 0.1.12

* 1.13 - fixed css

* add permissions

---------

Co-authored-by: Cifko <[email protected]>
  • Loading branch information
stringhandler and Cifko authored Apr 24, 2023
1 parent 4acdf0f commit 4155cb3
Show file tree
Hide file tree
Showing 22 changed files with 2,233 additions and 16,475 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# production
/build
/dist

# misc
.DS_Store
Expand Down
24 changes: 1 addition & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
# Tari Connector

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
For local testing do `npm link` in this directory and `npm link tari-connector` in the directory where you want to use it. So we don't have to publish the package just for testing.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module '*.png';
declare module '*.css';
declare module '*.otf';
15 changes: 15 additions & 0 deletions npm-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "tari_connector_button",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "TariLabs",
"license": "ISC",
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
Loading

0 comments on commit 4155cb3

Please sign in to comment.