Skip to content

Commit

Permalink
Merge pull request #3 from tiktok/feat-upgrade-tech-stack
Browse files Browse the repository at this point in the history
Feat upgrade tech stack
  • Loading branch information
chengcyber authored Sep 26, 2023
2 parents ecb392c + a1f7e4b commit cbfddb8
Show file tree
Hide file tree
Showing 76 changed files with 5,227 additions and 5,044 deletions.
12 changes: 0 additions & 12 deletions common/_templates/rush-plugin-for-command/config/heft.json

This file was deleted.

7 changes: 7 additions & 0 deletions common/_templates/rush-plugin-for-command/config/rig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",

"rigPackageName": "@rushstack/heft-node-rig"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env es6 */
const config = {
"*.{js,jsx,ts,tsx}": "eslint --fix",
'*': "echo 'good job'"
};
module.exports = config;
10 changes: 5 additions & 5 deletions common/_templates/rush-plugin-for-command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"build": "heft build --clean",
"build:watch": "heft build --watch",
"start": "heft build-watch",
"prepublishOnly": "npm run build",
"test": "heft test"
},
Expand All @@ -27,12 +28,11 @@
"@rushstack/rush-sdk": "5.62.4"
},
"devDependencies": {
"@rushstack/eslint-config": "2.4.5",
"@rushstack/heft": "0.43.2",
"@rushstack/heft-node-rig": "1.2.31",
"@rushstack/eslint-config": "3.3.4",
"@rushstack/heft": "0.61.0",
"@rushstack/heft-node-rig": "2.2.25",
"@types/heft-jest": "1.0.1",
"@types/node": "12.20.24",
"eslint": "7.32.0",
"@types/node": "18.17.15",
"typescript": "4.4.2"
}
}
11 changes: 7 additions & 4 deletions common/_templates/rush-plugin-for-command/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/usr/bin/env node

import { terminal } from "./helpers/terminal";
import { terminal } from './helpers/terminal';

// eslint-disable-next-line @typescript-eslint/no-floating-promises
main();
process.exitCode = 1;
main()
.then(() => {
process.exitCode = 0;
})
.catch(console.error);

async function main(): Promise<void> {
try {
Expand All @@ -14,6 +18,5 @@ async function main(): Promise<void> {
} else {
throw error;
}
process.exit(1);
}
}
Loading

0 comments on commit cbfddb8

Please sign in to comment.