From f99da40a8b8fe0c440002e1065dbc73f7376f732 Mon Sep 17 00:00:00 2001 From: mauroerta Date: Sun, 23 May 2021 18:46:44 +0200 Subject: [PATCH] feat(react): introducing react package This package simply re-export @morfeo/web and @morfeo/hooks to easily use morfeo inside any React Application without knowing the internal architecture. From now on this package will be used inside any other "react-based" package and it will be suggested to be used inside a React environment inside the documentations. next commits will replace the imports of @morfeo/web and @morfeo/hooks from @morfeo/styled-components-web and the web-sandbox. --- packages/react/LICENSE | 25 ++++++++++++++++++++ packages/react/README.md | 16 +++++++++++++ packages/react/package.json | 46 ++++++++++++++++++++++++++++++++++++ packages/react/src/index.ts | 2 ++ packages/react/tsconfig.json | 8 +++++++ 5 files changed, 97 insertions(+) create mode 100644 packages/react/LICENSE create mode 100644 packages/react/README.md create mode 100644 packages/react/package.json create mode 100644 packages/react/src/index.ts create mode 100644 packages/react/tsconfig.json diff --git a/packages/react/LICENSE b/packages/react/LICENSE new file mode 100644 index 00000000..13491c21 --- /dev/null +++ b/packages/react/LICENSE @@ -0,0 +1,25 @@ + +The MIT License (MIT) + +Copyright (c) 2021 Mauro Erta. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/react/README.md b/packages/react/README.md new file mode 100644 index 00000000..b73377ec --- /dev/null +++ b/packages/react/README.md @@ -0,0 +1,16 @@ +
+

@morfeo/react

+
+ +**@morfeo/react** is part of the [@morfeo](https://github.com/VLK-STUDIO/morfeo) eco-system, a set of **framework-agnostic** tools that help you to create beautiful design systems for your web and mobile apps. + +--- + +
+ Documentation | + API | + Contributing | + Slack +
+ +--- diff --git a/packages/react/package.json b/packages/react/package.json new file mode 100644 index 00000000..071b9fa4 --- /dev/null +++ b/packages/react/package.json @@ -0,0 +1,46 @@ +{ + "name": "@morfeo/react", + "author": { + "name": "Mauro Erta", + "email": "mauro@vlkstudio.com" + }, + "private": false, + "version": "0.1.4", + "license": "MIT", + "main": "build/index.js", + "module": "build/index.js", + "types": "build/index", + "typings": "build/index", + "keywords": [ + "design", + "system", + "morfeo", + "morfeo-js", + "react" + ], + "scripts": { + "build": "rimraf build && tsc", + "watch": "tsc -w" + }, + "dependencies": { + "@morfeo/web": "^0.1.4", + "@morfeo/hooks": "^0.1.4" + }, + "peerDependencies": { + "csstype": "^3.0.8" + }, + "publishConfig": { + "access": "public" + }, + "files": [ + "build" + ], + "repository": { + "type": "git", + "url": "https://github.com/VLK-STUDIO/morfeo/tree/main/packages/web" + }, + "homepage": "https://github.com/VLK-STUDIO/morfeo/tree/main/packages/web", + "bugs": { + "url": "https://github.com/VLK-STUDIO/morfeo/issues" + } +} diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts new file mode 100644 index 00000000..fa95bca0 --- /dev/null +++ b/packages/react/src/index.ts @@ -0,0 +1,2 @@ +export * from '@morfeo/web'; +export * from '@morfeo/hooks'; diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json new file mode 100644 index 00000000..9ee04b7b --- /dev/null +++ b/packages/react/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "./build", + }, + "include": ["./src"], + "exclude": ["./node_modules", "./src/**/*.test.ts", "./src/**/*.spec.ts"] +}