Skip to content

Commit bf28f76

Browse files
committed
feat: initial scaffold
1 parent 84a5ad0 commit bf28f76

24 files changed

+9655
-1853
lines changed

.prettierignore

Lines changed: 5 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.verdaccio/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# path to a directory with all packages
2+
storage: ../tmp/local-registry/storage
3+
4+
# a list of other known repositories we can talk to
5+
uplinks:
6+
npmjs:
7+
url: https://registry.npmjs.org/
8+
maxage: 60m
9+
10+
packages:
11+
'**':
12+
# give all users (including non-authenticated users) full access
13+
# because it is a local registry
14+
access: $all
15+
publish: $all
16+
unpublish: $all
17+
18+
# if package is not available locally, proxy requests to npm registry
19+
proxy: npmjs
20+
21+
# log settings
22+
logs:
23+
type: stdout
24+
format: pretty
25+
level: warn
26+
27+
publish:
28+
allow_offline: true # set offline to true to allow publish offline

.vscode/extensions.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"recommendations": [
3-
4-
"nrwl.angular-console",
5-
"esbenp.prettier-vscode"
6-
]
2+
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode"]
73
}

README.md

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,3 @@
1-
# NgRspack
1+
# Ng Rspack
22

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-
✨ Your new, shiny [Nx workspace](https://nx.dev) is almost ready ✨.
6-
7-
[Learn more about this workspace setup and its capabilities](https://nx.dev/getting-started/intro#learn-nx?utm_source=nx_project&amp;utm_medium=readme&amp;utm_campaign=nx_projects) or run `npx nx graph` to visually explore what was created. Now, let's get you up to speed!
8-
9-
## Finish your CI setup
10-
11-
[Click here to finish setting up your workspace!](https://cloud.nx.app/connect/9ZBOec5Pcw)
12-
13-
14-
## Run tasks
15-
16-
To run tasks with Nx use:
17-
18-
```sh
19-
npx nx <target> <project-name>
20-
```
21-
22-
For example:
23-
24-
```sh
25-
npx nx build myproject
26-
```
27-
28-
These targets are either [inferred automatically](https://nx.dev/concepts/inferred-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) or defined in the `project.json` or `package.json` files.
29-
30-
[More about running tasks in the docs &raquo;](https://nx.dev/features/run-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
31-
32-
## Add new projects
33-
34-
While you could add new projects to your workspace manually, you might want to leverage [Nx plugins](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) and their [code generation](https://nx.dev/features/generate-code?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) feature.
35-
36-
To install a new plugin you can use the `nx add` command. Here's an example of adding the React plugin:
37-
```sh
38-
npx nx add @nx/react
39-
```
40-
41-
Use the plugin's generator to create new projects. For example, to create a new React app or library:
42-
43-
```sh
44-
# Genenerate an app
45-
npx nx g @nx/react:app demo
46-
47-
# Generate a library
48-
npx nx g @nx/react:lib some-lib
49-
```
50-
51-
You can use `npx nx list` to get a list of installed plugins. Then, run `npx nx list <plugin-name>` to learn about more specific capabilities of a particular plugin. Alternatively, [install Nx Console](https://nx.dev/getting-started/editor-setup?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) to browse plugins and generators in your IDE.
52-
53-
[Learn more about Nx plugins &raquo;](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) | [Browse the plugin registry &raquo;](https://nx.dev/plugin-registry?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
54-
55-
56-
[Learn more about Nx on CI](https://nx.dev/ci/intro/ci-with-nx#ready-get-started-with-your-provider?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
57-
58-
## Install Nx Console
59-
60-
Nx Console is an editor extension that enriches your developer experience. It lets you run tasks, generate code, and improves code autocompletion in your IDE. It is available for VSCode and IntelliJ.
61-
62-
[Install Nx Console &raquo;](https://nx.dev/getting-started/editor-setup?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
63-
64-
## Useful links
65-
66-
Learn more:
67-
68-
- [Learn more about this workspace setup](https://nx.dev/getting-started/intro#learn-nx?utm_source=nx_project&amp;utm_medium=readme&amp;utm_campaign=nx_projects)
69-
- [Learn about Nx on CI](https://nx.dev/ci/intro/ci-with-nx?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
70-
- [Releasing Packages with Nx release](https://nx.dev/features/manage-releases?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
71-
- [What are Nx plugins?](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
72-
73-
And join the Nx community:
74-
- [Discord](https://go.nx.dev/community)
75-
- [Follow us on X](https://twitter.com/nxdevtools) or [LinkedIn](https://www.linkedin.com/company/nrwl)
76-
- [Our Youtube channel](https://www.youtube.com/@nxdevtools)
77-
- [Our blog](https://nx.dev/blog?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
3+
A set of Rspack Plugins and Loaders to build Angular applications lightning fast!

eslint.config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
const nx = require('@nx/eslint-plugin');
2+
3+
module.exports = [
4+
...nx.configs['flat/base'],
5+
...nx.configs['flat/typescript'],
6+
...nx.configs['flat/javascript'],
7+
{
8+
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
9+
rules: {
10+
'@nx/enforce-module-boundaries': [
11+
'error',
12+
{
13+
enforceBuildableLibDependency: true,
14+
allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?js$'],
15+
depConstraints: [
16+
{
17+
sourceTag: '*',
18+
onlyDependOnLibsWithTags: ['*'],
19+
},
20+
],
21+
},
22+
],
23+
},
24+
},
25+
{
26+
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
27+
// Override or add rules here
28+
rules: {},
29+
},
30+
];

nx.json

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"namedInputs": {
4-
"default": [
5-
"{projectRoot}/**/*",
6-
"sharedGlobals"
7-
],
4+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
85
"production": [
9-
"default"
6+
"default",
7+
"!{projectRoot}/.eslintrc.json",
8+
"!{projectRoot}/eslint.config.js",
9+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
10+
"!{projectRoot}/tsconfig.spec.json"
1011
],
11-
"sharedGlobals": [
12-
"{workspaceRoot}/.github/workflows/ci.yml"
13-
]
12+
"sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"]
13+
},
14+
"nxCloudId": "66eefdb36cb167023f936bca",
15+
"targetDefaults": {
16+
"@nx/js:swc": {
17+
"cache": true,
18+
"dependsOn": ["^build"],
19+
"inputs": ["production", "^production"]
20+
},
21+
"@nx/vite:test": {
22+
"cache": true,
23+
"inputs": ["default", "^production"]
24+
}
25+
},
26+
"release": {
27+
"version": {
28+
"preVersionCommand": "npx nx run-many -t build"
29+
}
1430
},
15-
"nxCloudId": "66eefdb36cb167023f936bca"
31+
"plugins": [
32+
{
33+
"plugin": "@nx/eslint/plugin",
34+
"options": {
35+
"targetName": "lint"
36+
}
37+
}
38+
]
1639
}

0 commit comments

Comments
 (0)