Skip to content

Commit 5c986aa

Browse files
committed
init: Initialize
0 parents  commit 5c986aa

Some content is hidden

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

48 files changed

+18363
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"],
8+
"rules": {
9+
"@nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36+
"env": {
37+
"jest": true
38+
},
39+
"rules": {}
40+
}
41+
]
42+
}

.github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
13+
jobs:
14+
main:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
# Connect your workspace on nx.app and uncomment this to enable task distribution.
22+
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
23+
# - run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
24+
25+
# Cache node_modules
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 20
29+
cache: 'npm'
30+
31+
- run: npm ci
32+
- uses: nrwl/nx-set-shas@v4
33+
34+
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
35+
# - run: npx nx-cloud record -- echo Hello World
36+
- run: npx nx affected -t lint test build

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
dist
5+
tmp
6+
/out-tsc
7+
8+
# dependencies
9+
node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
yarn-error.log
34+
testem.log
35+
/typings
36+
37+
# System Files
38+
.DS_Store
39+
Thumbs.db
40+
41+
.nx/cache
42+
.nx/workspace-data
43+
44+
# Nuxt dev/build outputs
45+
.output
46+
.data
47+
.nuxt
48+
.nitro
49+
.cache

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
strict-peer-dependencies=false
2+
auto-install-peers=true

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Add files here to ignore them from prettier formatting
2+
/dist
3+
/coverage
4+
/.nx/cache
5+
/.nx/workspace-data

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"printWidth": 120,
6+
"trailingComma": "all",
7+
"endOfLine": "auto",
8+
"semi": false
9+
}

.vscode/extensions.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"firsttris.vscode-jest-runner",
6+
"ms-playwright.playwright"
7+
]
8+
}

README.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# BtParts
2+
3+
<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>
4+
5+
**This workspace has been generated by [Nx, Smart Monorepos · Fast CI.](https://nx.dev)**
6+
7+
## Integrate with editors
8+
9+
Enhance your Nx experience by installing [Nx Console](https://nx.dev/nx-console) for your favorite editor. Nx Console
10+
provides an interactive UI to view your projects, run tasks, generate code, and more! Available for VSCode, IntelliJ and
11+
comes with a LSP for Vim users.
12+
13+
## Start the application
14+
15+
Run `npx nx serve server` to start the development server. Happy coding!
16+
17+
## Build for production
18+
19+
Run `npx nx build server` to build the application. The build artifacts are stored in the output directory (e.g. `dist/` or `build/`), ready to be deployed.
20+
21+
## Running tasks
22+
23+
To execute tasks with Nx use the following syntax:
24+
25+
```
26+
npx nx <target> <project> <...options>
27+
```
28+
29+
You can also run multiple targets:
30+
31+
```
32+
npx nx run-many -t <target1> <target2>
33+
```
34+
35+
..or add `-p` to filter specific projects
36+
37+
```
38+
npx nx run-many -t <target1> <target2> -p <proj1> <proj2>
39+
```
40+
41+
Targets can be defined in the `package.json` or `projects.json`. Learn more [in the docs](https://nx.dev/features/run-tasks).
42+
43+
## Set up CI!
44+
45+
Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further.
46+
47+
- [Set up remote caching](https://nx.dev/features/share-your-cache)
48+
- [Set up task distribution across multiple machines](https://nx.dev/nx-cloud/features/distribute-task-execution)
49+
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
50+
51+
## Explore the project graph
52+
53+
Run `npx nx graph` to show the graph of the workspace.
54+
It will show tasks that you can run with Nx.
55+
56+
- [Learn more about Exploring the Project Graph](https://nx.dev/core-features/explore-graph)
57+
58+
## Connect with us!
59+
60+
- [Join the community](https://nx.dev/community)
61+
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
62+
- [Follow us on Twitter](https://twitter.com/nxdevtools)

apps/client/.eslintrc.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": ["@nuxt/eslint-config", "../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*", ".nuxt/**", ".output/**", "node_modules"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"],
7+
"rules": {
8+
"vue/multi-word-component-names": "off"
9+
}
10+
}
11+
]
12+
}

apps/client/.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

apps/client/nuxt.config.ts

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
2+
import { defineNuxtConfig } from 'nuxt/config';
3+
4+
// https://nuxt.com/docs/api/configuration/nuxt-config
5+
export default defineNuxtConfig({
6+
workspaceDir: '../../',
7+
srcDir: 'src',
8+
devtools: { enabled: true },
9+
devServer: {
10+
host: 'localhost',
11+
port: 4200,
12+
},
13+
typescript: {
14+
typeCheck: true,
15+
tsConfig: {
16+
extends: '../tsconfig.app.json', // Nuxt copies this string as-is to the `./.nuxt/tsconfig.json`, therefore it needs to be relative to that directory
17+
},
18+
},
19+
imports: {
20+
autoImport: true,
21+
},
22+
23+
css: ['~/assets/css/styles.scss'],
24+
25+
vite: {
26+
plugins: [nxViteTsPaths()],
27+
},
28+
modules: ['@pinia/nuxt', '@nuxtjs/i18n']
29+
});

apps/client/project.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "client",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "application",
5+
"sourceRoot": "apps/client/src",
6+
"// targets": "to see all targets run: nx show project client --web",
7+
"targets": {}
8+
}

apps/client/src/app.vue

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<script setup lang="ts"></script>
2+
3+
<template>
4+
<main>
5+
<header>
6+
<nav>
7+
<NuxtLink to="/">
8+
Home
9+
</NuxtLink>
10+
<NuxtLink to="/about">
11+
About
12+
</NuxtLink>
13+
</nav>
14+
</header>
15+
<nuxt-page />
16+
</main>
17+
</template>
18+
19+
<style scoped lang="css">
20+
header {
21+
line-height: 1.5;
22+
max-width: 100vw;
23+
}
24+
25+
nav > a {
26+
padding-left: 1rem;
27+
padding-right: 1rem;
28+
}
29+
30+
@media (min-width: 768px) {
31+
header {
32+
display: flex;
33+
place-items: center;
34+
padding-right: calc(var(--section-gap) / 2);
35+
margin-left: auto;
36+
margin-right: auto;
37+
max-width: 768px;
38+
}
39+
40+
nav {
41+
text-align: left;
42+
font-size: 1rem;
43+
44+
padding: 1rem 0;
45+
margin-top: 1rem;
46+
}
47+
}
48+
</style>
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
html {
2+
-webkit-text-size-adjust: 100%;
3+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
4+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
5+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
6+
line-height: 1.5;
7+
tab-size: 4;
8+
scroll-behavior: smooth;
9+
}
10+
body {
11+
font-family: inherit;
12+
line-height: inherit;
13+
margin: 0;
14+
}
15+
h1,
16+
h2,
17+
p,
18+
pre {
19+
margin: 0;
20+
}
21+
*,
22+
::before,
23+
::after {
24+
box-sizing: border-box;
25+
border-width: 0;
26+
border-style: solid;
27+
border-color: currentColor;
28+
}
29+
h1,
30+
h2 {
31+
font-size: inherit;
32+
font-weight: inherit;
33+
}
34+
a {
35+
color: inherit;
36+
text-decoration: inherit;
37+
}
38+
pre {
39+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
40+
'Liberation Mono', 'Courier New', monospace;
41+
}

0 commit comments

Comments
 (0)