Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

story(FVR-2133): BE-To upgrade the current Amity SDK/ Feed Upgrade to the latest version available #1

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5519719
Release/v3.0.0 (#41)
ptchayap Jan 19, 2024
177f740
fix: remove unused files and fix types
bonanaaaaaa Jan 24, 2024
66ce555
fix: chat avatar
bonanaaaaaa Jan 31, 2024
0cd1a41
chore: update sdk version to custom build version
bonanaaaaaa Jan 31, 2024
528a00b
chore: change @amityco/ts-sdk version
bonanaaaaaa Feb 1, 2024
f729824
fix: fix @amityco/ts-sdk version (#138)
bonanaaaaaa Feb 8, 2024
7c6d3a0
fix: useChannel instead of channel from livecollection (#139)
bonanaaaaaa Feb 9, 2024
285cbd2
feat: ASC-19739 - remove font awesome pro 1-17 (#127)
bonanaaaaaa Jan 29, 2024
46934d2
fix: ASC-00000 - remove fontawesome 35 51 (#118)
NaingAmity Jan 30, 2024
4e5d45f
feat: ASC-00000 - remove fontawesome pro icon (#116)
chaiwattsw Feb 6, 2024
d1f039c
feat(icon): ASC-19739 - remove font-awesome 18-34 (#128)
frankent Feb 6, 2024
250f213
fix: ASC-00000 - change fontawesome to svg 52-68 (#123)
ptchayap Feb 7, 2024
606d2cf
feat: fix icon width and height
bonanaaaaaa Feb 7, 2024
1743f2f
fix: width and height
ptchayap Feb 8, 2024
06603a6
fix: update icons
frankent Feb 9, 2024
e5947b5
fix: update icons
frankent Feb 9, 2024
bb7678a
fix: remove fa
frankent Feb 9, 2024
d488d5e
fix: remove fa
frankent Feb 9, 2024
b12bfdf
chore(release): 3.1.1
bmo-amity-bot Feb 9, 2024
ced3fc9
fix: ASC-20155 - fix message list scroll (#140)
bonanaaaaaa Feb 9, 2024
f2bafaa
chore(release): 3.1.2
bmo-amity-bot Feb 9, 2024
6571e0e
story(FVR2133): BE-To upgrade the current Amity SDK/ Feed Upgrade to …
nitinjhaSF Apr 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules/
storybook-build/
build/
build/

dist/
jest.config.js
44 changes: 44 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import', 'jest'],
root: true,
rules: {
'@typescript-eslint/no-empty-function': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
},
ignorePatterns: [
// Ignore build artifacts
'**/build',
'**/coverage',
'**/.webpackCache',
'**/node_modules',
'**/images',

// Ignore generated files
'**/__generated__',
'**/generated',
'*.graphql',
],
settings: {
'import/resolver': {
typescript: true,
node: true,
},
},
env: {
node: true,
browser: true,
jest: true,
},
};
30 changes: 19 additions & 11 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,29 @@ jobs:
- name: install node
uses: actions/setup-node@v2

- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: pnpm/action-setup@v2
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
version: 8
run_install: false

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: build storybook
run: npm run storybook:build
run: pnpm run storybook:build

- name: publish on s3
uses: jakejarvis/s3-sync-action@master
Expand Down
48 changes: 33 additions & 15 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Production release pipeline

on:
workflow_dispatch:
inputs:
release_as:
description: 'release as'
required: true

jobs:
publish:
Expand All @@ -16,27 +20,41 @@ jobs:
git config user.name "bmo-amity-bot"
git config user.email "[email protected]"

- name: install node
uses: actions/setup-node@v2
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: increase version (patch)
run: pnpm standard-version --yes
if: github.event.inputs.release_as == 'patch'

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: increase version (minor)
run: pnpm standard-version --yes --release-as minor
if: github.event.inputs.release_as == 'minor'

- name: increase version
run: npx standard-version --yes
- name: increase version (major)
run: pnpm standard-version --yes --release-as major
if: github.event.inputs.release_as == 'major'

- name: build
run: npm run build
run: pnpm run build

- name: publish on npm
uses: JS-DevTools/npm-publish@v1
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,29 @@ jobs:
- name: install node
uses: actions/setup-node@v2

- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: pnpm/action-setup@v2
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
version: 8
run_install: false

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: build storybook
run: npm run storybook:build
run: pnpm run storybook:build

- name: publish on s3
uses: jakejarvis/s3-sync-action@master
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,26 @@ jobs:
- name: install node
uses: actions/setup-node@v2

- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: pnpm/action-setup@v2
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
version: 8
run_install: false

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: eslint checks
run: npm run lint
run: pnpm run lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ storybook-build/
.env.local
.DS_Store
.eslintcache

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@fortawesome:registry=https://registry.npmjs.org
122 changes: 0 additions & 122 deletions .storybook/decorators/FluidControl.js

This file was deleted.

Loading
Loading