Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
FLOW-934 Migrate to monorepo (#149)
Browse files Browse the repository at this point in the history
* monorepo Work in progress - monorepo

* monorepo docs stories fixed

* monorepo class renamed to className in mdx

* monorepo WIP

* monorepo Format code

* monorepo Add missing modules for storybook

* monorepo lineage stories updated

* monorepo WIP

* monorepo Fix building and formatting

* monorepo web-runner port updated

* monorepo Make all packages independent of one another

* monorepo Minor tweaks

* monorepo Delete custom JSON files

* monorepo Ignore custom json artifacts

* monorepo Add linting and lint-staged support

* monorepo Fix formatting

* monorepo f-accordion and f-breadcrumb global styles updated

* monorepo Add flow-config as a dependency to flow-core

* monorepo f-carousel global styles updated

* monorepo f-checkbox global styles added

* monorepo f-counter global styles updated

* monorepo f-date-time-picker global styles added

* monorepo f-divider global styles updated

* monorepo f-emoji-picker global styles updated

* monorepo f-field global styles added

* monorepo Remove TS shims and remove CSS references from readme

* monorepo FLOW-935 f-file-upload global css updated

* monorepo FLOW-935 f-form global css updated

* monorepo FLOW-935 f-form-group f-grid global css updated

* monorepo FLOW-935 f-icon global styles updated

* monorepo FLOW-935 f-icon-button global styles updated

* monorepo FLOW-935 f-input global styles updated

* monorepo FLOW-935 f-pictogram global styles updated

* monorepo Bump version for test run

* monorepo FLOW-935 f-popover and f-progress-bar  global styles updated

* monorepo FLOW-935 f-radio global styles updated

* monorepo Add Nikhil to codeowners

* monorepo Faster types generation and utilise monorepo for publishing

* monorepo FLOW-935 f-search global styles updated

* monorepo FLOW-935 f-select global styles updated

* monorepo FLOW-935 f-spacer global styles updated

* monorepo FLOW-935 f-switch and f-suggest global styles updated

* monorepo Fix storybook builds

* monorepo Fix TS build issue

* monorepo FLOW-935 f-tab global styles updated

* monorepo FLOW-935 f-tab-content global styles updated

* monorepo FLOW-935 f-tab-node global styles updated

* monorepo FLOW-935 f-tag global styles updated

* monorepo FLOW-935 f-template global styles updated

* monorepo FLOW-935 f-text global styles updated

* monorepo FLOW-935 f-text-area global styles updated

* monorepo FLOW-935 f-toast global styles updated

* monorepo FLOW-935 f-tooltip global styles updated

* monorepo Update build and release scripts

* monorepo FLOW-935 f-form-builder global styles updated

* monorepo FLOW-935 #storybook-root height added

* monorepo FLOW-935 flow-lineage global styles updated

* monorepo Fix form-builder compilation and externals

* monorepo FLOW-935 flow-code-editor flow-log flow-md-editor global styles updated

* monorepo Update to pnpm 8.9.0

* monorepo FLOW-935 flow-table global css updated

* monorepo Fix unnecessary build when testing

* monorepo Fix TS issues

* monorepo Simplify TS config

* monorepo Work in progress to improve docs structure

* monorepo Anatomy paths updated

* monorepo Fix playground css

* monorepo Fix body scroll

* monorepo stories re-structuring

* monorepo Disable minification and clean up build files

* monorepo form-builder about story added

* monorepo flow-log stories updated

* monorepo flow-md-editor stories updated

* monorepo storybook css updated

* monorepo Delete unused file

* monorepo files renamed

* monorepo renamed

* monorepo f-lineage tests updated

* monorepo f-lineage tests updated

* monorepo icon packages story renamed

* monorepo anotomy path updated

* monorepo release yml updated

* monorepo README added for lineage and formbuilder

* monorepo Fix or mute typescript issues

* monorepo Add a delay for flatpickr

* monorepo Mark as ready for release

* monorepo Fix TS types for stories

* monorepo lineage package types fixed

---------

Co-authored-by: vikas-cldcvr <[email protected]>
  • Loading branch information
NikhilVerma and vikas-cldcvr authored Oct 11, 2023
1 parent f62e071 commit 404f307
Show file tree
Hide file tree
Showing 590 changed files with 64,879 additions and 75,295 deletions.
18 changes: 9 additions & 9 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
node_modules
coverage
build
dist
dist/
bundle-analysis
storybook-static
lib/dist
!.storybook
**/dist
umd/
76 changes: 76 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
const path = require("path");

module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:storybook/recommended",
"prettier"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
sourceType: "module"
},
plugins: ["@typescript-eslint"],
env: {
browser: true,
node: true
},
rules: {
"no-prototype-builtins": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_"
}
]
},
overrides: [
{
files: ["rollup.config.js", "web-test-runner.config.js"],
env: {
node: true
}
},
{
files: ["stories/**"],
rules: {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off"
}
},
{
files: ["packages/**/*.ts"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:storybook/recommended",
"prettier"
],
parserOptions: {
project: path.resolve(__dirname, "./tsconfig.eslint.json")
},
rules: {
"@typescript-eslint/unbound-method": "off",

//@todo Remove individiual rules and fix them
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off"
}
},
{
files: ["**/*_test.ts", "**/*.test.ts", "**/custom_typings/*.ts"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-floating-promises": "off"
}
}
]
};
46 changes: 0 additions & 46 deletions .eslintrc.json

This file was deleted.

24 changes: 13 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
### Checklist for raising a PR

- [ ] Gone through UX documnetation for adding new features.
- [ ] All necessary unit tests covered.
- [ ] Required comments added for generating component manifest file? you can find details [here](https://custom-elements-manifest.open-wc.org/analyzer/getting-started/)
- [ ] Did you check the contributing doc?
- [ ] Did you check the existing issues for similar queries?


### Describe your PR


### Add additional question here

- [ ] `Yes`
- [ ] `No`
- [ ] `NA`
- [ ] `NA`
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Build

on:
push:
branches:
- main

defaults:
run:
shell: bash
working-directory: .

env:
DISTRIBUTION_ID: E1JYXHU7GFQMKF
BUCKET_NAME: flow.cldcvr.com
AWS_REGION: us-east-1
ROLE_NAME: flow.cldcvr.com-role
ACCOUNT_ID: 679519065279

jobs:
build:
name: Build and upload to amazon s3
Expand All @@ -24,13 +28,16 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js 16.x
- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 18.x

- name: Install pnpm
run: corepack enable && corepack prepare [email protected] --activate

- name: Install Dependencies and Build
run: export NODE_OPTIONS="--max_old_space_size=8192" && yarn && yarn build-packages && yarn build-storybook
run: make build

- name: Configure AWS credentials from Test account
uses: aws-actions/configure-aws-credentials@v1
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Lint checks

on:
workflow_dispatch:
pull_request:
branches:
- main
- main

defaults:
run:
shell: bash
working-directory: .

jobs:
lint:
name: Run lint checks
Expand All @@ -24,13 +27,13 @@ jobs:
node-version: 18.x

- name: Install pnpm
run: corepack enable && corepack prepare pnpm@7.26.3 --activate
run: corepack enable && corepack prepare pnpm@8.9.0 --activate

- name: Test build
run: make build
- name: Unit tests
run: make test

- name: ESlint
run: pnpm run lint

- name: Storybook
run: pnpm run build-storybook
Loading

0 comments on commit 404f307

Please sign in to comment.