forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This is a workaround for https://github.com/eslint/eslint/issues/3458 | ||
require('@rushstack/eslint-config/patch/modern-module-resolution'); | ||
|
||
module.exports = { | ||
extends: ['@rushstack/eslint-config/profile/node'], | ||
parserOptions: { tsconfigRootDir: __dirname } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# heft-fastify-test | ||
|
||
This project tests Heft support for the [Fastify](https://www.fastify.io/) framework for Node.js services. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* Defines configuration used by core Heft. | ||
*/ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/heft/heft.schema.json", | ||
|
||
"eventActions": [ | ||
{ | ||
/** | ||
* The kind of built-in operation that should be performed. | ||
* The "deleteGlobs" action deletes files or folders that match the | ||
* specified glob patterns. | ||
*/ | ||
"actionKind": "deleteGlobs", | ||
|
||
/** | ||
* The stage of the Heft run during which this action should occur. Note that actions specified in heft.json | ||
* occur at the end of the stage of the Heft run. | ||
*/ | ||
"heftEvent": "clean", | ||
|
||
/** | ||
* A user-defined tag whose purpose is to allow configs to replace/delete handlers that were added by other | ||
* configs. | ||
*/ | ||
"actionId": "defaultClean", | ||
|
||
/** | ||
* Glob patterns to be deleted. The paths are resolved relative to the project folder. | ||
*/ | ||
"globsToDelete": ["dist", "lib", "temp"] | ||
} | ||
], | ||
|
||
/** | ||
* The list of Heft plugins to be loaded. | ||
*/ | ||
"heftPlugins": [ | ||
// { | ||
// /** | ||
// * The path to the plugin package. | ||
// */ | ||
// "plugin": "path/to/my-plugin", | ||
// | ||
// /** | ||
// * An optional object that provides additional settings that may be defined by the plugin. | ||
// */ | ||
// // "options": { } | ||
// } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"projectOutputFolderNames": ["lib", "dist"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "heft-fastify-test", | ||
"description": "This project tests Heft support for the Fastify framework for Node.js services", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "lib/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "heft test --clean" | ||
}, | ||
"devDependencies": { | ||
"@rushstack/eslint-config": "workspace:*", | ||
"@rushstack/heft": "workspace:*", | ||
"@types/heft-jest": "1.0.1", | ||
"@types/node": "10.17.13", | ||
"eslint": "~7.12.1", | ||
"typescript": "~3.9.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. | ||
// See LICENSE in the project root for license information. | ||
|
||
console.log('Hello, world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
|
||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src", | ||
|
||
"forceConsistentCasingInFileNames": true, | ||
"jsx": "react", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"declarationMap": true, | ||
"inlineSources": true, | ||
"experimentalDecorators": true, | ||
"strictNullChecks": true, | ||
"noUnusedLocals": true, | ||
"types": ["heft-jest", "node"], | ||
|
||
"module": "commonjs", | ||
"target": "es2017", | ||
"lib": ["es2017"] | ||
}, | ||
"include": ["src/**/*.ts", "src/**/*.tsx"], | ||
"exclude": ["node_modules", "lib"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters