aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-10-03 08:07:23 +0800
committerGitHub <noreply@github.com>2018-10-03 08:07:23 +0800
commitbce43a0050056195acb9c4890f57526985268da9 (patch)
treee45bd26d0c602d9a1d5a820fba61d56ee67cadab /packages/instant/src
parent678deccfcad5b0e9039b82b766def6b383ede786 (diff)
parent81b08c0339ba94167d4192261cc5ed42f7614019 (diff)
downloaddexon-sol-tools-bce43a0050056195acb9c4890f57526985268da9.tar
dexon-sol-tools-bce43a0050056195acb9c4890f57526985268da9.tar.gz
dexon-sol-tools-bce43a0050056195acb9c4890f57526985268da9.tar.bz2
dexon-sol-tools-bce43a0050056195acb9c4890f57526985268da9.tar.lz
dexon-sol-tools-bce43a0050056195acb9c4890f57526985268da9.tar.xz
dexon-sol-tools-bce43a0050056195acb9c4890f57526985268da9.tar.zst
dexon-sol-tools-bce43a0050056195acb9c4890f57526985268da9.zip
Merge pull request #1109 from 0xProject/feature/instant/init
[instant] Initialize the package with dev environment and tests etc..
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/zero_ex_instant.tsx5
-rw-r--r--packages/instant/src/globals.d.ts6
-rw-r--r--packages/instant/src/index.ts1
-rw-r--r--packages/instant/src/index.umd.ts10
4 files changed, 22 insertions, 0 deletions
diff --git a/packages/instant/src/components/zero_ex_instant.tsx b/packages/instant/src/components/zero_ex_instant.tsx
new file mode 100644
index 000000000..67e1b683d
--- /dev/null
+++ b/packages/instant/src/components/zero_ex_instant.tsx
@@ -0,0 +1,5 @@
+import * as React from 'react';
+
+export interface ZeroExInstantProps {}
+
+export const ZeroExInstant: React.StatelessComponent<ZeroExInstantProps> = () => <div>ZeroExInstant</div>;
diff --git a/packages/instant/src/globals.d.ts b/packages/instant/src/globals.d.ts
new file mode 100644
index 000000000..94e63a32d
--- /dev/null
+++ b/packages/instant/src/globals.d.ts
@@ -0,0 +1,6 @@
+declare module '*.json' {
+ const json: any;
+ /* tslint:disable */
+ export default json;
+ /* tslint:enable */
+}
diff --git a/packages/instant/src/index.ts b/packages/instant/src/index.ts
new file mode 100644
index 000000000..54059cdad
--- /dev/null
+++ b/packages/instant/src/index.ts
@@ -0,0 +1 @@
+export { ZeroExInstant, ZeroExInstantProps } from './components/zero_ex_instant';
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
new file mode 100644
index 000000000..d4eca177d
--- /dev/null
+++ b/packages/instant/src/index.umd.ts
@@ -0,0 +1,10 @@
+import * as React from 'react';
+import * as ReactDOM from 'react-dom';
+
+import { ZeroExInstant } from './index';
+
+export interface ZeroExInstantOptions {}
+
+export const render = (props: ZeroExInstantOptions, selector: string = '#zeroExInstantContainer') => {
+ ReactDOM.render(React.createElement(ZeroExInstant, props), document.querySelector(selector));
+};