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: init new nx monorepo for React 18, MUI v5 #711

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
/libs/spark-icons/defaults/templateSvgIcon.js
/libs/spark-icons/src/*
/libs/spark-icons/custom
node_modules
17 changes: 12 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": ["@prenda/spark-icons", "@prenda/spark-icons/*"],
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
Expand All @@ -23,12 +23,19 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {}
}
]
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/chromatic.yml

This file was deleted.

13 changes: 5 additions & 8 deletions .github/workflows/ci:main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 20.7

- name: NPM clean install
run: npm ci

- name: Lint workspace and projects
- name: Lint projects
run: npm run lint

- name: Check format
- name: Check formatting
run: npm run format:check

- name: Unit test project spark
run: npx nx run spark:test

- name: Unit test project spark-icons
run: npx nx run spark-icons:test
- name: Test projects
run: npm run test
102 changes: 0 additions & 102 deletions .github/workflows/npm-publish.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
dist
tmp
/out-tsc

# dependencies
/node_modules
node_modules

# IDEs and editors
/.idea
Expand Down Expand Up @@ -38,5 +38,4 @@ testem.log
.DS_Store
Thumbs.db

# @prenda/spark-icons Raw Downloads
/libs/spark-icons/svg-files
.nx/cache
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .husky/pre-commit

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-push

This file was deleted.

3 changes: 1 addition & 2 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
14.17

20.7
7 changes: 3 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/coverage
# Add files here to ignore them from prettier formatting
/dist
/libs/spark/public/fonts/**/LICENSE.(txt|md)
/libs/spark-icons/defaults/templateSvgIcon.js
/libs/spark-icons/src/*
/coverage
/.nx/cache
11 changes: 0 additions & 11 deletions .storybook/main.js

This file was deleted.

31 changes: 0 additions & 31 deletions .storybook/manager.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions .storybook/tsconfig.json

This file was deleted.

28 changes: 28 additions & 0 deletions .verdaccio/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# path to a directory with all packages
storage: ../tmp/local-registry/storage

# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
maxage: 60m

packages:
'**':
# give all users (including non-authenticated users) full access
# because it is a local registry
access: $all
publish: $all
unpublish: $all

# if package is not available locally, proxy requests to npm registry
proxy: npmjs

# log settings
logs:
type: stdout
format: pretty
level: warn

publish:
allow_offline: true # set offline to true to allow publish offline
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"recommendations": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"firsttris.vscode-jest-runner"
]
}
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

Loading
Loading