chore: move docs-util to www (#7232)
* reorganize docs apps * add README * fix directory * add condition for old docs * move docs-util to www * remove remaining docs-util * fixes of paths * fix scripts * path fixes * fix github actions * add build packages script
This commit is contained in:
1 parent
cf9605fe6f
commit
b39de05535
607 files changed
+183
-254
No files matched your search
@@ -34,8 +34,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Workspace dependencies
|
- name: Install Workspace dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Perform Freshness Check
|
- name: Perform Freshness Check
|
||||||
run: yarn check:freshness
|
run: yarn check:freshness
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
@@ -37,6 +37,13 @@ jobs:
|
|||||||
- name: Build Doc Apps
|
- name: Build Doc Apps
|
||||||
working-directory: www
|
working-directory: www
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
env:
|
||||||
|
NEXT_PUBLIC_BASE_URL: "http://localhost:3000"
|
||||||
|
NEXT_PUBLIC_DOCS_URL: "https://medusa-docs.vercel.app"
|
||||||
|
NEXT_PUBLIC_UI_URL: "https://docs-ui.vercel.app"
|
||||||
|
# TODO change once we have actual URLs
|
||||||
|
NEXT_PUBLIC_RESOURCES_URL: "http://example.com"
|
||||||
|
NEXT_PUBLIC_USER_GUIDE_URL: "http://example.com"
|
||||||
|
|
||||||
vale-book:
|
vale-book:
|
||||||
if: ${{ startsWith(github.head_ref, 'docs/') }}
|
if: ${{ startsWith(github.head_ref, 'docs/') }}
|
||||||
@@ -52,13 +59,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install docs-util Dependencies
|
- name: Install www/utils Dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
# reviewdog throws an error when the number
|
# reviewdog throws an error when the number
|
||||||
# of file changes in a PR is > 300, so
|
# of file changes in a PR is > 300, so
|
||||||
@@ -67,7 +74,7 @@ jobs:
|
|||||||
# less than 300. This is to avoid a PR hanging in
|
# less than 300. This is to avoid a PR hanging in
|
||||||
# an error state
|
# an error state
|
||||||
- name: Get PR files number
|
- name: Get PR files number
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
||||||
id: pr-files
|
id: pr-files
|
||||||
|
|
||||||
@@ -78,6 +85,7 @@ jobs:
|
|||||||
id: directories
|
id: directories
|
||||||
|
|
||||||
- name: Vale Linter
|
- name: Vale Linter
|
||||||
|
if: ${{ steps.pr-files.outputs.files_lt_threshold == 'true' }}
|
||||||
uses: errata-ai/vale-action@reviewdog
|
uses: errata-ai/vale-action@reviewdog
|
||||||
with:
|
with:
|
||||||
files: ${{ steps.directories.outputs.LIST }}
|
files: ${{ steps.directories.outputs.LIST }}
|
||||||
@@ -103,6 +111,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install www/utils Dependencies
|
||||||
|
run: yarn
|
||||||
|
working-directory: www/utils
|
||||||
|
|
||||||
|
- name: Build packages
|
||||||
|
run: yarn build
|
||||||
|
working-directory: www/utils
|
||||||
|
|
||||||
# reviewdog throws an error when the number
|
# reviewdog throws an error when the number
|
||||||
# of file changes in a PR is > 300, so
|
# of file changes in a PR is > 300, so
|
||||||
# we retrieve the number of changed files
|
# we retrieve the number of changed files
|
||||||
@@ -110,7 +126,7 @@ jobs:
|
|||||||
# less than 300. This is to avoid a PR hanging in
|
# less than 300. This is to avoid a PR hanging in
|
||||||
# an error state
|
# an error state
|
||||||
- name: Get PR files number
|
- name: Get PR files number
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
||||||
id: pr-files
|
id: pr-files
|
||||||
|
|
||||||
@@ -121,6 +137,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Vale Linter
|
- name: Vale Linter
|
||||||
uses: errata-ai/vale-action@reviewdog
|
uses: errata-ai/vale-action@reviewdog
|
||||||
|
if: ${{ steps.pr-files.outputs.files_lt_threshold == 'true' }}
|
||||||
with:
|
with:
|
||||||
files: ${{ steps.directories.outputs.LIST }}
|
files: ${{ steps.directories.outputs.LIST }}
|
||||||
fail_on_error: true
|
fail_on_error: true
|
||||||
@@ -145,6 +162,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install www/utils Dependencies
|
||||||
|
run: yarn
|
||||||
|
working-directory: www/utils
|
||||||
|
|
||||||
|
- name: Build packages
|
||||||
|
run: yarn build
|
||||||
|
working-directory: www/utils
|
||||||
|
|
||||||
# reviewdog throws an error when the number
|
# reviewdog throws an error when the number
|
||||||
# of file changes in a PR is > 300, so
|
# of file changes in a PR is > 300, so
|
||||||
# we retrieve the number of changed files
|
# we retrieve the number of changed files
|
||||||
@@ -152,7 +177,7 @@ jobs:
|
|||||||
# less than 300. This is to avoid a PR hanging in
|
# less than 300. This is to avoid a PR hanging in
|
||||||
# an error state
|
# an error state
|
||||||
- name: Get PR files number
|
- name: Get PR files number
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
||||||
id: pr-files
|
id: pr-files
|
||||||
|
|
||||||
@@ -162,8 +187,8 @@ jobs:
|
|||||||
id: directories
|
id: directories
|
||||||
|
|
||||||
- name: Vale Linter
|
- name: Vale Linter
|
||||||
if: ${{ steps.pr-files.outputs.files_lt_threshold == 'true' }}
|
|
||||||
uses: errata-ai/vale-action@reviewdog
|
uses: errata-ai/vale-action@reviewdog
|
||||||
|
if: ${{ steps.pr-files.outputs.files_lt_threshold == 'true' }}
|
||||||
with:
|
with:
|
||||||
files: ${{ steps.directories.outputs.LIST }}
|
files: ${{ steps.directories.outputs.LIST }}
|
||||||
fail_on_error: true
|
fail_on_error: true
|
||||||
@@ -188,13 +213,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install docs-util Dependencies
|
- name: Install www/utils Dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
# reviewdog throws an error when the number
|
# reviewdog throws an error when the number
|
||||||
# of file changes in a PR is > 300, so
|
# of file changes in a PR is > 300, so
|
||||||
@@ -203,7 +228,7 @@ jobs:
|
|||||||
# less than 300. This is to avoid a PR hanging in
|
# less than 300. This is to avoid a PR hanging in
|
||||||
# an error state
|
# an error state
|
||||||
- name: Get PR files number
|
- name: Get PR files number
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
||||||
id: pr-files
|
id: pr-files
|
||||||
|
|
||||||
@@ -240,13 +265,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install docs-util Dependencies
|
- name: Install www/utils Dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
# reviewdog throws an error when the number
|
# reviewdog throws an error when the number
|
||||||
# of file changes in a PR is > 300, so
|
# of file changes in a PR is > 300, so
|
||||||
@@ -255,7 +280,7 @@ jobs:
|
|||||||
# less than 300. This is to avoid a PR hanging in
|
# less than 300. This is to avoid a PR hanging in
|
||||||
# an error state
|
# an error state
|
||||||
- name: Get PR files number
|
- name: Get PR files number
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
|
||||||
id: pr-files
|
id: pr-files
|
||||||
|
|
||||||
@@ -321,6 +346,10 @@ jobs:
|
|||||||
working-directory: www
|
working-directory: www
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
|
- name: Build packages
|
||||||
|
working-directory: www
|
||||||
|
run: yarn build:packages
|
||||||
|
|
||||||
- name: Run Eslint
|
- name: Run Eslint
|
||||||
working-directory: www
|
working-directory: www
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
@@ -9,7 +9,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
referenceName:
|
referenceName:
|
||||||
description: 'Reference to Generate. Use either `all` or a name of a config file in `docs-util/packages/typedoc-config` such as `product`.'
|
description: 'Reference to Generate. Use either `all` or a name of a config file in `www/utils/packages/typedoc-config` such as `product`.'
|
||||||
required: false
|
required: false
|
||||||
default: 'all'
|
default: 'all'
|
||||||
|
|
||||||
@@ -48,30 +48,30 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Workspace dependencies
|
- name: Install Workspace dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Build Workspace dependencies
|
- name: Build Workspace dependencies
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Generate References
|
- name: Generate References
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
run: "yarn start generate ${{ github.event.inputs.referenceName }} --merge"
|
run: "yarn start generate ${{ github.event.inputs.referenceName }} --merge"
|
||||||
working-directory: docs-util/packages/typedoc-generate-references
|
working-directory: www/utils/packages/typedoc-generate-references
|
||||||
|
|
||||||
- name: Generate References
|
- name: Generate References
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
if: ${{ github.event_name != 'workflow_dispatch' }}
|
||||||
run: "yarn start generate all --merge"
|
run: "yarn start generate all --merge"
|
||||||
working-directory: docs-util/packages/typedoc-generate-references
|
working-directory: www/utils/packages/typedoc-generate-references
|
||||||
|
|
||||||
- name: Generate Changeset
|
- name: Generate Changeset
|
||||||
run: "yarn generate:changeset"
|
run: "yarn generate:changeset"
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
|
|
||||||
- name: Get PR Message
|
- name: Get PR Message
|
||||||
id: pr-message
|
id: pr-message
|
||||||
run: yarn generate:message
|
run: yarn generate:message
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
|
|||||||
@@ -22,18 +22,18 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
- name: Install docs-util Dependencies
|
- name: Install www/utils Dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Check Commit
|
- name: Check Commit
|
||||||
id: check-commit
|
id: check-commit
|
||||||
run: 'yarn check:release-commit ${{ github.sha }}'
|
run: 'yarn check:release-commit ${{ github.sha }}'
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GIT_OWNER: ${{ github.repository_owner }}
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- name: Run docblock generator
|
- name: Run docblock generator
|
||||||
if: steps.check-commit.outputs.is_release_commit == 'true'
|
if: steps.check-commit.outputs.is_release_commit == 'true'
|
||||||
run: "yarn start run:release"
|
run: "yarn start run:release"
|
||||||
working-directory: docs-util/packages/docblock-generator
|
working-directory: www/utils/packages/docblock-generator
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GIT_OWNER: ${{ github.repository_owner }}
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
- name: Generate Changeset
|
- name: Generate Changeset
|
||||||
if: steps.check-commit.outputs.is_release_commit == 'true'
|
if: steps.check-commit.outputs.is_release_commit == 'true'
|
||||||
run: "yarn generate:changeset"
|
run: "yarn generate:changeset"
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: steps.check-commit.outputs.is_release_commit == 'true'
|
if: steps.check-commit.outputs.is_release_commit == 'true'
|
||||||
@@ -78,18 +78,18 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
- name: Install docs-util Dependencies
|
- name: Install www/utils Dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Check Commit
|
- name: Check Commit
|
||||||
id: check-commit
|
id: check-commit
|
||||||
run: 'yarn check:release-commit ${{ github.sha }}'
|
run: 'yarn check:release-commit ${{ github.sha }}'
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GIT_OWNER: ${{ github.repository_owner }}
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
- name: Run docblock generator
|
- name: Run docblock generator
|
||||||
if: steps.check-commit.outputs.is_release_commit == 'true'
|
if: steps.check-commit.outputs.is_release_commit == 'true'
|
||||||
run: "yarn start run ../../../packages/medusa/src/api-v2 --type oas && yarn start clean:oas"
|
run: "yarn start run ../../../packages/medusa/src/api-v2 --type oas && yarn start clean:oas"
|
||||||
working-directory: docs-util/packages/docblock-generator
|
working-directory: www/utils/packages/docblock-generator
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GIT_OWNER: ${{ github.repository_owner }}
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
@@ -113,4 +113,4 @@ jobs:
|
|||||||
title: "chore(docs): Generated OAS"
|
title: "chore(docs): Generated OAS"
|
||||||
body: "This PR holds all generated OAS for the upcoming release."
|
body: "This PR holds all generated OAS for the upcoming release."
|
||||||
branch: "chore/generate-oas"
|
branch: "chore/generate-oas"
|
||||||
add-paths: docs-util/oas-output/**
|
add-paths: www/utils/generated/oas-output/**
|
||||||
@@ -42,13 +42,13 @@ jobs:
|
|||||||
- name: Generate API Reference
|
- name: Generate API Reference
|
||||||
run: yarn openapi:generate
|
run: yarn openapi:generate
|
||||||
|
|
||||||
- name: Install and Build docs-util dependencies
|
- name: Install and Build www/utils dependencies
|
||||||
run: yarn && yarn build
|
run: yarn && yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Generate Changeset
|
- name: Generate Changeset
|
||||||
run: "yarn generate:changeset"
|
run: "yarn generate:changeset"
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
@@ -92,13 +92,13 @@ jobs:
|
|||||||
- name: Generate API Reference (v2)
|
- name: Generate API Reference (v2)
|
||||||
run: yarn openapi:generate --v2
|
run: yarn openapi:generate --v2
|
||||||
|
|
||||||
- name: Install and Build docs-util dependencies
|
- name: Install and Build www/utils dependencies
|
||||||
run: yarn && yarn build
|
run: yarn && yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Generate Changeset
|
- name: Generate Changeset
|
||||||
run: "yarn generate:changeset"
|
run: "yarn generate:changeset"
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
@@ -141,19 +141,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Workspace dependencies
|
- name: Install Workspace dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Build Workspace dependencies
|
- name: Build Workspace dependencies
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: docs-util
|
working-directory: www/utils
|
||||||
|
|
||||||
- name: Generate UI Specs
|
- name: Generate UI Specs
|
||||||
run: yarn generate:ui
|
run: yarn generate:ui
|
||||||
working-directory: docs-util/packages/react-docs-generator
|
working-directory: www/utils/packages/react-docs-generator
|
||||||
|
|
||||||
- name: Generate Changeset
|
- name: Generate Changeset
|
||||||
run: "yarn generate:changeset"
|
run: "yarn generate:changeset"
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: www/utils/packages/scripts
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const getConfig = require("./utils/get-config")
|
|
||||||
|
|
||||||
module.exports = (options) => {
|
|
||||||
return getConfig({
|
|
||||||
...options,
|
|
||||||
generateModelsDiagram: true,
|
|
||||||
diagramAddToFile: options.entryPointPath,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/api-key/src/models/index.ts",
|
|
||||||
name: "api-key-models",
|
|
||||||
tsConfigName: "api-key.json",
|
|
||||||
})
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modulesConfig = require("./_modules")
|
|
||||||
|
|
||||||
module.exports = modulesConfig({
|
|
||||||
entryPointPath: "packages/types/src/api-key/service.ts",
|
|
||||||
name: "api-key",
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/customer/src/models/index.ts",
|
|
||||||
name: "customer-models",
|
|
||||||
tsConfigName: "customer.json",
|
|
||||||
})
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modulesConfig = require("./_modules")
|
|
||||||
|
|
||||||
module.exports = modulesConfig({
|
|
||||||
entryPointPath: "packages/types/src/customer/service.ts",
|
|
||||||
name: "customer",
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/inventory-next/src/models/index.ts",
|
|
||||||
name: "inventory-models",
|
|
||||||
tsConfigName: "inventory.json",
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/pricing/src/models/index.ts",
|
|
||||||
name: "pricing-models",
|
|
||||||
tsConfigName: "pricing.json",
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/product/src/models/index.ts",
|
|
||||||
name: "product-models",
|
|
||||||
tsConfigName: "product.json",
|
|
||||||
})
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json.schemastore.org/tsconfig",
|
|
||||||
"extends": [
|
|
||||||
"../../../packages/product/tsconfig.json"
|
|
||||||
],
|
|
||||||
"include": [
|
|
||||||
"../../../packages/product/src",
|
|
||||||
"../../../packages/utils/src/product"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/promotion/src/models/index.ts",
|
|
||||||
name: "promotion-models",
|
|
||||||
tsConfigName: "promotion.json",
|
|
||||||
})
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modulesConfig = require("./_modules")
|
|
||||||
|
|
||||||
module.exports = modulesConfig({
|
|
||||||
entryPointPath: "packages/types/src/promotion/service.ts",
|
|
||||||
name: "promotion",
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/sales-channel/src/models/index.ts",
|
|
||||||
name: "sales-channel-models",
|
|
||||||
tsConfigName: "sales-channel.json",
|
|
||||||
})
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modulesConfig = require("./_modules")
|
|
||||||
|
|
||||||
module.exports = modulesConfig({
|
|
||||||
entryPointPath: "packages/types/src/sales-channel/service.ts",
|
|
||||||
name: "sales-channel",
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/stock-location-next/src/models/index.ts",
|
|
||||||
name: "stock-location-models",
|
|
||||||
tsConfigName: "stock-location.json",
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modelConfig = require("./_models")
|
|
||||||
|
|
||||||
module.exports = modelConfig({
|
|
||||||
entryPointPath: "packages/store/src/models/index.ts",
|
|
||||||
name: "store-models",
|
|
||||||
tsConfigName: "store.json",
|
|
||||||
})
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
const modulesConfig = require("./_modules")
|
|
||||||
|
|
||||||
module.exports = modulesConfig({
|
|
||||||
entryPointPath: "packages/types/src/store/service.ts",
|
|
||||||
name: "store",
|
|
||||||
})
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import path from "path"
|
|
||||||
import dirname from "../utils/dirname.js"
|
|
||||||
|
|
||||||
export const rootPathPrefix = path.join(dirname(), "..", "..", "..", "..", "..")
|
|
||||||
|
|
||||||
export const docsUtilPathPrefix = path.join(rootPathPrefix, "docs-util")
|
|
||||||
|
|
||||||
export const jsonOutputPathPrefix = path.join(
|
|
||||||
docsUtilPathPrefix,
|
|
||||||
"typedoc-json-output"
|
|
||||||
)
|
|
||||||
+2
-2
@@ -4,6 +4,6 @@ displayed_sidebar: orderReference
|
|||||||
|
|
||||||
import { TypeList } from "docs-ui"
|
import { TypeList } from "docs-ui"
|
||||||
|
|
||||||
# UpdateOrderShippingMethodTaxLineDTO
|
# UpdateOrderTaxLineDTO
|
||||||
|
|
||||||
<TypeList types={[{"name":"id","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_rate_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"rate","type":"[BigNumberInput](../../types/order.BigNumberInput/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="UpdateOrderShippingMethodTaxLineDTO"/>
|
<TypeList types={[{"name":"id","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_rate_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"rate","type":"[BigNumberInput](../../types/order.BigNumberInput/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="UpdateOrderTaxLineDTO"/>
|
||||||
@@ -4,6 +4,6 @@ displayed_sidebar: orderReference
|
|||||||
|
|
||||||
import { TypeList } from "docs-ui"
|
import { TypeList } from "docs-ui"
|
||||||
|
|
||||||
# UpdateOrderTaxLineDTO
|
# UpdateOrderShippingMethodTaxLineDTO
|
||||||
|
|
||||||
<TypeList types={[{"name":"id","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_rate_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"rate","type":"[BigNumberInput](../../types/order.BigNumberInput/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="UpdateOrderTaxLineDTO"/>
|
<TypeList types={[{"name":"id","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_rate_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"rate","type":"[BigNumberInput](../../types/order.BigNumberInput/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="UpdateOrderShippingMethodTaxLineDTO"/>
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
"build:docs": "turbo run build --filter=docs-v2",
|
"build:docs": "turbo run build --filter=docs-v2",
|
||||||
"build:resources": "turbo run build --filter=resources",
|
"build:resources": "turbo run build --filter=resources",
|
||||||
"build:user-guide": "turbo run build --filter=user-guide",
|
"build:user-guide": "turbo run build --filter=user-guide",
|
||||||
|
"build:packages": "turbo run build --filter='./packages/*'",
|
||||||
"start": "turbo run start:monorepo",
|
"start": "turbo run start:monorepo",
|
||||||
"dev": "turbo run dev:monorepo",
|
"dev": "turbo run dev:monorepo",
|
||||||
"lint": "turbo run lint",
|
"lint": "turbo run lint",
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ module.exports = {
|
|||||||
ignorePatterns: [
|
ignorePatterns: [
|
||||||
".eslintrc.js",
|
".eslintrc.js",
|
||||||
"dist",
|
"dist",
|
||||||
"oas-output"
|
"generated"
|
||||||
],
|
],
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
@@ -94,9 +94,10 @@ module.exports = {
|
|||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: [
|
project: [
|
||||||
"./tsconfig.json",
|
"./tsconfig.json",
|
||||||
|
"./packages/docblock-generator/tsconfig.json",
|
||||||
"./packages/react-docs-generator/tsconfig.json",
|
"./packages/react-docs-generator/tsconfig.json",
|
||||||
"./packages/scripts/tsconfig.json",
|
"./packages/scripts/tsconfig.json",
|
||||||
"./packages/typedoc-config/tsconfig.json",
|
"./packages/typedoc-generate-references/tsconfig.json",
|
||||||
"./packages/typedoc-plugin-custom/tsconfig.json",
|
"./packages/typedoc-plugin-custom/tsconfig.json",
|
||||||
"./packages/typedoc-markdown-medusa-plugin/tsconfig.json",
|
"./packages/typedoc-markdown-medusa-plugin/tsconfig.json",
|
||||||
"./packages/types/tsconfig.json",
|
"./packages/types/tsconfig.json",
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 607 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user