Skip to content

Commit

Permalink
chore(scripts/*): replace just-scripts and npm script aliases with nx (
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Sep 11, 2024
1 parent 7d68d05 commit 4fb90db
Show file tree
Hide file tree
Showing 79 changed files with 175 additions and 240 deletions.
20 changes: 19 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
},
"type-check": {
"dependsOn": ["^build"],
"cache": true
"cache": true,
"executor": "@fluentui/workspace-plugin:type-check"
},
"prepare": {
"dependsOn": ["^prepare"],
Expand Down Expand Up @@ -81,6 +82,23 @@
"command": "eslint src"
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "prettier --write {projectRoot}"
},
"metadata": {
"help": {
"command": "yarn prettier --help",
"options": {}
}
},
"configurations": {
"check": {
"command": "prettier --check {projectRoot}"
}
}
},
"verify-packaging": {
"dependsOn": ["build"],
"cache": true
Expand Down
3 changes: 0 additions & 3 deletions scripts/api-extractor/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/api-extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {},
"devDependencies": {}
}
6 changes: 5 additions & 1 deletion scripts/api-extractor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/api-extractor",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/babel/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {},
"devDependencies": {},
"exports": {
Expand Down
6 changes: 5 additions & 1 deletion scripts/babel/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/babel/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
4 changes: 0 additions & 4 deletions scripts/beachball/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/beachball/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {
"@fluentui/scripts-github": "*",
"@fluentui/scripts-monorepo": "*",
Expand Down
6 changes: 5 additions & 1 deletion scripts/beachball/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/beachball/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/cypress/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.ts",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {},
"devDependencies": {}
}
6 changes: 5 additions & 1 deletion scripts/cypress/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/cypress/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/dangerjs/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/dangerjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-utils": "*"
Expand Down
6 changes: 5 additions & 1 deletion scripts/dangerjs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/dangerjs/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
4 changes: 0 additions & 4 deletions scripts/executors/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/executors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {
"@fluentui/scripts-utils": "*",
"@fluentui/scripts-monorepo": "*",
Expand Down
6 changes: 5 additions & 1 deletion scripts/executors/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/executors/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/fluentui-publish/just.config.ts

This file was deleted.

5 changes: 1 addition & 4 deletions scripts/fluentui-publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
"northstar-release": "./bin/northstar-release.js"
},
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"lint": "eslint --ext .ts,.js ./src ./bin",
"test": "jest --passWithNoTests",
"type-check": "just-scripts type-check"
"test": "jest --passWithNoTests"
},
"dependencies": {
"@fluentui/scripts-monorepo": "*"
Expand Down
4 changes: 3 additions & 1 deletion scripts/fluentui-publish/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"{workspaceRoot}/jest.preset.js",
"{workspaceRoot}/packages/fluentui/*/project.json"
]
}
},
"type-check": {},
"format": {}
}
}
4 changes: 0 additions & 4 deletions scripts/generators/just.config.ts

This file was deleted.

5 changes: 1 addition & 4 deletions scripts/generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
"private": true,
"main": "index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"lint": "eslint --ext .ts,.js --ignore-pattern plop-templates-* ./src",
"test": "jest --passWithNoTests",
"type-check": "just-scripts type-check"
"test": "jest --passWithNoTests"
},
"dependencies": {
"@fluentui/scripts-monorepo": "*",
Expand Down
6 changes: 5 additions & 1 deletion scripts/generators/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/generators/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/github/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.ts",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {},
"devDependencies": {}
}
6 changes: 5 additions & 1 deletion scripts/github/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/github/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/gulp/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/gulp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.ts",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-utils": "*",
Expand Down
6 changes: 5 additions & 1 deletion scripts/gulp/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/gulp/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/jest/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-utils": "*"
Expand Down
6 changes: 5 additions & 1 deletion scripts/jest/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/jest/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
4 changes: 0 additions & 4 deletions scripts/lint-staged/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/lint-staged/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-utils": "*"
Expand Down
6 changes: 5 additions & 1 deletion scripts/lint-staged/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/lint-staged/src",
"projectType": "library",
"tags": ["tools"]
"tags": ["tools"],
"targets": {
"type-check": {},
"format": {}
}
}
3 changes: 0 additions & 3 deletions scripts/monorepo/just.config.ts

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/monorepo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"version": "0.0.1",
"private": true,
"main": "src/index.js",
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"type-check": "just-scripts type-check"
},
"scripts": {},
"dependencies": {
"@fluentui/scripts-utils": "*"
},
Expand Down
Loading

0 comments on commit 4fb90db

Please sign in to comment.