Skip to content

Commit e4a27c2

Browse files
authored
Merge pull request #222 from abhinavkrin/theming-foundation
Theming Foundation Set up
2 parents c070543 + e42452f commit e4a27c2

File tree

145 files changed

+19932
-1076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+19932
-1076
lines changed

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@
77
"packages/*"
88
],
99
"devDependencies": {
10-
"@rollup/plugin-replace": "^5.0.2",
1110
"esbuild": "^0.17.19",
1211
"lerna": "^6.6.2",
13-
"rollup": "^3.23.0",
14-
"rollup-plugin-dts": "^5.3.0",
15-
"rollup-plugin-esbuild": "^5.0.0",
1612
"typescript": "^5.1.3"
1713
}
1814
}

packages/api/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
},
1515
"author": "",
1616
"license": "ISC",
17+
"devDependencies": {
18+
"rollup": "^3.23.0",
19+
"rollup-plugin-dts": "^5.3.0",
20+
"rollup-plugin-esbuild": "^5.0.0",
21+
"rollup-plugin-serve": "^2.0.2"
22+
},
1723
"dependencies": {
1824
"@embeddedchat/auth": "./packages/auth",
1925
"@rocket.chat/sdk": "^1.0.0-alpha.42",

packages/api/rollup.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import dts from 'rollup-plugin-dts'
22
import esbuild from 'rollup-plugin-esbuild'
3-
import serve from 'rollup-plugin-serve'
4-
53
import packageJson from './package.json' assert { type: 'json' };
64

75
const name = packageJson.main.replace(/\.js$/, '');
@@ -14,7 +12,7 @@ const bundle = config => ({
1412

1513
export default [
1614
bundle({
17-
plugins: [esbuild(), serve('dist')],
15+
plugins: [esbuild()],
1816
output: [
1917
{
2018
file: `${name}.js`,

packages/auth/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"axios": "^1.4.0"
1818
},
1919
"devDependencies": {
20-
"parcel": "^2.9.1"
20+
"parcel": "^2.9.1",
21+
"rollup": "^3.23.0",
22+
"rollup-plugin-dts": "^5.3.0",
23+
"rollup-plugin-esbuild": "^5.0.0"
2124
}
2225
}

packages/react/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rollup.config.js

packages/react/.eslintrc.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parser": "@babel/eslint-parser",
3+
"env": {
4+
"browser": true,
5+
"es6": true
6+
},
7+
"extends": [
8+
"airbnb",
9+
"plugin:react/recommended",
10+
"prettier",
11+
"plugin:storybook/recommended"
12+
],
13+
"plugins": [
14+
"react",
15+
"prettier"
16+
],
17+
"rules": {
18+
"prettier/prettier": "error",
19+
"no-unused-vars": "warn",
20+
"no-console": "off",
21+
"no-underscore-dangle": "off",
22+
"no-unused-expressions": "off",
23+
"react/function-component-definition": "off",
24+
"react/require-default-props": "off",
25+
"react/jsx-filename-extension": [
26+
1,
27+
{
28+
"extensions": [
29+
".js",
30+
".jsx"
31+
]
32+
}
33+
],
34+
"arrow-body-style": [
35+
"error",
36+
"as-needed"
37+
],
38+
"import/prefer-default-export": "off",
39+
"camelcase": "off",
40+
"no-param-reassign": "off",
41+
"class-methods-use-this": "off",
42+
"consistent-return": "off",
43+
"react/forbid-prop-types": "off",
44+
"react/no-array-index-key": "off",
45+
"jsx-a11y/media-has-caption": "off",
46+
"jsx-a11y/alt-text": "off",
47+
"no-nested-ternary": "off",
48+
"no-undef": "error",
49+
"no-restricted-exports": "off",
50+
"react/destructuring-assignment": "off",
51+
"react/jsx-no-useless-fragment": "off",
52+
"react/jsx-props-no-spreading": "off",
53+
"import/no-cycle": 0,
54+
"import/no-extraneous-dependencies": "off",
55+
"react/no-unknown-property": ["error", { "ignore": ["css"] }]
56+
}
57+
}

packages/react/.gitignore

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port
105+
106+
# pnpm-lock
107+
pnpm-lock.yaml

packages/react/.gitpod.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
tasks:
2+
- name: Initialize RC server
3+
init: |
4+
docker-compose up -d
5+
- name: Initialize playground
6+
init: |
7+
npm install
8+
cd playground
9+
npm install
10+
cd ..
11+
command: npm run dev
12+
13+

packages/react/.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true
4+
}

packages/react/.storybook/main.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
2+
const config = {
3+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
4+
addons: [
5+
'@storybook/addon-links',
6+
'@storybook/addon-essentials',
7+
'@storybook/addon-interactions',
8+
],
9+
framework: {
10+
name: '@storybook/react-webpack5',
11+
options: {},
12+
},
13+
docs: {
14+
autodocs: 'tag',
15+
},
16+
};
17+
18+
export default config;

0 commit comments

Comments
 (0)