Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adiun committed Jun 28, 2021
1 parent 6c7b6dc commit 81d0042
Show file tree
Hide file tree
Showing 29 changed files with 51 additions and 610 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# vite-monorepo

A Vite and ESBuild based monorepo using NPM 7 Workspaces, Typescript, and React
A monorepo using:

- Vite / ESBuild
- NPM 7 Workspaces
- Typescript and Typescript Project References
- React component library
4 changes: 3 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "@adiun/vm-frontend",
"version": "0.1.0",
"scripts": {
"build": "vite build",
"build": "npm-run-all --parallel build:vite build:types",
"build:vite": "vite build",
"build:types": "tsc --build",
"lint:eslint": "eslint ./src --ext js,ts,tsx --max-warnings 0",
"lint:stylelint": "stylelint '**/*.ts[x]'",
"lint": "npm-run-all --parallel lint:eslint lint:stylelint",
Expand Down
9 changes: 8 additions & 1 deletion app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"extends": "@adiun/vm-scaffold/tsconfig.ui.json",
"compilerOptions": {
"noEmit": true,
"rootDir": "src"
}
},
"include": ["src"],
"references": [
{
"path": "../coreui"
}
]
}
31 changes: 19 additions & 12 deletions coreui/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
],
"core": {
"builder": "storybook-builder-vite"
}
}
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
core: {
builder: "storybook-builder-vite",
},
async viteFinal(config) {
return {
...config,
define: {
...config.define,
global: "window",
},
esbuild: {
...config.esbuild,
jsxInject: `import React from 'react'`,
},
};
},
};
5 changes: 4 additions & 1 deletion coreui/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import * as jest from "jest-mock";
window.jest = jest;

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
Expand All @@ -6,4 +9,4 @@ export const parameters = {
date: /Date$/,
},
},
}
};
4 changes: 3 additions & 1 deletion coreui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
".": "./lib/index.es.js"
},
"scripts": {
"build": "vite build",
"build": "npm-run-all --parallel build:vite build:types",
"build:vite": "vite build",
"build:types": "tsc --build",
"lint:eslint": "eslint ./src --ext js,ts,tsx --max-warnings 0",
"lint:stylelint": "stylelint '**/*.ts[x]'",
"lint": "npm-run-all --parallel lint:eslint lint:stylelint",
Expand Down
37 changes: 0 additions & 37 deletions coreui/src/stories/Button.stories.tsx

This file was deleted.

48 changes: 0 additions & 48 deletions coreui/src/stories/Button.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions coreui/src/stories/Header.stories.tsx

This file was deleted.

47 changes: 0 additions & 47 deletions coreui/src/stories/Header.tsx

This file was deleted.

Loading

0 comments on commit 81d0042

Please sign in to comment.