Skip to content

Commit

Permalink
More stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance committed Dec 2, 2024
1 parent d769c38 commit 90f6e9e
Show file tree
Hide file tree
Showing 136 changed files with 1,542 additions and 5,234 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ A modular web application shell built on top of [Module Federation](https://mod
| [@squide/core](packages/core/README.md) | [![npm version](https://img.shields.io/npm/v/@squide/core)](https://www.npmjs.com/package/@squide/core) |
| [@squide/react-router](packages/react-router/README.md) | [![npm version](https://img.shields.io/npm/v/@squide/react-router)](https://www.npmjs.com/package/@squide/react-router) |
| [@squide/module-federation](packages/module-federation/README.md) | [![npm version](https://img.shields.io/npm/v/@squide/module-federation)](https://www.npmjs.com/package/@squide/module-federation) |
| [@squide/webpack-configs](packages/webpack-configs/README.md) | [![npm version](https://img.shields.io/npm/v/@squide/webpack-configs)](https://www.npmjs.com/package/@squide/webpack-configs) |
| [@squide/msw](packages/msw/README.md) | [![npm version](https://img.shields.io/npm/v/@squide/msw)](https://www.npmjs.com/package/@squide/msw) |
| [@squide/i18next](packages/i18next/README.md) | [![npm version](https://img.shields.io/npm/v/@squide/i18next)](https://www.npmjs.com/package/@squide/i18next) |
| [@squide/env-vars](packages/env-vars/README.md) | [![npm version](https://img.shields.io/npm/v/@squide/env-vars)](https://www.npmjs.com/package/@squide/env-vars) |
Expand Down
1 change: 0 additions & 1 deletion docs/reference/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ order: 200
| :icon-mark-github: [@squide/core](https://github.com/gsoft-inc/wl-squide/tree/main/packages/core) | Core functionalities of Squide. | [![npm version](https://img.shields.io/npm/v/@squide/core)](https://www.npmjs.com/package/@squide/core) |
| :icon-mark-github: [@squide/react-router](https://github.com/gsoft-inc/wl-squide/tree/main/packages/react-router) | Specific implementation of the core functionalities to support [React Router](https://reactrouter.com/en/main). | [![npm version](https://img.shields.io/npm/v/@squide/react-router)](https://www.npmjs.com/package/@squide/react-router) |
| :icon-mark-github: [@squide/module-federation](https://github.com/gsoft-inc/wl-squide/tree/main/packages/module-federation) | Add support for [Module Federation](https://module-federation.io/). | [![npm version](https://img.shields.io/npm/v/@squide/module-federation)](https://www.npmjs.com/package/@squide/module-federation) |
| :icon-mark-github: [@squide/webpack-configs](https://github.com/gsoft-inc/wl-squide/tree/main/packages/webpack-configs) | Utilities to configure [webpack](https://webpack.js.org/). | [![npm version](https://img.shields.io/npm/v/@squide/webpack-configs)](https://www.npmjs.com/package/@squide/webpack-configs) |
| :icon-mark-github: [@squide/msw](https://github.com/gsoft-inc/wl-squide/tree/main/packages/msw) | Add support for [MSW](https://mswjs.io/). | [![npm version](https://img.shields.io/npm/v/@squide/msw)](https://www.npmjs.com/package/@squide/msw) |
| :icon-mark-github: [@squide/i18next](https://github.com/gsoft-inc/wl-squide/tree/main/packages/i18next) | Add support for [i18next](https://www.i18next.com/). | [![npm version](https://img.shields.io/npm/v/@squide/i18next)](https://www.npmjs.com/package/@squide/i18next) |
| :icon-mark-github: [@squide/env-vars](https://github.com/gsoft-inc/wl-squide/tree/main/packages/env-vars) | Add support for environment variables. | [![npm version](https://img.shields.io/npm/v/@squide/env-vars)](https://www.npmjs.com/package/@squide/env-vars) |
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "Apache-2.0",
"scripts": {
"dev": "turbo run dev --filter=./packages/* --concurrency 12",
"dev2": "pnpm -r --parallel --filter=./packages/* run dev",
"build": "turbo run build --filter=./packages/*",
"ci-build": "turbo run build --filter=./packages/* --cache-dir=node_modules/.cache/turbo",
"test-no-build": "jest",
Expand All @@ -23,12 +24,12 @@
"clean": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf dist .turbo .rslib .netlify node_modules/.cache",
"reset": "pnpm clean && pnpm reset:modules",
"reset:modules": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf node_modules pnpm-lock.yaml",
"dev-basic": "turbo run dev --filter=./samples/basic/*",
"dev-basic": "pnpm -r --parallel --filter=./samples/basic/* run dev",
"build-basic": "turbo run build --filter=./samples/basic/*",
"ci-build-basic": "turbo run build --filter=./samples/basic/* --cache-dir=node_modules/.cache/turbo",
"serve-basic": "turbo run serve-build --filter=./samples/basic/*",
"deploy-basic": "cross-env NETLIFY=true turbo run deploy --filter=./samples/basic/*",
"dev-endpoints": "turbo run dev --filter=./samples/endpoints/*",
"dev-endpoints": "pnpm -r --parallel --filter=./samples/endpoints/* run dev",
"build-endpoints": "turbo run build --filter=./samples/endpoints/*",
"ci-build-endpoints": "turbo run build --filter=./samples/endpoints/* --cache-dir=node_modules/.cache/turbo",
"serve-endpoints": "turbo run serve-build --filter=./samples/endpoints/*",
Expand Down
7 changes: 2 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"README.md"
],
"scripts": {
"dev": "rslib build --watch --config ./rslib.dev.ts",
"build": "rslib build --config ./rslib.build.ts",
"foo": "pnpm publish --dry-run"
"build": "rslib build --config ./rslib.build.ts"
},
"peerDependencies": {
"react": "*"
Expand All @@ -40,9 +38,8 @@
"eventemitter3": "5.0.1"
},
"devDependencies": {
"@microsoft/api-extractor": "7.48.0",
"@rsbuild/plugin-react": "1.0.7",
"@rslib/core": "0.1.0",
"@rslib/core": "0.1.2",
"@swc/core": "1.8.0",
"@swc/jest": "0.2.37",
"@types/jest": "29.5.14",
Expand Down
11 changes: 5 additions & 6 deletions packages/core/rslib.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ export default defineConfig({
lib: [{
format: "esm",
syntax: "esnext",
bundle: true,
dts: {
bundle: true
}
bundle: false,
dts: true
}],
source: {
entry: {
index: "./src/index.ts"
}
index: "./src/**"
},
tsconfigPath: "./tsconfig.build.json"
},
output: {
target: "web",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "@workleap/typescript-configs/library.json",
"exclude": ["dist", "node_modules", "tests/__snapshots__"]
"include": ["src"],
"exclude": ["dist", "node_modules"]
}
7 changes: 0 additions & 7 deletions packages/env-vars/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Config } from "jest";
// import { pathsToModuleNameMapper } from "ts-jest";
import { swcConfig } from "./swc.jest.ts";
// import { compilerOptions } from "./tsconfig.json";

const config: Config = {
testEnvironment: "jsdom",
Expand All @@ -11,11 +9,6 @@ const config: Config = {
transform: {
"^.+\\.(js|ts|tsx)$": ["@swc/jest", swcConfig as Record<string, unknown>]
},
// moduleNameMapper: {
// ...pathsToModuleNameMapper(compilerOptions.paths, {
// prefix: "<rootDir>"
// })
// },
cacheDirectory: "./node_modules/.cache/jest"
};

Expand Down
23 changes: 10 additions & 13 deletions packages/env-vars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
"url": "git+https://github.com/gsoft-inc/wl-squide.git",
"directory": "packages/env-vars"
},
"type": "module",
"publishConfig": {
"access": "public",
"provenance": true
},
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
"provenance": true,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
}
},
"exports": "./src/index.ts",
"files": [
"/dist",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"dev": "rslib build --watch --config ./rslib.dev.ts",
"build": "rslib build --config ./rslib.build.ts"
},
"peerDependencies": {
Expand All @@ -39,9 +39,7 @@
"memoize": "10.0.0"
},
"devDependencies": {
"@microsoft/api-extractor": "7.48.0",
"@rsbuild/plugin-react": "1.0.7",
"@rslib/core": "0.1.0",
"@rslib/core": "0.1.2",
"@swc/core": "1.8.0",
"@swc/jest": "0.2.37",
"@types/jest": "29.5.14",
Expand All @@ -52,7 +50,6 @@
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"react": "18.3.1",
"ts-jest": "29.2.5",
"typescript": "5.5.4"
},
"sideEffects": false,
Expand Down
15 changes: 6 additions & 9 deletions packages/env-vars/rslib.build.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { pluginReact } from "@rsbuild/plugin-react";
import { defineConfig } from "@rslib/core";

export default defineConfig({
lib: [{
format: "esm",
syntax: "esnext",
bundle: true,
dts: {
bundle: true
}
bundle: false,
dts: true
}],
source: {
entry: {
index: "./src/index.ts"
}
index: "./src/**"
},
tsconfigPath: "./tsconfig.build.json"
},
output: {
target: "web",
Expand All @@ -22,6 +20,5 @@ export default defineConfig({
},
cleanDistPath: true,
minify: false
},
plugins: [pluginReact()]
}
});
5 changes: 5 additions & 0 deletions packages/env-vars/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@workleap/typescript-configs/library.json",
"include": ["src"],
"exclude": ["dist", "node_modules"]
}
5 changes: 0 additions & 5 deletions packages/env-vars/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "@workleap/typescript-configs/library.json",
// "compilerOptions": {
// "paths": {
// "@squide/core": ["../core/src/index.ts"]
// }
// },
"exclude": ["dist", "node_modules"]
}
29 changes: 14 additions & 15 deletions packages/fakes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,37 @@
"url": "git+https://github.com/gsoft-inc/wl-squide.git",
"directory": "packages/fakes"
},
"type": "module",
"publishConfig": {
"access": "public",
"provenance": true
},
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
"provenance": true,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
}
},
"exports": "./src/index.ts",
"files": [
"/dist",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"dev": "tsup --config ./tsup.dev.ts",
"build": "tsup --config ./tsup.build.ts"
"build": "rslib build --config ./rslib.build.ts"
},
"dependencies": {
"@squide/core": "workspace:*"
},
"devDependencies": {
"@rslib/core": "0.1.2",
"@workleap/eslint-plugin": "3.2.3",
"@workleap/tsup-configs": "3.0.6",
"@workleap/typescript-configs": "3.0.2",
"eslint": "8.57.0",
"tsup": "8.3.5",
"typescript": "5.5.4"
},
"dependencies": {
"@squide/core": "workspace:*"
},
"sideEffects": false,
"engines": {
"node": ">=21.1.0"
Expand Down
24 changes: 24 additions & 0 deletions packages/fakes/rslib.build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { defineConfig } from "@rslib/core";

export default defineConfig({
lib: [{
format: "esm",
syntax: "esnext",
bundle: false,
dts: true
}],
source: {
entry: {
index: "./src/**"
},
tsconfigPath: "./tsconfig.build.json"
},
output: {
target: "web",
distPath: {
root: "./dist"
},
cleanDistPath: true,
minify: false
}
});
5 changes: 5 additions & 0 deletions packages/fakes/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@workleap/typescript-configs/library.json",
"include": ["src"],
"exclude": ["dist", "node_modules"]
}
5 changes: 0 additions & 5 deletions packages/fakes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "@workleap/typescript-configs/library.json",
"compilerOptions": {
"paths": {
"@squide/core": ["../core/src/index.ts"]
}
},
"exclude": ["dist", "node_modules"]
}
3 changes: 0 additions & 3 deletions packages/fakes/tsup.build.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/fakes/tsup.dev.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/firefly-honeycomb/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Config } from "jest";
import { pathsToModuleNameMapper } from "ts-jest";
import { swcConfig } from "./swc.jest.ts";
import { compilerOptions } from "./tsconfig.json";

const config: Config = {
testEnvironment: "jsdom",
Expand All @@ -11,11 +9,6 @@ const config: Config = {
transform: {
"^.+\\.(js|ts|tsx)$": ["@swc/jest", swcConfig as Record<string, unknown>]
},
moduleNameMapper: {
...pathsToModuleNameMapper(compilerOptions.paths, {
prefix: "<rootDir>"
})
},
cacheDirectory: "./node_modules/.cache/jest"
};

Expand Down
Loading

0 comments on commit 90f6e9e

Please sign in to comment.