Skip to content

Commit 0e916ef

Browse files
committed
chore: init workspace
1 parent d9d8dab commit 0e916ef

File tree

1,420 files changed

+1113
-698
lines changed

Some content is hidden

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

1,420 files changed

+1113
-698
lines changed

.github/workflows/branch-preview.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ jobs:
2424
- name: Install dependencies
2525
run: pnpm run deps:ci
2626

27-
- name: Install Storybook CLI
28-
run: pnpm i @storybook/[email protected]
27+
#- name: Install Storybook CLI
28+
# run: pnpm i @storybook/[email protected]
2929

3030
- name: Build Storybook
31-
run: pnpm run sb:build
31+
run: pnpm --filter @markdown-editor/demo sb:build
3232

3333
- name: Upload to S3
3434
uses: gravity-ui/preview-upload-to-s3-action@v1
3535
with:
36-
src-path: storybook-static
36+
src-path: demo/storybook-static
3737
dest-path: /md-editor/branches/${{ github.ref_name }}/
3838
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
3939
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
run: pnpm run deps:ci
5252

5353
- name: Unit Tests
54-
run: pnpm run test
54+
run: pnpm --filter '@gravity-ui/*' test
5555

5656
- name: ESBuild compatability
57-
run: pnpm run test:esbuild
57+
run: pnpm --filter '@gravity-ui/*' test:esbuild
5858

5959
check_circular_deps:
6060
name: Check Circular Dependencies
@@ -76,4 +76,4 @@ jobs:
7676
run: pnpm run deps:ci
7777

7878
- name: Check circular dependencies
79-
run: pnpm run check-circular-deps
79+
run: pnpm --filter '@gravity-ui/*' check-circular-deps

.github/workflows/main-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ jobs:
2424
- name: Install dependencies
2525
run: pnpm run deps:ci
2626

27-
- name: Install Storybook CLI
28-
run: pnpm i @storybook/[email protected]
27+
#- name: Install Storybook CLI
28+
# run: pnpm i @storybook/[email protected]
2929

3030
- name: Build Storybook
31-
run: pnpm run sb:build
31+
run: pnpm --filter @markdown-editor/demo sb:build
3232

3333
- name: Upload to S3
3434
uses: gravity-ui/preview-upload-to-s3-action@v1
3535
with:
36-
src-path: storybook-static
36+
src-path: demo/storybook-static
3737
dest-path: /md-editor/main/
3838
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
3939
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}

.github/workflows/pr-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323
- name: Install dependencies
2424
run: pnpm run deps:ci
2525

26-
- name: Install Storybook CLI
27-
run: pnpm i @storybook/[email protected]
26+
#- name: Install Storybook CLI
27+
# run: pnpm i @storybook/[email protected]
2828

2929
- name: Build Storybook
30-
run: pnpm run sb:build
30+
run: pnpm --filter @markdown-editor/demo sb:build
3131

3232
- name: Upload to S3
3333
uses: gravity-ui/preview-upload-to-s3-action@v1
3434
with:
35-
src-path: storybook-static
35+
src-path: demo/storybook-static
3636
dest-path: /md-editor/pulls/${{ github.event.pull_request.number }}/
3737
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
3838
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ build/
2222
coverage/
2323
storybook-static/
2424
.eslintcache
25-
demo/docs
25+
demo/src/docs
26+
debug-storybook.log
2627

2728
# tests
2829
playwright-report*
File renamed without changes.
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
import * as fs from 'fs/promises';
2-
import * as path from 'path';
3-
import {fileURLToPath} from 'url';
4-
import {dirname} from 'path';
1+
/* eslint-disable no-console */
2+
import * as fs from 'node:fs/promises';
3+
import * as path from 'node:path';
4+
import {dirname} from 'node:path';
5+
import {fileURLToPath} from 'node:url';
56

67
const __filename = fileURLToPath(import.meta.url);
78
const __dirname = dirname(__filename);
89

9-
const inputDir = path.join(__dirname, '../../docs');
10-
const outputDir = path.join(__dirname, '../../demo/docs');
10+
const inputDir = path.join(__dirname, '../../../docs');
11+
const outputDir = path.join(__dirname, '../../src/docs');
1112

1213
/**
1314
* Converts a kebab-case string to camelCase
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import {resolve, dirname} from 'node:path';
2-
import {fileURLToPath} from 'node:url';
31
import {createRequire} from 'node:module';
4-
import webpack from 'webpack';
2+
import {dirname, resolve} from 'node:path';
3+
import {fileURLToPath} from 'url';
4+
55
import type {StorybookConfig} from '@storybook/react-webpack5';
6+
import webpack from 'webpack';
67

78
const require = createRequire(import.meta.url);
89
const __filename = fileURLToPath(import.meta.url);
@@ -16,7 +17,7 @@ const config: StorybookConfig = {
1617
name: '@storybook/react-webpack5',
1718
options: {},
1819
},
19-
stories: ['../demo/**/*.mdx', '../demo/**/*.stories.@(js|jsx|ts|tsx)'],
20+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
2021
addons: [
2122
'./addons/generateDocs.ts',
2223
'@storybook/preset-scss',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {addons} from 'storybook/manager-api';
2+
23
import {themes} from './theme';
34

45
addons.setConfig({
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import type {Preview} from '@storybook/react-webpack5';
22
import {MINIMAL_VIEWPORTS} from 'storybook/viewport';
3-
import {withThemeProvider} from '../demo/hocs/withThemeProvider';
4-
import {withLang} from '../demo/hocs/withLang';
5-
import {withToaster} from '../demo/hocs/withToaster';
3+
4+
import {withLang} from '../src/hocs/withLang';
5+
import {withThemeProvider} from '../src/hocs/withThemeProvider';
6+
import {withToaster} from '../src/hocs/withToaster';
67

78
const preview: Preview = {
89
decorators: [withThemeProvider, withLang, withToaster],

0 commit comments

Comments
 (0)