Skip to content

Commit d541dad

Browse files
authored
Get rid of just-script and just-task entirely and switch to clipanion (#3946)
* remove just-scripts, switching to clipanion * tune lage.config and fix @types/node version * Change files * fix prettier build task * change to using node: typings
1 parent 20c6482 commit d541dad

31 files changed

+392
-695
lines changed

.vscode/launch.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,6 @@
1616
"type": "reactnative",
1717
"cwd": "${workspaceFolder}/apps/win32"
1818
},
19-
{
20-
"name": "Debug test",
21-
"type": "node",
22-
"request": "launch",
23-
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
24-
"cwd": "${workspaceFolder}/packages/just-scripts",
25-
"args": ["-i", "--runInBand"],
26-
"runtimeArgs": ["--nolazy"],
27-
"env": {
28-
"NODE_ENV": "development"
29-
},
30-
"console": "integratedTerminal",
31-
"sourceMaps": true,
32-
"outFiles": []
33-
},
3419
{
3520
"name": "Debug current folder test",
3621
"type": "node",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "tune lage.config and fix @types/node version",
4+
"packageName": "@fluentui-react-native/framework-base",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "tune lage.config and fix @types/node version",
4+
"packageName": "@fluentui-react-native/immutable-merge",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "tune lage.config and fix @types/node version",
4+
"packageName": "@fluentui-react-native/memo-cache",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "tune lage.config and fix @types/node version",
4+
"packageName": "@uifabricshared/themed-settings",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

lage.config.js

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,36 @@
11
module.exports = {
22
npmClient: 'yarn',
33
pipeline: {
4-
build: ['^build'],
5-
buildci: ['build', 'test', 'depcheck'],
6-
bundle: ['build'],
7-
clean: [],
8-
depcheck: [],
9-
lint: [],
10-
prettier: [],
4+
build: {
5+
dependsOn: ['^build'],
6+
inputs: ['*', 'src/**/*', 'assets/**/*'],
7+
outputs: ['lib/**/*', 'lib-commonjs/**/*'],
8+
},
9+
buildci: ['build', 'test', 'lint', 'depcheck'],
10+
bundle: {
11+
inputs: ['**/*', '!node_modules/**/*', '!dist/**/*', '!lib/**/*', '!lib-commonjs/**/*'],
12+
outputs: ['dist/**/*'],
13+
},
14+
clean: {
15+
cache: false,
16+
},
17+
depcheck: {
18+
inputs: ['**/*', '!node_modules/**/*', '!dist/**/*', '!lib/**/*', '!lib-commonjs/**/*'],
19+
outputs: [],
20+
},
21+
lint: {
22+
inputs: ['*', 'src/**/*'],
23+
outputs: [],
24+
},
25+
prettier: {
26+
inputs: ['*', 'src/**/*'],
27+
outputs: [],
28+
},
1129
['prettier-fix']: [],
12-
test: ['build', 'lint'],
30+
test: {
31+
dependsOn: ['build'],
32+
inputs: [],
33+
outputs: [],
34+
},
1335
},
1436
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"bundle": "lage bundle",
1818
"clean": "lage clean",
1919
"change": "beachball change",
20-
"check-for-changed-files": "cd scripts && yarn fluentui-scripts checkForModifiedFiles",
20+
"check-for-changed-files": "cd scripts && yarn fluentui-scripts check-changes",
2121
"checkchange": "beachball check --changehint \"Run 'yarn change' to generate a change file\"",
2222
"align-deps": "rnx-align-deps --no-unmanaged --requirements [email protected]",
2323
"depcheck": "lage depcheck",
@@ -46,6 +46,7 @@
4646
"eslint-plugin-import": "^2.27.5",
4747
"lage": "^2.0.0",
4848
"markdown-link-check": "^3.8.7",
49+
"prettier": "^2.4.1",
4950
"react": "18.2.0",
5051
"react-native": "^0.74.0",
5152
"typescript": "^4.9.4"

packages/deprecated/themed-settings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@react-native/babel-preset": "^0.74.0",
4646
"@react-native/metro-config": "^0.74.0",
4747
"@types/jest": "^29.0.0",
48-
"@types/node": "^10.3.5",
48+
"@types/node": "^22.0.0",
4949
"react": "18.2.0",
5050
"react-native": "^0.74.0"
5151
},

packages/framework-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"@fluentui-react-native/eslint-config-rules": "workspace:*",
3939
"@fluentui-react-native/scripts": "workspace:*",
4040
"@types/jest": "^29.0.0",
41-
"@types/node": "^10.3.5"
41+
"@types/node": "^22.0.0"
4242
}
4343
}

packages/framework/immutable-merge/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"@fluentui-react-native/eslint-config-rules": "workspace:*",
4040
"@fluentui-react-native/scripts": "workspace:*",
4141
"@types/jest": "^29.0.0",
42-
"@types/node": "^10.3.5"
42+
"@types/node": "^22.0.0"
4343
}
4444
}

0 commit comments

Comments
 (0)