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

chore(release): @khudadad414/studio-v1.1.1 #3

Open
wants to merge 79 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
3b60739
feat: include design system
fmvilas Jun 2, 2023
8aa009b
Remove unnecessary Github Actions on design-system
fmvilas Jun 2, 2023
41424b0
Removing unnecessary files
fmvilas Jun 2, 2023
e276368
Add netlify.toml to Studio
fmvilas Jun 2, 2023
52bd445
fix build
fmvilas Jun 2, 2023
bfa4238
Fix vulnerability Docker running as root
fmvilas Jun 2, 2023
7d51ec6
Set base directory for Netlify deploy
fmvilas Jun 2, 2023
0af78e2
Fix base directory
fmvilas Jun 2, 2023
f5dd3d1
change publish dir
fmvilas Jun 2, 2023
cd2431e
add netlify.toml on the root
fmvilas Jun 2, 2023
7376aa2
remove scripts on design-system
fmvilas Jun 2, 2023
6e54ad2
change publish dir
fmvilas Jun 2, 2023
4212ad6
set base and publish dirs
fmvilas Jun 2, 2023
6aba707
change base and publish dirs
fmvilas Jun 2, 2023
cf56944
change build command netlify
fmvilas Jun 2, 2023
58760da
Trying with root file now
fmvilas Jun 2, 2023
7a2a868
refactor netlify.toml files
fmvilas Jun 2, 2023
a724de9
Leave comment on netlify.toml file
fmvilas Jun 2, 2023
77647ae
Fix all sonarcloud bugs
fmvilas Jun 2, 2023
9710b18
change storybook to dev script
KhudaDad414 Jun 7, 2023
4a8ca2d
initial commit
KhudaDad414 Jun 8, 2023
acd84c9
ignore file
KhudaDad414 Jun 8, 2023
f055c79
Delete .env
KhudaDad414 Jun 8, 2023
e97dda7
resolve
KhudaDad414 Jun 8, 2023
43c80cb
Merge branch 'master' into mono
KhudaDad414 Jun 8, 2023
874c7e6
Merge pull request #2 from KhudaDad414/mono
KhudaDad414 Jun 8, 2023
247b4d2
feat: extra line added to design system
KhudaDad414 Jun 8, 2023
a8e37c1
package
KhudaDad414 Jun 9, 2023
959270d
final changes
KhudaDad414 Jun 9, 2023
cbcbb1d
reset app.service
KhudaDad414 Jun 9, 2023
7fc3a0c
fix: remove extra line(studio)
KhudaDad414 Jun 9, 2023
2828e63
feat: add extra line(ui)
KhudaDad414 Jun 9, 2023
0b6558e
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
383403e
feat: add line
KhudaDad414 Jun 9, 2023
c1d8bd4
feat: add line both
KhudaDad414 Jun 9, 2023
96cf507
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
3f99a13
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
6ccb77d
fix: remove line
KhudaDad414 Jun 9, 2023
2892e78
add test
KhudaDad414 Jun 9, 2023
711a6ef
fix: remove line
KhudaDad414 Jun 9, 2023
0dec727
fix: test
KhudaDad414 Jun 9, 2023
066f677
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
bdc0f27
feat: add new line
KhudaDad414 Jun 9, 2023
cb21a65
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
80620fe
fix: remove line
KhudaDad414 Jun 9, 2023
5dfe869
Create test-test.yml
KhudaDad414 Jun 9, 2023
59d7eaa
Empty Commit
KhudaDad414 Jun 9, 2023
d94aa58
Update test-test.yml
KhudaDad414 Jun 9, 2023
99f172f
Empty Commit
KhudaDad414 Jun 9, 2023
9579e75
Update test-test.yml
KhudaDad414 Jun 9, 2023
629d439
Empty Commit
KhudaDad414 Jun 9, 2023
d677f6f
Update test-test.yml
KhudaDad414 Jun 9, 2023
3ca0faf
Empty Commit
KhudaDad414 Jun 9, 2023
0013ca3
Update test-test.yml
KhudaDad414 Jun 9, 2023
acb8df0
Empty Commit
KhudaDad414 Jun 9, 2023
e305d50
Update test-test.yml
KhudaDad414 Jun 9, 2023
d45e5f4
Empty Commit
KhudaDad414 Jun 9, 2023
2155d49
Empty Commit
KhudaDad414 Jun 9, 2023
59aa471
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
28f0112
fix: Empty Commit
KhudaDad414 Jun 9, 2023
e00b19f
fix: Empty Commit
KhudaDad414 Jun 9, 2023
d095006
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
0a6da56
fix: Empty Commit
KhudaDad414 Jun 9, 2023
f433326
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
fb2a724
fix: Empty Commit
KhudaDad414 Jun 9, 2023
a7fd1d4
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
29fc071
fix: Empty Commit
KhudaDad414 Jun 9, 2023
f4523b2
Update if-nodejs-release.yml
KhudaDad414 Jun 9, 2023
1aebbb8
fix: Empty Commit
KhudaDad414 Jun 9, 2023
b9efdba
fix: Empty Commit
KhudaDad414 Jun 9, 2023
5e9be4e
fix: new line in ui
KhudaDad414 Jun 9, 2023
b3e011c
fix: remove extra line(ui)
KhudaDad414 Jun 9, 2023
c3e3452
feat: new line(studio)
KhudaDad414 Jun 9, 2023
83c5448
feat: added 1 to readme(both)
KhudaDad414 Jun 9, 2023
3f333a6
bump package
KhudaDad414 Jun 10, 2023
d1bf79d
Update if-nodejs-version-bump.yml
KhudaDad414 Jun 10, 2023
faaa924
fix: remove extra lines(studio)
KhudaDad414 Jun 10, 2023
e3fb4ac
Update if-nodejs-version-bump.yml
KhudaDad414 Jun 10, 2023
acbf6bc
chore(release): @khudadad414/studio-v1.1.1
Jun 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 18 additions & 59 deletions .github/workflows/if-nodejs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,58 +17,7 @@ on:
- alpha

