-
Notifications
You must be signed in to change notification settings - Fork 2.9k
ci: make lint task run without need of build #26872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Hotell
merged 5 commits into
microsoft:master
from
Hotell:hotell/build/task-orchestration/lint-separation
Feb 24, 2023
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a774f99
chore: make lint task run without need of build
Hotell ad8f921
chore: re-enable AMD import checks for only mixed and v8 packages
Hotell 78e3829
generate change files
Hotell a73b622
feat(scripts-tasks): unify monaco-editor task setup and reduce public…
Hotell 177dcdd
Update scripts/tasks/src/lint-imports.ts
Hotell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
7 changes: 7 additions & 0 deletions
7
change/@fluentui-monaco-editor-3cc9c097-aa92-421f-a9b7-bfc355c1104f.json
This file contains hidden or 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 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: re-enable AMD import checks for only mixed and v8 packages", | ||
| "packageName": "@fluentui/monaco-editor", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-monaco-editor-9287da0f-bb0a-458e-b0d0-5800450447e6.json
This file contains hidden or 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 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: re-enable AMD import checks for only mixed and v8 packages", | ||
| "packageName": "@fluentui/react-monaco-editor", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-portal-compat-context-63109ecf-905f-4a46-9e10-34953ede7cfb.json
This file contains hidden or 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 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: re-enable AMD import checks for only mixed and v8 packages", | ||
| "packageName": "@fluentui/react-portal-compat-context", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-portal-compat-d7b8a2ab-27b5-4f62-9abb-bab99b74e95b.json
This file contains hidden or 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 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: re-enable AMD import checks for only mixed and v8 packages", | ||
| "packageName": "@fluentui/react-portal-compat", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
This file contains hidden or 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
This file contains hidden or 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,5 @@ | ||
| { | ||
| "copyTo": { | ||
| "esm": ["monaco-editor/esm/"] | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,39 +1,15 @@ | ||
| import { | ||
| basicPreset, | ||
| task, | ||
| series, | ||
| parallel, | ||
| copyInstructions, | ||
| copyInstructionsTask, | ||
| cleanTask, | ||
| ts, | ||
| postprocess, | ||
| eslint, | ||
| } from '@fluentui/scripts-tasks'; | ||
| import { preset, task, series, parallel, cleanTask, postprocessTask } from '@fluentui/scripts-tasks'; | ||
|
|
||
| import * as path from 'path'; | ||
| import { transformCssTask } from './tasks/transformCssTask'; | ||
|
|
||
| const monacoEditorPath = path.dirname(require.resolve('monaco-editor/package.json')); | ||
Hotell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| const monacoSrcPath = path.join(monacoEditorPath, 'esm'); | ||
| const monacoDestPath = path.join(__dirname, 'esm'); | ||
|
|
||
| basicPreset(); | ||
| preset(); | ||
|
|
||
| task('clean', cleanTask({ paths: ['esm', 'lib', 'lib-commonjs'].map(p => path.join(process.cwd(), p)) })); | ||
| task( | ||
| 'copy', | ||
| copyInstructionsTask({ | ||
| copyInstructions: copyInstructions.copyFilesInDirectory(monacoSrcPath, monacoDestPath), | ||
| }), | ||
| ); | ||
| task('transform-css', transformCssTask); | ||
| task('ts:esm', ts.esm); | ||
| task('ts:commonjs', ts.commonjs); | ||
| task('ts:postprocess', postprocess.postprocessTask([...postprocess.defaultLibPaths, 'esm/**/*.d.ts'])); | ||
| task('ts:postprocess', postprocessTask([...postprocessTask.defaultLibPaths, 'esm/**/*.d.ts'])); | ||
| task('ts', series(parallel('ts:esm', 'ts:commonjs'), 'ts:postprocess')); | ||
| task('eslint', eslint); | ||
|
|
||
| task('build', series('clean', 'copy', 'transform-css', 'ts')).cached!(); | ||
| task('build', series('clean', 'copy', 'transform-css', 'ts', 'lint-imports:all')).cached!(); | ||
|
|
||
| task('lint', 'eslint'); | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,6 +1,89 @@ | ||
| export * from 'just-scripts'; | ||
| export { preset, basicPreset } from './presets'; | ||
| export { ts } from './ts'; | ||
| export { eslint } from './eslint'; | ||
| export { | ||
| CopyConfig, | ||
Hotell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| CopyInstruction, | ||
| Logger, | ||
| TsCheckerOptions, | ||
| TsLoaderOptions, | ||
| addResolvePath, | ||
| argv, | ||
| basicWebpackConfig, | ||
| basicWebpackServeConfig, | ||
| chain, | ||
| // eslint-disable-next-line deprecation/deprecation | ||
| cleanTask, | ||
| clearCache, | ||
| condition, | ||
| copyInstructions, | ||
| copyInstructionsTask, | ||
| // eslint-disable-next-line deprecation/deprecation | ||
| copyTask, | ||
| createStylesOverlay, | ||
| createTarTask, | ||
| defaultCleanPaths, | ||
| displayBailoutOverlay, | ||
| esbuildTask, | ||
| eslintTask, | ||
| extractTarTask, | ||
| fileOverlay, | ||
| fixApiFileNewlines, | ||
| htmlOverlay, | ||
| jestTask, | ||
| logger, | ||
| mark, | ||
| nodeExecTask, | ||
| option, | ||
| parallel, | ||
| prettierCheckTask, | ||
| prettierTask, | ||
| resetResolvePaths, | ||
| // eslint-disable-next-line deprecation/deprecation | ||
| resolve, | ||
| // eslint-disable-next-line deprecation/deprecation | ||
| resolveCwd, | ||
| // eslint-disable-next-line deprecation/deprecation | ||
| sassTask, | ||
| series, | ||
| spawn, | ||
| stylesOverlay, | ||
| task, | ||
| taskPresets, | ||
| tsOverlay, | ||
| tscTask, | ||
| tscWatchTask, | ||
| tslintTask, | ||
| undertaker, | ||
| watch, | ||
| webpackCliInitTask, | ||
| webpackCliTask, | ||
| webpackConfig, | ||
| webpackDevServerTask, | ||
| webpackMerge, | ||
| webpackOverlays, | ||
| webpackServeConfig, | ||
| webpackTask, | ||
| } from 'just-scripts'; | ||
| export type { | ||
| ApiExtractorOptions, | ||
| CleanTaskOptions, | ||
| CopyTaskOptions, | ||
| CreateOptions, | ||
| EntryHeader, | ||
| EsLintTaskOptions, | ||
| EsbuildBuildOptions, | ||
| EsbuildTransformOptions, | ||
| ExtractOptions, | ||
| JestTaskOptions, | ||
| NodeExecTaskOptions, | ||
| SassTaskOptions, | ||
| Task, | ||
| TaskContext, | ||
| TaskFunction, | ||
| TsLintTaskOptions, | ||
| TscTaskOptions, | ||
| WebpackCliTaskOptions, | ||
| WebpackDevServerTaskOptions, | ||
| WebpackTaskOptions, | ||
| } from 'just-scripts'; | ||
| export { preset } from './presets'; | ||
| export { expandSourcePath } from './copy'; | ||
| export * as postprocess from './postprocess'; | ||
| export { postprocessTask } from './postprocess'; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.