Skip to content

Commit

Permalink
feat: initial
Browse files Browse the repository at this point in the history
  • Loading branch information
vtereshyn committed May 19, 2022
0 parents commit b2b1b41
Show file tree
Hide file tree
Showing 29 changed files with 31,853 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.pnpm-store
node_modules
.pnpm-*
dist
tsconfig.tsbuildinfo
7 changes: 7 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
always-auth=true
@astrumu:registry=https://npm.pkg.github.com/
registry=https://registry.yarnpkg.com/
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
auto-install-peers=true
# public-hoist-pattern[]='*jest*'
# public-hoist-pattern[]='*@testing-library*'
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.4.2
198 changes: 198 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
{
"name": "pnpm-ts-monorepo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"engines": {
"node": "16.4.2"
},
"resolutions": {
"@kubernetes/client-node": "0.14.3",
"@pulumi/auth0": "2.8.0",
"@pulumi/azure": "5.1.0",
"@pulumi/azure-native": "1.62.0",
"@pulumi/kubernetes": "3.18.2",
"@pulumi/pulumi": "3.29.1",
"@pulumi/random": "4.4.2",
"class-transformer": "0.4.0",
"class-validator": "0.13.1",
"css-what": "5.0.1",
"graphql": "15.8.0",
"html-webpack-plugin": "5.3.2",
"jspdf": "2.3.1",
"multicast-dns": "7.2.3",
"normalize-url": "6.0.1",
"tar": "6.1.11",
"trim-newlines": "^3.0.0",
"axios": "0.26.1",
"set-value": "4.0.1",
"follow-redirects": "1.14.7",
"@astrumu/templates-modules-sendgrid": "^1.30.0",
"@astrumu/templates-modules-core": "^1.109.0",
"node-fetch": "2.6.7",
"minimist": "1.2.6",
"moment": "2.29.2",
"async": "3.2.2"
},
"scripts": {
"clean": "pnpm -r exec rm -rf {node_modules,dist,tsconfig.tsbuildinfo} --filter ./packages/**",
"build:ts": "tsc --build tsconfig.json",
"watch:ts": "pnpm build:ts -w --preserveWatchOutput"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "7.15.0",
"@babel/helper-builder-react-jsx": "7.14.5",
"@babel/helper-module-transforms": "7.15.0",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@babel/plugin-proposal-throw-expressions": "7.14.5",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.14.0",
"@babel/preset-react": "7.14.5",
"@babel/preset-typescript": "7.15.0",
"@changesets/cli": "2.21.1",
"@changesets/get-release-plan": "3.0.7",
"@changesets/parse": "0.3.13",
"@commitlint/cli": "13.2.1",
"@commitlint/config-conventional": "13.2.0",
"@cypress/react": "5.10.3",
"@cypress/webpack-dev-server": "1.7.0",
"@emotion/babel-plugin": "11.3.0",
"@emotion/eslint-plugin": "11.5.0",
"@emotion/react": "11.5.0",
"@graphql-codegen/cli": "2.3.0",
"@graphql-codegen/fragment-matcher": "2.0.1",
"@graphql-codegen/named-operations-object": "2.1.0",
"@graphql-codegen/schema-ast": "1.18.1",
"@graphql-codegen/typescript": "1.21.1",
"@graphql-codegen/typescript-operations": "1.17.15",
"@graphql-codegen/typescript-react-apollo": "2.2.3",
"@nestjs/testing": "8.2.3",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@storybook/addon-a11y": "6.4.22",
"@storybook/addon-actions": "6.4.22",
"@storybook/addon-docs": "6.4.22",
"@storybook/addon-jest": "6.4.22",
"@storybook/addon-knobs": "6.4.0",
"@storybook/addon-links": "6.4.22",
"@storybook/addons": "6.4.22",
"@storybook/builder-webpack5": "6.4.22",
"@storybook/manager-webpack5": "6.4.22",
"@storybook/preset-create-react-app": "4.1.0",
"@storybook/react": "6.4.22",
"@storybook/storybook-deployer": "2.8.11",
"@svgr/cli": "5.5.0",
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "12.0.0",
"@testing-library/react-hooks": "7.0.1",
"@testing-library/user-event": "13.2.1",
"@types/amplitude-js": "8.0.1",
"@types/apollo-upload-client": "14.1.0",
"@types/auth0": "2.34.2",
"@types/auth0-js": "9.14.5",
"@types/bluebird": "^3.5.36",
"@types/bluebird-global": "3.5.13",
"@types/bull": "3.15.3",
"@types/chance": "1.1.1",
"@types/connect-redis": "0.0.17",
"@types/copy-webpack-plugin": "8.0.1",
"@types/crypto-js": "4.0.2",
"@types/d3-scale": "4.0.1",
"@types/dompurify": "2.2.2",
"@types/dotenv-webpack": "7.0.3",
"@types/draft-js": "0.11.4",
"@types/draftjs-to-html": "0.8.1",
"@types/emoji-mart": "3.0.5",
"@types/express": "^4.17.13",
"@types/graphql-upload": "8.0.7",
"@types/html-to-draftjs": "1.4.0",
"@types/ioredis": "4.26.6",
"@types/jest": "26.0.23",
"@types/jsonwebtoken": "^8.5.8",
"@types/lodash": "4.14.172",
"@types/mime-types": "2.1.0",
"@types/next-tick": "1.0.0",
"@types/node": "16.4.12",
"@types/papaparse": "5.2.5",
"@types/parse-conflict-json": "^1.1.0",
"@types/passport-jwt": "3.0.6",
"@types/pluralize": "0.0.29",
"@types/react": "17.0.15",
"@types/react-animate-on-scroll": "2.1.4",
"@types/react-datepicker": "4.4.1",
"@types/react-dom": "17.0.9",
"@types/react-helmet": "6.1.2",
"@types/react-router-dom": "5.3.3",
"@types/react-slick": "0.23.5",
"@types/react-stripe-elements": "6.0.5",
"@types/react-text-mask": "5.4.9",
"@types/react-transition-group": "4.4.2",
"@types/redux-logger": "3.0.9",
"@types/request-ip": "0.0.37",
"@types/rimraf": "3.0.0",
"@types/swagger-ui-express": "4.1.3",
"@types/tar": "^6.1.1",
"@types/uuid": "8.3.0",
"@types/webpack-bundle-analyzer": "4.4.1",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "4.25.0",
"@typescript-eslint/parser": "4.25.0",
"babel-jest": "27.0.6",
"babel-loader": "8.2.2",
"babel-plugin-import": "1.13.3",
"babel-plugin-lodash": "3.3.4",
"babel-plugin-recharts": "2.0.0",
"babel-preset-react-app": "10.0.0",
"chance": "1.1.8",
"css-to-string-loader": "0.1.3",
"cypress": "9.1.0",
"cz-conventional-changelog": "3.3.0",
"elasticdump": "6.58.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-compat": "3.13.0",
"eslint-plugin-graphql": "4.0.0",
"eslint-plugin-import": "2.24.0",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-promise": "5.1.0",
"eslint-plugin-react": "7.24.0",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-security": "1.4.0",
"eslint-plugin-unicorn": "35.0.0",
"git-date-extractor": "4.0.1",
"graphql-cli": "4.1.0",
"husky": "4.3.0",
"jest": "27.0.6",
"jest-canvas-mock": "2.3.1",
"jest-chain": "1.1.5",
"jest-expect-message": "1.0.2",
"jest-extended": "0.11.5",
"jest-junit": "12.2.0",
"lerna": "4.0.0",
"license-checker": "25.0.1",
"nest-commander": "2.3.4",
"nodemon": "2.0.4",
"npm-run-all": "4.1.5",
"npm-scripts-info": "0.3.9",
"pino-pretty": "4.2.0",
"prettier": "2.3.2",
"prettier-eslint": "13.0.0",
"react-refresh": "0.12.0",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.2",
"storybook-addon-performance": "0.16.1",
"ts-jest": "27.0.5",
"ts-loader": "9.2.5",
"tslib": "2.2.0",
"typescript": "4.6.4",
"webpack": "5.72.0",
"webpack-bundle-analyzer": "4.5.0",
"webpack-cli": "4.9.1",
"webpack-dev-server": "4.7.4"
}
}
51 changes: 51 additions & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "client",
"version": "0.1.0",
"private": true,
"title": "Client",
"description": "Client",
"typings": "dist/index.d.ts",
"publishConfig": {
"access": "restricted",
"registry": "https://npm.pkg.github.com/"
},
"engines": {
"node": "16.4.2"
},
"scripts": {
"tsc": "tsc"
},
"license": "MIT",
"dependencies": {
"@apollo/client": "3.4.10",
"@babel/core": "7.15.0",
"@babel/helper-builder-react-jsx": "7.14.5",
"@babel/helper-module-transforms": "7.15.0",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@babel/plugin-proposal-throw-expressions": "7.14.5",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.14.0",
"@babel/preset-react": "7.14.5",
"@babel/preset-typescript": "7.15.0",
"babel-jest": "27.0.6",
"babel-loader": "8.2.2",
"babel-plugin-import": "1.13.3",
"babel-plugin-lodash": "3.3.4",
"babel-plugin-recharts": "2.0.0",
"babel-preset-react-app": "10.0.0",
"graphql": "15.8.0",
"history": "4.10.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hot-loader": "4.13.0",
"react-jss": "10.6.0",
"react-router-dom": "5.3.0",
"webpack": "^5.72.1",
"webpack-merge": "5.8.0",
"yup": "0.32.11"
},
"devDependencies": {
"webpack-cli": "^4.9.1"
}
}
15 changes: 15 additions & 0 deletions packages/client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* global process
* Core Platform App component
*/
import { FunctionComponent, ReactNode } from "react";

