Skip to content

Commit afbd611

Browse files
committed
chore(scripts/*): replace all usages of npm script aliases with nx
1 parent b733c23 commit afbd611

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+175
-240
lines changed

nx.json

+19-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
},
3535
"type-check": {
3636
"dependsOn": ["^build"],
37-
"cache": true
37+
"cache": true,
38+
"executor": "@fluentui/workspace-plugin:type-check"
3839
},
3940
"prepare": {
4041
"dependsOn": ["^prepare"],
@@ -81,6 +82,23 @@
8182
"command": "eslint src"
8283
}
8384
},
85+
"format": {
86+
"executor": "nx:run-commands",
87+
"options": {
88+
"command": "prettier --write {projectRoot}"
89+
},
90+
"metadata": {
91+
"help": {
92+
"command": "yarn prettier --help",
93+
"options": {}
94+
}
95+
},
96+
"configurations": {
97+
"check": {
98+
"command": "prettier --check {projectRoot}"
99+
}
100+
}
101+
},
84102
"verify-packaging": {
85103
"dependsOn": ["build"],
86104
"cache": true

scripts/api-extractor/just.config.ts

-3
This file was deleted.

scripts/api-extractor/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {},
128
"devDependencies": {}
139
}

scripts/api-extractor/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/api-extractor",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/babel/just.config.ts

-3
This file was deleted.

scripts/babel/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {},
128
"devDependencies": {},
139
"exports": {

scripts/babel/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/babel/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/beachball/just.config.ts

-4
This file was deleted.

scripts/beachball/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {
128
"@fluentui/scripts-github": "*",
139
"@fluentui/scripts-monorepo": "*",

scripts/beachball/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/beachball/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/cypress/just.config.ts

-3
This file was deleted.

scripts/cypress/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.ts",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {},
128
"devDependencies": {}
139
}

scripts/cypress/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/cypress/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/dangerjs/just.config.ts

-3
This file was deleted.

scripts/dangerjs/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {
128
"@fluentui/scripts-monorepo": "*",
139
"@fluentui/scripts-utils": "*"

scripts/dangerjs/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/dangerjs/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/executors/just.config.ts

-4
This file was deleted.

scripts/executors/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {
128
"@fluentui/scripts-utils": "*",
139
"@fluentui/scripts-monorepo": "*",

scripts/executors/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/executors/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/fluentui-publish/just.config.ts

-3
This file was deleted.

scripts/fluentui-publish/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
"northstar-release": "./bin/northstar-release.js"
77
},
88
"scripts": {
9-
"format": "prettier -w --ignore-path ../../.prettierignore .",
10-
"format:check": "yarn format -c",
119
"lint": "eslint --ext .ts,.js ./src ./bin",
12-
"test": "jest --passWithNoTests",
13-
"type-check": "just-scripts type-check"
10+
"test": "jest --passWithNoTests"
1411
},
1512
"dependencies": {
1613
"@fluentui/scripts-monorepo": "*"

scripts/fluentui-publish/project.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"{workspaceRoot}/jest.preset.js",
1313
"{workspaceRoot}/packages/fluentui/*/project.json"
1414
]
15-
}
15+
},
16+
"type-check": {},
17+
"format": {}
1618
}
1719
}

scripts/generators/just.config.ts

-4
This file was deleted.

scripts/generators/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
"private": true,
55
"main": "index.js",
66
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
97
"lint": "eslint --ext .ts,.js --ignore-pattern plop-templates-* ./src",
10-
"test": "jest --passWithNoTests",
11-
"type-check": "just-scripts type-check"
8+
"test": "jest --passWithNoTests"
129
},
1310
"dependencies": {
1411
"@fluentui/scripts-monorepo": "*",

scripts/generators/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/generators/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/github/just.config.ts

-3
This file was deleted.

scripts/github/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.ts",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {},
128
"devDependencies": {}
139
}

scripts/github/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/github/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/gulp/just.config.ts

-3
This file was deleted.

scripts/gulp/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.ts",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {
128
"@fluentui/scripts-monorepo": "*",
139
"@fluentui/scripts-utils": "*",

scripts/gulp/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/gulp/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/jest/just.config.ts

-3
This file was deleted.

scripts/jest/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {
128
"@fluentui/scripts-monorepo": "*",
139
"@fluentui/scripts-utils": "*"

scripts/jest/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/jest/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/lint-staged/just.config.ts

-4
This file was deleted.

scripts/lint-staged/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {
128
"@fluentui/scripts-monorepo": "*",
139
"@fluentui/scripts-utils": "*"

scripts/lint-staged/project.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "scripts/lint-staged/src",
55
"projectType": "library",
6-
"tags": ["tools"]
6+
"tags": ["tools"],
7+
"targets": {
8+
"type-check": {},
9+
"format": {}
10+
}
711
}

scripts/monorepo/just.config.ts

-3
This file was deleted.

scripts/monorepo/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"main": "src/index.js",
6-
"scripts": {
7-
"format": "prettier -w --ignore-path ../../.prettierignore .",
8-
"format:check": "yarn format -c",
9-
"type-check": "just-scripts type-check"
10-
},
6+
"scripts": {},
117
"dependencies": {
128
"@fluentui/scripts-utils": "*"
139
},

0 commit comments

Comments
 (0)