-
Notifications
You must be signed in to change notification settings - Fork 9
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
Create InvokeBuild script #61
base: master
Are you sure you want to change the base?
Conversation
exec { & npm run compile } | ||
} | ||
|
||
task RestoreSnippets { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this into the restore region
} | ||
} | ||
|
||
task RestorePowerShellEditorServices { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this into the restore region
Remove-Item .\PowerShellEditorServices -Recurse -Force -ErrorAction Ignore | ||
Remove-Item .\Snippets -Recurse -Force -ErrorAction Ignore | ||
Remove-Item .\out -Recurse -Force -ErrorAction Ignore | ||
Remove-Item -Force -Recurse node_modules -ErrorAction Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this Remove-Item's parameter position is messing with my ocd compared to the others lol
[string]$EditorServicesRepoPath = $null | ||
) | ||
|
||
#Requires -Modules @{ModuleName="InvokeBuild";ModuleVersion="3.0.0"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a newer version we can put here
|
||
#Requires -Modules @{ModuleName="InvokeBuild";ModuleVersion="3.0.0"} | ||
|
||
# Grab package.json data which is used throughout the build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we don't use these variables anywhere except to log... The logging is still useful, but maybe change this comment
Generally looks good, we can keep the copyright header for now. Just make sure you also update the README in this PR |
First pass at creating an InvokeBuild script. Used the vscode-powershell build file as a template.
Fixes #59
One question of note: can the Copyright header be removed?