Skip to content

Commit 140061f

Browse files
committed
chore: initial commit
1 parent 01ac702 commit 140061f

23 files changed

+4987
-496
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"recommendations": [
3-
4-
"nrwl.angular-console"
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"firsttris.vscode-jest-runner"
56
]
67
}

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+
];

jest.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { getJestProjectsAsync } from '@nx/jest';
2+
3+
export default async () => ({
4+
projects: await getJestProjectsAsync(),
5+
});

jest.preset.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const nxPreset = require('@nx/jest/preset').default;
2+
3+
module.exports = { ...nxPreset };

nx.json

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,40 @@
11
{
2+
"pluginsConfig": {
3+
"@nx/js": {
4+
"analyzeSourceFiles": true
5+
}
6+
},
27
"extends": "nx/presets/npm.json",
38
"$schema": "./node_modules/nx/schemas/nx-schema.json",
49
"nxCloudId": "66f132705ca8b56efbc84b52",
510
"namedInputs": {
6-
"sharedGlobals": [
7-
"{workspaceRoot}/.github/workflows/ci.yml"
8-
],
9-
"default": [
10-
"sharedGlobals"
11-
]
12-
}
11+
"sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"],
12+
"default": ["sharedGlobals"]
13+
},
14+
"targetDefaults": {
15+
"@nx/js:tsc": {
16+
"cache": true,
17+
"dependsOn": ["^build"],
18+
"inputs": ["default", "^default"]
19+
}
20+
},
21+
"release": {
22+
"version": {
23+
"preVersionCommand": "npx nx run-many -t build"
24+
}
25+
},
26+
"plugins": [
27+
{
28+
"plugin": "@nx/eslint/plugin",
29+
"options": {
30+
"targetName": "lint"
31+
}
32+
},
33+
{
34+
"plugin": "@nx/jest/plugin",
35+
"options": {
36+
"targetName": "test"
37+
}
38+
}
39+
]
1340
}

package.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,33 @@
44
"license": "MIT",
55
"scripts": {},
66
"private": true,
7-
"dependencies": {},
7+
"dependencies": {
8+
"tslib": "^2.3.0"
9+
},
810
"devDependencies": {
11+
"@eslint/js": "^9.8.0",
12+
"@nx/eslint": "19.8.0",
13+
"@nx/eslint-plugin": "19.8.0",
14+
"@nx/jest": "19.8.0",
915
"@nx/js": "19.8.0",
10-
"nx": "19.8.0"
16+
"@swc-node/register": "~1.9.1",
17+
"@swc/core": "~1.5.7",
18+
"@swc/helpers": "~0.5.11",
19+
"@types/jest": "^29.5.12",
20+
"@types/node": "18.16.9",
21+
"eslint": "^9.8.0",
22+
"eslint-config-prettier": "^9.0.0",
23+
"jest": "^29.7.0",
24+
"jest-environment-node": "^29.7.0",
25+
"nx": "19.8.0",
26+
"prettier": "^2.6.2",
27+
"ts-jest": "^29.1.0",
28+
"ts-node": "10.9.1",
29+
"typescript": "~5.5.2",
30+
"typescript-eslint": "^8.0.0",
31+
"verdaccio": "^5.0.4"
32+
},
33+
"nx": {
34+
"includedScripts": []
1135
}
1236
}

packages/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# create-app
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Building
6+
7+
Run `nx build create-app` to build the library.
8+
9+
## Running unit tests
10+
11+
Run `nx test create-app` to execute the unit tests via [Jest](https://jestjs.io).

0 commit comments

Comments
 (0)