Skip to content

Commit

Permalink
updated build process, message signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
tylershuster committed Jan 26, 2021
1 parent b3bc45a commit c900219
Show file tree
Hide file tree
Showing 18 changed files with 529 additions and 14,260 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
*.log
.DS_Store
.vscode
node_modules
dist
.vscode
81 changes: 3 additions & 78 deletions example/browser.js

Large diffs are not rendered by default.

7,647 changes: 3 additions & 7,644 deletions example/node.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Urbit from './dist';
export { Urbit as default, Urbit };
20 changes: 17 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"name": "@urbit/http-api",
"version": "1.0.0",
"version": "1.1.0",
"license": "MIT",
"main": "dist/index.js",
"browser": "dist/browser.js",
"description": "Library to interact with an Urbit ship over HTTP",
"repository": "github:tylershuster/urbit",
"typings": "dist/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"browser": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
"node": ">=13"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "npm run clean && webpack --config webpack.prod.js",
"clean": "rm -rf dist/**/*.d.ts dist/**/*.js"
"build": "npm run clean && webpack --config webpack.prod.js && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
"clean": "rm -rf dist/*"
},
"peerDependencies": {},
"prettier": {
Expand All @@ -27,7 +28,6 @@
"trailingComma": "es5"
},
"author": "Tyler Brown Cifu Shuster",
"module": "dist/index.js",
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
Expand All @@ -48,6 +48,7 @@
"webpack-dev-server": "^3.11.0"
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"browser-or-node": "^1.3.0",
"browserify-zlib": "^0.2.0",
"buffer": "^5.7.1",
Expand Down
2 changes: 1 addition & 1 deletion src/app/base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Urbit from '../urbit';
import Urbit from '..';

export interface UrbitAppInterface {
airlock: Urbit;
Expand Down
39 changes: 0 additions & 39 deletions src/app/chat-hook.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/example/browser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Urbit from '../../dist/browser';
// import Urbit from '../../dist/browser';

window.Urbit = Urbit;
// window.Urbit = Urbit;
22 changes: 11 additions & 11 deletions src/example/node.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import Urbit from '../../dist/index';
// import Urbit from '../../dist/index';

async function blastOff() {
const airlock = await Urbit.authenticate({
ship: 'zod',
url: 'localhost:8080',
code: 'lidlut-tabwed-pillex-ridrup',
verbose: true
});
// async function blastOff() {
// const airlock = await Urbit.authenticate({
// ship: 'zod',
// url: 'localhost:8080',
// code: 'lidlut-tabwed-pillex-ridrup',
// verbose: true
// });

airlock.subscribe('chat-view', '/primary');
}
// airlock.subscribe('chat-view', '/primary');
// }

blastOff();
// blastOff();
Loading

0 comments on commit c900219

Please sign in to comment.