interface Props {
children: ReactNode;
}

const App: FunctionComponent<Props> = ({ children }) => {
return <>{children}</>;
};

export default App;
11 changes: 11 additions & 0 deletions packages/client/src/Root.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* global process */
import { FunctionComponent } from "react";
import { hot } from "react-hot-loader/root";
/**
* Components
*/
import App from "./App";

const Root: FunctionComponent = () => <App>hello</App>;

export default hot(Root);
11 changes: 11 additions & 0 deletions packages/client/src/index.dev.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { StrictMode } from "react";
import { render } from "react-dom";

import Root from "./Root";

render(
<StrictMode>
<Root />
</StrictMode>,
document.getElementById("app-root")
);
16 changes: 16 additions & 0 deletions packages/client/src/index.html.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
</head>

<body>
<div id="app-root"></div>
<div id="modal-root"></div>
</body>

</html>
4 changes: 4 additions & 0 deletions packages/client/src/index.prod.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { render } from 'react-dom';
import Root from './Root';

render(<Root />, document.getElementById('app-root'));
20 changes: 20 additions & 0 deletions packages/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "../../tsconfig.client.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"types": ["node"]
},
"references": [],
"include": ["src"],
"exclude": [
"node_modules",
"dist",
"__test__",
"**/*.spec.ts",
"**/__tests__",
".storybook",
"store/actions",
"store/reducers"
]
}
18 changes: 18 additions & 0 deletions packages/infra/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@vtereshyn/infra",
"version": "0.1.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"/dist"
],
"publishConfig": {
"access": "restricted",
"registry": "https://npm.pkg.github.com/"
},
"license": "MIT",
"dependencies": {
"@vtereshyn/service-1": "workspace:^0.1.0",
"@vtereshyn/service-2": "workspace:^0.1.0"
}
}
5 changes: 5 additions & 0 deletions packages/infra/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Service } from "@vtereshyn/service-1";
import { Service1 } from "@vtereshyn/service-2";

const service = new Service(3);
const service1 = new Service1(3);
Loading

0 comments on commit b2b1b41

Please sign in to comment.