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: Introduced react and nestjs test applications #18

Merged
merged 21 commits into from
Aug 10, 2024
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
chore: Fixed both apps
  • Loading branch information
spuxx-dev committed Aug 6, 2024
commit 2a68051a3df715cd96ef7b73d8b40a87ab18cdbd
3 changes: 2 additions & 1 deletion apps/nest/package.json
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@
"devDependencies": {
"source-map-support": "^0.5.21",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1"
"ts-node": "^10.9.1",
"vite-plugin-node": "^3.1.0"
}
}
8 changes: 5 additions & 3 deletions apps/nest/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/// <reference types="vitest" />
import baseConfig from '../../vite.config';
import { mergeConfig, defineConfig } from 'vite';
import swc from 'unplugin-swc';
import { VitePluginNode } from 'vite-plugin-node';

export default mergeConfig(
baseConfig,
defineConfig({
plugins: [
swc.vite({
module: { type: 'es6' },
...baseConfig.plugins!,
VitePluginNode({
adapter: 'nest',
appPath: './src/main.ts',
}),
],
}),
10 changes: 6 additions & 4 deletions apps/react/package.json
Original file line number Diff line number Diff line change
@@ -8,12 +8,14 @@
"types": "tsc --noEmit"
},
"dependencies": {
"@spuxx/js-utils": "workspace:@spuxx/browser-utils@*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"@spuxx/browser-utils": "workspace:@spuxx/browser-utils@*",
"@spuxx/js-utils": "workspace:@spuxx/js-utils@*",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0"
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "^4.3.1"
}
}
2 changes: 1 addition & 1 deletion apps/react/translations/de.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
app:
title: '@spuxx/browser-utils'
title: 'spuxx/jslibs'
9 changes: 8 additions & 1 deletion apps/react/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/// <reference types="vitest" />
import baseConfig from '../../vite.config';
import { mergeConfig, defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import ViteYaml from '@modyfi/vite-plugin-yaml';

export default mergeConfig(baseConfig, defineConfig({}));
export default mergeConfig(
baseConfig,
defineConfig({
plugins: [...baseConfig.plugins!, ViteYaml(), react()],
}),
);
Loading
Oops, something went wrong.