From 2f8df0f7d4ccd879aaa7497619c6cd7d29fa1031 Mon Sep 17 00:00:00 2001 From: Artur Yorsh Date: Wed, 31 Oct 2018 15:38:17 +0300 Subject: [PATCH] build(common): add theme module --- src/framework/theme/index.ts | 1 + src/framework/theme/package.json | 13 +++++++++++++ src/framework/tsconfig.json | 6 +++++- src/framework/ui/index.ts | 1 + src/framework/ui/package.json | 15 +++++++++++++++ src/playground/src/App.component.tsx | 2 +- src/playground/tsconfig.json | 5 ++++- 7 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 src/framework/theme/index.ts create mode 100644 src/framework/theme/package.json create mode 100644 src/framework/ui/index.ts create mode 100644 src/framework/ui/package.json diff --git a/src/framework/theme/index.ts b/src/framework/theme/index.ts new file mode 100644 index 000000000..0658c0b57 --- /dev/null +++ b/src/framework/theme/index.ts @@ -0,0 +1 @@ +export const description = '@rk-kit/theme'; diff --git a/src/framework/theme/package.json b/src/framework/theme/package.json new file mode 100644 index 000000000..f1a3e1987 --- /dev/null +++ b/src/framework/theme/package.json @@ -0,0 +1,13 @@ +{ + "name": "@rk-kit/theme", + "version": "0.0.1", + "description": "rk-kit theme providing module", + "main": "index.ts", + "repository": "git+https://github.com/akveo/react-native-ui-kitten.git", + "author": "akveo ", + "license": "MIT", + "bugs": { + "url": "https://github.com/akveo/react-native-ui-kitten/issues" + }, + "homepage": "https://github.com/akveo/react-native-ui-kitten#readme" +} diff --git a/src/framework/tsconfig.json b/src/framework/tsconfig.json index 0b586a969..27a309aa9 100644 --- a/src/framework/tsconfig.json +++ b/src/framework/tsconfig.json @@ -11,7 +11,11 @@ "target": "es2017", "lib": [ "es2017" - ] + ], + "paths": { + "@rk-kit/theme": ["./theme"], + "@rk-kit/ui": ["./ui"] + } }, "typeRoots": [ "../../node_modules/@types" diff --git a/src/framework/ui/index.ts b/src/framework/ui/index.ts new file mode 100644 index 000000000..5a2d9d7c6 --- /dev/null +++ b/src/framework/ui/index.ts @@ -0,0 +1 @@ +export {Sample} from './sample/sample.component'; diff --git a/src/framework/ui/package.json b/src/framework/ui/package.json new file mode 100644 index 000000000..debb0a3c1 --- /dev/null +++ b/src/framework/ui/package.json @@ -0,0 +1,15 @@ +{ + "name": "@rk-kit/ui", + "version": "0.0.1", + "description": "rk-kit ui components", + "repository": "git+https://github.com/akveo/react-native-ui-kitten.git", + "author": "akveo ", + "license": "MIT", + "bugs": { + "url": "https://github.com/akveo/react-native-ui-kitten/issues" + }, + "homepage": "https://github.com/akveo/react-native-ui-kitten#readme", + "peerDependencies": { + "@rk-kit/theme": "file:../theme" + } +} diff --git a/src/playground/src/App.component.tsx b/src/playground/src/App.component.tsx index 19f8169b8..89932df87 100644 --- a/src/playground/src/App.component.tsx +++ b/src/playground/src/App.component.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {Sample} from '../../framework/ui/sample/sample.component'; +import {Sample} from '@rk-kit/ui'; export default class App extends React.Component { render() { diff --git a/src/playground/tsconfig.json b/src/playground/tsconfig.json index 01b41b4fb..e286ac2b1 100644 --- a/src/playground/tsconfig.json +++ b/src/playground/tsconfig.json @@ -11,7 +11,10 @@ "target": "es2017", "lib": [ "es2017" - ] + ], + "paths": { + "@rk-kit/*": ["../framework/*"] + } }, "typeRoots": [ "../../node_modules/@types"