jobs:

test-nodejs:
# We just check the message of first commit as there is always just one commit because we squash into one before merging
# "commits" contains array of objects where one of the properties is commit "message"
# Release workflow will be skipped if release conventional commits are not used
if: |
startsWith( github.repository, 'asyncapi/' ) &&
(startsWith( github.event.commits[0].message , 'fix:' ) ||
startsWith( github.event.commits[0].message, 'fix!:' ) ||
startsWith( github.event.commits[0].message, 'feat:' ) ||
startsWith( github.event.commits[0].message, 'feat!:' ))
name: Test NodeJS release on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout repository
uses: actions/checkout@v2
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
shell: bash
- if: steps.packagejson.outputs.exists == 'true'
name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
- if: steps.packagejson.outputs.exists == 'true'
name: Run test
run: npm test
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'Release workflow failed in testing job'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}

release:
needs: [test-nodejs]
name: Publish to any of NPM, Github, and Docker Hub
runs-on: ubuntu-latest
steps:
Expand All @@ -77,18 +26,28 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
- if: steps.packagejson.outputs.exists == 'true'
name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
- name: Check secrets
run: |
if [[ "${{ secrets.GH_TOKEN }}" == "" ]]; then
echo "Secret is not available. Skipping..."
exit 0
else
echo "Secret is available."
fi
- if: steps.packagejson.outputs.exists == 'true'
name: Publish to any of NPM, Github, and Docker Hub
id: release
Expand All @@ -97,10 +56,10 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GIT_AUTHOR_NAME: asyncapi-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_NAME: KhudaDad414
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: KhudaDad414
GIT_COMMITTER_EMAIL: [email protected]
run: npm run release
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
name: Report workflow run status to Slack
Expand All @@ -110,4 +69,4 @@ jobs:
fields: repo,action,workflow
text: 'Release workflow failed in release job'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
15 changes: 6 additions & 9 deletions .github/workflows/if-nodejs-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases
# in case release is created from release branch then we need to checkout from given branch
Expand All @@ -26,17 +26,14 @@ jobs:
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
- if: steps.packagejson.outputs.exists == 'true'
name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
- if: steps.packagejson.outputs.exists == 'true'
name: Assets generation
run: npm run generate:assets
- if: steps.packagejson.outputs.exists == 'true'
name: Bump version in package.json
# There is no need to substract "v" from the tag as version script handles it
Expand All @@ -49,8 +46,8 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'chore(release): ${{github.event.release.tag_name}}'
committer: asyncapi-bot <[email protected]>
author: asyncapi-bot <[email protected]>
committer: KhudaDad414
author: KhudaDad414
title: 'chore(release): ${{github.event.release.tag_name}}'
body: 'Version bump in package.json for release [${{github.event.release.tag_name}}](${{github.event.release.html_url}})'
branch: version-bump/${{github.event.release.tag_name}}
Expand All @@ -62,4 +59,4 @@ jobs:
fields: repo,action,workflow
text: 'Unable to bump the version in package.json after the release'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
24 changes: 24 additions & 0 deletions .github/workflows/test-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check secrets
run: |
if [[ "${{ vars.GH_TOKEN }}" == "" ]]; then
echo "Secret is not available. Skipping..."
exit 0
else
echo "Secret is available."
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.vscode/
/lib
/build
.env
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- init: npm install # runs during prebuild
command: npm start
command: npm start --workspace apps/studio

# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
15 changes: 15 additions & 0 deletions apps/design-system/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
],
"@babel/preset-react"
],
"plugins": []
}
29 changes: 29 additions & 0 deletions apps/design-system/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
node_modules
build
npm-debug.log
.env
.DS_Store# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.turbo
storybook-static

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
55 changes: 55 additions & 0 deletions apps/design-system/.storybook/GradientLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions apps/design-system/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export default {
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
{
name: "@storybook/addon-styling",
options: {
// Check out https://github.com/storybookjs/addon-styling/blob/main/docs/api.md
// For more details on this addon's options.
postCss: true,
},
},
"@storybook/addon-docs",
"@storybook/addon-mdx-gfm",
"@storybook/preset-typescript"
],
"framework": {
name: "@storybook/react-webpack5",
options: {}
},
typescript: {
reactDocgen: "react-docgen-typescript-plugin"
},
docs: {
autodocs: true
}
};
6 changes: 6 additions & 0 deletions apps/design-system/.storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { addons } from '@storybook/addons';
import storybookTheme from './storybook-theme';

addons.setConfig({
theme: storybookTheme,
});
14 changes: 14 additions & 0 deletions apps/design-system/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import '../src/index.css'

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
storySort: {
method: 'alphabetical'
},
}
9 changes: 9 additions & 0 deletions apps/design-system/.storybook/storybook-theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { create } from '@storybook/theming';

import brandImage from './GradientLogo.svg';

export default create({
brandTitle: 'AsyncAPI Design System',
brandUrl: 'https://asyncapi.com/',
brandImage,
});
21 changes: 21 additions & 0 deletions apps/design-system/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[![AsyncAPI Design System](/assets/github-repobanner-atom.png)](https://www.asyncapi.com)

# :deciduous_tree: Environment Setup

### :joystick: How to setup storybook locally

1

- Install all essential prerequisites before launching the Storybook environment locally. To install the dependencies, run the command below:

```cmd
npm install
```

- Now that you've installed all of the `node modules` in your project, you can launch the Storybook environment. To get started, type the command below:

```cmd
npm run storybook
```

- By default, this will launch your local Storybook environment on port `6006`.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading