Skip to content

Commit

Permalink
feat(react): introducing react package
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mauroerta committed May 23, 2021
1 parent da916fc commit f99da40
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/react/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
16 changes: 16 additions & 0 deletions packages/react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div align="center">
<h1>@morfeo/react</h1>
</div>

**@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.

---

<div align="center">
<a href="https://github.com/VLK-STUDIO/morfeo">Documentation</a> |
<a href="https://github.com/VLK-STUDIO/morfeo">API</a> |
<a href="https://github.com/VLK-STUDIO/morfeo">Contributing</a> |
<a href="https://morfeo.slack.com">Slack</a>
</div>

---
46 changes: 46 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 2 additions & 0 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '@morfeo/web';
export * from '@morfeo/hooks';
8 changes: 8 additions & 0 deletions packages/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build",
},
"include": ["./src"],
"exclude": ["./node_modules", "./src/**/*.test.ts", "./src/**/*.spec.ts"]
}

0 comments on commit f99da40

Please sign in to comment.