Skip to content

Commit

Permalink
Chore: Add nx graph (#1497)
Browse files Browse the repository at this point in the history
* Feat: Added graph script from Nx

* Removed components package

* Added placeholder packages

* Removed static folder

* Removed unused files

* Changed version of components to 0.0.1

* Updated dependencies on internal packages

* Update package.json

* Update package.json

* Update package.json

* Updated package-lock

* Updated package-lock

* Removed mixin specs from core

* Removed build scripts for empty projects

* Update package.json

* Update package.json

* Update package.json

* Update package.json

* Update package.json

* Update package.json

---------

Co-authored-by: Juan Munoz <[email protected]>
  • Loading branch information
pascalwilbrink and juancho0202 authored Apr 17, 2024
1 parent c4371dd commit 316bf8a
Show file tree
Hide file tree
Showing 15 changed files with 20,082 additions and 23,327 deletions.
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
]
},
"test": {
"inputs": ["default", "^default"]
"inputs": ["default", "^default"],
"dependsOn": ["^test"]
},
"build": {
"dependsOn": ["clean", "^clean", "^build"]
Expand Down
42,350 changes: 19,498 additions & 22,852 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build": "npx nx run-many -t build --all",
"doc": "lerna run doc",
"test": "npx nx run-many -t test --all --parallel=false",
"graph": "npx nx graph",
"start": "lerna run start"
},
"repository": {
Expand Down
138 changes: 138 additions & 0 deletions packages/addons/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"name": "@openscd/addons",
"version": "0.34.0",
"repository": "https://github.com/openscd/open-scd.git",
"directory": "packages/addons",
"description": "Official Addons for OpenSCD",
"keywords": [
"SCL",
"substation configuration",
"IEC",
"61850-6",
"SCD",
"editor"
],
"author": "OpenSCD",
"license": "Apache-2.0",
"type": "module",
"files": [
"./dist/**"
],
"dependencies": {
"lit": "^2.2.7",
"@openscd/core": "*",
"@openscd/components": "*"
},
"scripts": {
"clean": "rimraf build",
"lint:eslint": "eslint --ext .ts . --ignore-path .gitignore",
"format:eslint": "eslint --ext .ts . --fix --ignore-path .gitignore",
"lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" --check --ignore-path .gitignore",
"format:prettier": "prettier \"**/*.js\" \"**/*.ts\" --write --ignore-path .gitignore",
"lint": "npm run lint:eslint && npm run lint:prettier",
"format": "npm run format:eslint && npm run format:prettier",
"test:snapshot": "web-test-runner --update-snapshots --coverage",
"test:manual": "web-test-runner --manual",
"test:watch": "web-test-runner --watch",
"test:unit": "web-test-runner --watch --group unit",
"test:integration": "web-test-runner --watch --group integration",
"doc:clean": "npx rimraf doc",
"doc:typedoc": "typedoc --plugin none --out doc src",
"doc:wca": "wca src --outDir doc/components",
"doc": "npm run doc:clean && npm run doc:typedoc && npm run doc:wca"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@open-wc/eslint-config": "^4.3.0",
"@open-wc/semantic-dom-diff": "^0.19.5",
"@open-wc/testing": "^2.5.33",
"@types/node": "^16.6.1",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"@web/dev-server-esbuild": "^0.2.16",
"@web/test-runner": "^0.13.22",
"concurrently": "^6.2.1",
"deepmerge": "^4.2.2",
"es-dev-server": "^2.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-tsdoc": "^0.2.14",
"fast-check": "^2.19.0",
"husky": "^7.0.1",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"sinon": "^17.0.1",
"source-map": "^0.7.4",
"tslib": "^2.3.1",
"typedoc": "^0.21.10",
"typedoc-plugin-markdown": "3.10.4",
"typescript": "4.3.5",
"web-component-analyzer": "^1.1.6"
},
"eslintConfig": {
"extends": [
"@open-wc/eslint-config",
"eslint-config-prettier"
]
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"standard-version": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"hidden": true
},
{
"type": "docs",
"hidden": true
},
{
"type": "style",
"hidden": true
},
{
"type": "refactor",
"hidden": true
},
{
"type": "perf",
"hidden": true
},
{
"type": "test",
"hidden": true
}
],
"commitUrlFormat": "https://github.com/openscd/open-scd/commits/{{hash}}"
}
}
7 changes: 7 additions & 0 deletions packages/addons/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@openscd/addons",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "packages/addons/src",
"targets": {}
}
133 changes: 133 additions & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"name": "@openscd/components",
"version": "0.0.1",
"repository": "https://github.com/openscd/open-scd.git",
"directory": "packages/components",
"description": "Official Components for OpenSCD",
"keywords": [
"SCL",
"substation configuration",
"IEC",
"61850-6",
"SCD",
"editor"
],
"author": "OpenSCD",
"license": "Apache-2.0",
"type": "module",
"files": [
"./dist/**"
],
"dependencies": {
},
"scripts": {
"clean": "rimraf build",
"lint:eslint": "eslint --ext .ts . --ignore-path .gitignore",
"format:eslint": "eslint --ext .ts . --fix --ignore-path .gitignore",
"lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" --check --ignore-path .gitignore",
"format:prettier": "prettier \"**/*.js\" \"**/*.ts\" --write --ignore-path .gitignore",
"lint": "npm run lint:eslint && npm run lint:prettier",
"format": "npm run format:eslint && npm run format:prettier",
"test:manual": "web-test-runner --manual",
"test:watch": "web-test-runner --watch",
"test:unit": "web-test-runner --watch --group unit",
"doc:clean": "npx rimraf doc",
"doc:typedoc": "typedoc --plugin none --out doc src",
"doc:wca": "wca src --outDir doc/components",
"doc": "npm run doc:clean && npm run doc:typedoc && npm run doc:wca"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@open-wc/eslint-config": "^4.3.0",
"@open-wc/semantic-dom-diff": "^0.19.5",
"@open-wc/testing": "^2.5.33",
"@types/node": "^16.6.1",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"@web/dev-server-esbuild": "^0.2.16",
"@web/test-runner": "^0.13.22",
"concurrently": "^6.2.1",
"deepmerge": "^4.2.2",
"es-dev-server": "^2.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-tsdoc": "^0.2.14",
"fast-check": "^2.19.0",
"husky": "^7.0.1",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"sinon": "^17.0.1",
"source-map": "^0.7.4",
"tslib": "^2.3.1",
"typedoc": "^0.21.10",
"typedoc-plugin-markdown": "3.10.4",
"typescript": "4.3.5",
"web-component-analyzer": "^1.1.6"
},
"eslintConfig": {
"extends": [
"@open-wc/eslint-config",
"eslint-config-prettier"
]
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"standard-version": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"hidden": true
},
{
"type": "docs",
"hidden": true
},
{
"type": "style",
"hidden": true
},
{
"type": "refactor",
"hidden": true
},
{
"type": "perf",
"hidden": true
},
{
"type": "test",
"hidden": true
}
],
"commitUrlFormat": "https://github.com/openscd/open-scd/commits/{{hash}}"
}
}
7 changes: 7 additions & 0 deletions packages/components/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@openscd/components",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "packages/components/src",
"targets": {}
}
Loading

0 comments on commit 316bf8a

Please sign in to comment.