Skip to content

Commit

Permalink
feat(experience, core): add experience legacy package (#6527)
Browse files Browse the repository at this point in the history
add experience legacy package
  • Loading branch information
simeng-li authored Sep 5, 2024
1 parent e2b5a25 commit 2d15625
Show file tree
Hide file tree
Showing 400 changed files with 23,627 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prepack": "pnpm -r prepack",
"dev": "pnpm -r prepack && pnpm start:dev",
"dev:cloud": "IS_CLOUD=1 CONSOLE_PUBLIC_URL=/ pnpm dev",
"start:dev": "pnpm -r --parallel --filter=!@logto/integration-tests --filter \"!./packages/connectors/connector-*\" dev",
"start:dev": "pnpm -r --parallel --filter=!@logto/integration-tests --filter=!@logto/experience-legacy --filter \"!./packages/connectors/connector-*\" dev",
"start": "cd packages/core && NODE_ENV=production node .",
"cli": "logto",
"translate": "logto-translate",
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@logto/core-kit": "workspace:^2.5.0",
"@logto/demo-app": "workspace:*",
"@logto/experience": "workspace:*",
"@logto/experience-legacy": "workspace:*",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.13.0",
"@logto/phrases-experience": "workspace:^1.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/middleware/koa-spa-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Properties = {

export default function koaSpaProxy<StateT, ContextT extends IRouterParamContext, ResponseBodyT>({
mountedApps,
packagePath = 'experience',
packagePath = EnvSet.values.isDevFeaturesEnabled ? 'experience' : 'experience-legacy',
port = 5001,
prefix = '',
queries,
Expand Down
22 changes: 22 additions & 0 deletions packages/experience-legacy/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: '@silverhand/react',
rules: {
'jsx-a11y/no-autofocus': 'off',
'unicorn/prefer-string-replace-all': 'off',
},
overrides: [
{
files: ['*.config.js', '*.config.ts', '*.d.ts'],
rules: {
'import/no-unused-modules': 'off',
},
},
{
files: ['*.d.ts'],
rules: {
'import/no-unassigned-import': 'off',
},
},
],
};
Loading

0 comments on commit 2d15625

Please sign in to comment.