Skip to content
Snippets Groups Projects
Commit be9f9b28 authored by Leonardo Christino's avatar Leonardo Christino
Browse files

build(sb): fixing branch for merge

parent 72f102a0
No related branches found
No related tags found
1 merge request!23Feat/query builder porting
Pipeline #122821 failed
node_modules/*
node_modules/
node_modules
{
"extends": ["plugin:react-hooks/recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true
}
},
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
declare module '*.module.css' {
const classes: { readonly [key: string]: string };
export default classes;
}
declare module '*.module.scss' {
const classes: { readonly [key: string]: string };
export default classes;
}
declare module '*.module.sass' {
const classes: { readonly [key: string]: string };
export default classes;
}
declare module '*.module.less' {
const classes: { readonly [key: string]: string };
export default classes;
}
declare module '*.module.styl' {
const classes: { readonly [key: string]: string };
export default classes;
}
/// <reference types="react" />
/// <reference types="react-dom" />
declare module '*.svg' {
import * as React from 'react';
export const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement> & { title?: string }
>;
const src: string;
export default src;
}
declare module '*.bmp' {
const src: string;
export default src;
}
declare module '*.gif' {
const src: string;
export default src;
}
declare module '*.jpg' {
const src: string;
export default src;
}
declare module '*.jpeg' {
const src: string;
export default src;
}
declare module '*.png' {
const src: string;
export default src;
}
declare module '*.avif' {
const src: string;
export default src;
}
declare module '*.webp' {
const src: string;
export default src;
}
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
"dev": "vite --host local.graphpolaris.com --port 4200", "dev": "vite --host local.graphpolaris.com --port 4200",
"dev2": "vite --host local.graphpolaris.com --port 4200", "dev2": "vite --host local.graphpolaris.com --port 4200",
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview" "preview": "vite preview",
"lint": "eslint *.ts*",
"test": "vitest run"
}, },
"dependencies": { "dependencies": {
"@graphpolaris/shared": "workspace:*", "@graphpolaris/shared": "workspace:*",
...@@ -37,6 +39,7 @@ ...@@ -37,6 +39,7 @@
"react-is": "^18.2.0", "react-is": "^18.2.0",
"typescript": "^4.9.3", "typescript": "^4.9.3",
"vite": "^4.2.0", "vite": "^4.2.0",
"vite-plugin-dts": "^2.1.0",
"vitest": "^0.29.2" "vitest": "^0.29.2"
} }
} }
...@@ -3,10 +3,14 @@ import { defineConfig } from 'vite'; ...@@ -3,10 +3,14 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc'; import react from '@vitejs/plugin-react-swc';
import path from 'path'; import path from 'path';
import basicSsl from '@vitejs/plugin-basic-ssl'; import basicSsl from '@vitejs/plugin-basic-ssl';
import dts from 'vite-plugin-dts';
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react(), basicSsl()], plugins: [react(), basicSsl(),
dts({
insertTypesEntry: true,
}),],
resolve: { resolve: {
alias: { alias: {
'@graphpolaris/shared/lib': path.resolve( '@graphpolaris/shared/lib': path.resolve(
......
{ {
"extends": ["plugin:react-hooks/recommended"], "extends": ["plugin:react-hooks/recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true
}
},
"ignorePatterns": ["!**/*"], "ignorePatterns": ["!**/*"],
"overrides": [ "overrides": [
{ {
......
export * from './index' // export * from './index';
...@@ -9,7 +9,8 @@ const config: StorybookConfig = { ...@@ -9,7 +9,8 @@ const config: StorybookConfig = {
// "../src/**/*.stories.@(js|jsx|ts|tsx)", // "../src/**/*.stories.@(js|jsx|ts|tsx)",
// "../node_modules/@graphpolaris/**/*.stories.@(js|jsx|ts|tsx)" // "../node_modules/@graphpolaris/**/*.stories.@(js|jsx|ts|tsx)"
"../node_modules/@graphpolaris/shared/lib/**/*.stories.@(js|jsx|ts|tsx)", "../node_modules/@graphpolaris/shared/lib/**/*.stories.@(js|jsx|ts|tsx)",
"../../../apps/web/src/**/*.stories.@(js|jsx|ts|tsx)", // "../node_modules/web/src/**/*.stories.@(js|jsx|ts|tsx)",
// "../../../apps/web/src/**/*.stories.@(js|jsx|ts|tsx)",
], ],
addons: [ addons: [
"@storybook/addon-links", "@storybook/addon-links",
...@@ -18,10 +19,10 @@ const config: StorybookConfig = { ...@@ -18,10 +19,10 @@ const config: StorybookConfig = {
{ {
name: '@storybook/addon-styling', name: '@storybook/addon-styling',
options: { options: {
sass: { // sass: {
// Require your Sass preprocessor here // Require your Sass preprocessor here
implementation: require('sass'), // implementation: require('sass'),
}, // },
}, },
}, },
{ {
......
...@@ -10,21 +10,21 @@ ...@@ -10,21 +10,21 @@
}, },
"dependencies": { "dependencies": {
"@graphpolaris/shared": "workspace:*", "@graphpolaris/shared": "workspace:*",
"web": "workspace:*",
"postcss-scss": "^4.0.6", "postcss-scss": "^4.0.6",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0"
"ui": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@storybook/addon-essentials": "next", "@storybook/addon-essentials": "next",
"@storybook/addon-interactions": "next", "@storybook/addon-interactions": "next",
"@storybook/addon-links": "^7.0.5", "@storybook/addon-links": "^7.0.7",
"@storybook/addon-styling": "^0.3.2", "@storybook/addon-styling": "^1.0.5",
"@storybook/blocks": "^7.0.5", "@storybook/blocks": "^7.0.7",
"@storybook/preset-scss": "^1.0.3", "@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^7.0.5", "@storybook/react": "^7.0.7",
"@storybook/react-vite": "^7.0.5", "@storybook/react-vite": "^7.0.7",
"@storybook/testing-library": "0.0.14-next.1", "@storybook/testing-library": "0.1.0",
"@types/node": "18.13.0", "@types/node": "18.13.0",
"@types/react": "^18.0.28", "@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11", "@types/react-dom": "^18.0.11",
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
"prop-types": "15.8.1", "prop-types": "15.8.1",
"sass": "^1.59.3", "sass": "^1.59.3",
"sass-loader": "^13.2.2", "sass-loader": "^13.2.2",
"storybook": "^7.0.5", "storybook": "^7.0.7",
"typescript": "^4.9.3", "typescript": "^4.9.3",
"vite": "^4.2.0", "vite": "^4.2.0",
"vite-plugin-sass-dts": "^1.3.2", "vite-plugin-sass-dts": "^1.3.2",
......
interface Props {
primary?: boolean;
size?: "small" | "large";
label?: string;
}
export const Button = ({
primary = false,
label = "Boop",
size = "small",
}: Props) => {
return (
<button
style={{
backgroundColor: primary ? "red" : "blue",
fontSize: size === "large" ? "24px" : "14px",
}}
>
{label}
</button>
);
};
import * as React from "react";
export * from "./Button";
{
"name": "ui",
"version": "0.0.0",
"main": "./index.tsx",
"types": "./index.tsx",
"license": "MIT",
"scripts": {
"lint": "eslint *.ts*"
},
"devDependencies": {
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"eslint": "^7.32.0",
"eslint-config-custom": "workspace:*",
"react": "^18.2.0",
"tsconfig": "workspace:*",
"typescript": "^4.5.2"
}
}
{
"extends": "tsconfig/react-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment