Skip to content

Commit 8a07bfb

Browse files
committedMar 19, 2024
Initial commit
0 parents  commit 8a07bfb

File tree

8 files changed

+5034
-0
lines changed

8 files changed

+5034
-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

‎.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
- run: npm ci
31+
- uses: nrwl/nx-set-shas@v4
32+
33+
- run: npx nx-cloud record -- nx format:check
34+
- run: npx nx affected -t lint test build

‎.gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

‎.vscode/extensions.json

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

‎README.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Schematics
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+
## Nx plugins and code generators
14+
15+
Add Nx plugins to leverage their code generators and automated, inferred tasks.
16+
17+
```
18+
# Add plugin
19+
npx nx add @nx/react
20+
21+
# Use code generator
22+
npx nx generate @nx/react:app demo
23+
24+
# Run development server
25+
npx nx serve demo
26+
27+
# View project details
28+
npx nx show project demo --web
29+
```
30+
31+
Run `npx nx list` to get a list of available plugins and whether they have generators. Then run `npx nx list <plugin-name>` to see what generators are available.
32+
33+
Learn more about [code generators](https://nx.dev/features/generate-code) and [inferred tasks](https://nx.dev/concepts/inferred-tasks) in the docs.
34+
35+
## Running tasks
36+
37+
To execute tasks with Nx use the following syntax:
38+
39+
```
40+
npx nx <target> <project> <...options>
41+
```
42+
43+
You can also run multiple targets:
44+
45+
```
46+
npx nx run-many -t <target1> <target2>
47+
```
48+
49+
..or add `-p` to filter specific projects
50+
51+
```
52+
npx nx run-many -t <target1> <target2> -p <proj1> <proj2>
53+
```
54+
55+
Targets can be defined in the `package.json` or `projects.json`. Learn more [in the docs](https://nx.dev/features/run-tasks).
56+
57+
## Set up CI!
58+
59+
Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further.
60+
61+
- [Set up remote caching](https://nx.dev/features/share-your-cache)
62+
- [Set up task distribution across multiple machines](https://nx.dev/nx-cloud/features/distribute-task-execution)
63+
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
64+
65+
## Explore the project graph
66+
67+
Run `npx nx graph` to show the graph of the workspace.
68+
It will show tasks that you can run with Nx.
69+
70+
- [Learn more about Exploring the Project Graph](https://nx.dev/core-features/explore-graph)
71+
72+
## Connect with us!
73+
74+
- [Join the community](https://nx.dev/community)
75+
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
76+
- [Follow us on Twitter](https://twitter.com/nxdevtools)

‎nx.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"namedInputs": {
4+
"default": [
5+
"{projectRoot}/**/*",
6+
"sharedGlobals"
7+
],
8+
"production": [
9+
"default"
10+
],
11+
"sharedGlobals": []
12+
},
13+
"nxCloudAccessToken": "N2FlYmI2YWYtMzA5Yy00MTZkLWEzMzEtYzI4MzE5NTJjNmU2fHJlYWQtd3JpdGU="
14+
}

0 commit comments

Comments
 (0)
Failed to load comments.