configure repo for deployment to npm

This commit is contained in:
Silas 2021-11-25 12:45:24 -05:00
parent c94ae8960f
commit a9c5473c1c
Signed by: silentsilas
GPG Key ID: 4199EFB7DAA34349
7 changed files with 33709 additions and 1938 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@
# production # production
/build /build
/dist
# misc # misc
.DS_Store .DS_Store

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
nodejs 16.13.0

7
LICENSE Normal file
View File

@ -0,0 +1,7 @@
Copyright 2021 Intended
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.

35560
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,11 @@
{ {
"name": "intended-ui-library", "name": "@intended/intended-ui",
"description": "Storybook UI library for Intended Link",
"license": "MIT",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": false,
"main": "dist/index.js",
"repository": "https://git.silentsilas.com/Intended/attendant.git",
"dependencies": { "dependencies": {
"@testing-library/jest-dom": "^5.11.4", "@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0", "@testing-library/react": "^11.1.0",
@ -21,7 +25,7 @@
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "build": "cross-env NODE_ENV=production tsc -b",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject", "eject": "react-scripts eject",
"storybook": "start-storybook -p 6006 -s public", "storybook": "start-storybook -p 6006 -s public",
@ -56,12 +60,19 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.16.0",
"@storybook/addon-actions": "^6.3.8", "@storybook/addon-actions": "^6.3.8",
"@storybook/addon-essentials": "^6.3.8", "@storybook/addon-essentials": "^6.3.8",
"@storybook/addon-links": "^6.3.8", "@storybook/addon-links": "^6.3.8",
"@storybook/node-logger": "^6.3.8", "@storybook/node-logger": "^6.3.8",
"@storybook/preset-create-react-app": "^3.2.0", "@storybook/preset-create-react-app": "^3.2.0",
"@storybook/react": "^6.3.8", "@storybook/react": "^6.3.8",
"@types/styled-components": "^5.1.14" "@types/styled-components": "^5.1.14",
} "cross-env": "^7.0.3"
},
"files": [
"dist",
"LICENSE",
"README.md"
]
} }

View File

@ -1,26 +1,24 @@
import React from "react"; import * as styles from './shared/styles';
import ReactDOM from "react-dom"; import * as global from './shared/global';
import { GlobalStyle } from "../src/shared/global";
import App from "./App";
import App2 from "./App2";
import SplashPage from "./SplashPage";
import SecretCreationPage1 from "./SecretCreationPage1";
import SecretCreationPage2 from "./SecretCreationPage2";
import SecretCreationPage3 from "./SecretCreationPage3";
import VerifyPage from "./VerifyPage";
import SecretRevealPage from "./SecretRevealPage";
ReactDOM.render( export { styles, global };
<React.StrictMode>
<GlobalStyle /> export * from './stories/AutoResizingTextArea';
{/* <App /> */} export * from './stories/Button';
{/* <App2 /> */} export * from './stories/FileInput';
{/* <SplashPage /> */} export * from './stories/Header1';
{/* <SecretCreationPage1 /> */} export * from './stories/Header2';
{/* <SecretCreationPage2 /> */} export * from './stories/Header3';
{/* <SecretCreationPage3 /> */} export * from './stories/Icon';
{/* <VerifyPage /> */} export * from './stories/Input';
<SecretRevealPage /> export * from './stories/InputButtonWithIcon';
</React.StrictMode>, export * from './stories/Label';
document.getElementById("root") export * from './stories/ProgressIndicator';
); export * from './stories/Select';
export * from './stories/SplashIconHeader';
export * from './stories/TextArea';
export * from './stories/TextAreaParagraph';
export * from './stories/utilities/CenteredContainer';
export * from './stories/utilities/SpaceBetweenContainer';
export * from './stories/utilities/Spacer';
export * from './stories/utilities/TextAlignWrapper';

View File

@ -17,10 +17,11 @@
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"noEmit": true, "noEmit": false,
"jsx": "react-jsx" "jsx": "react-jsx",
"outDir": "dist"
}, },
"include": [ "files": [
"src" "src/index.tsx"
] ]
} }