Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

corbob
Copy link
Member

@corbob corbob commented Jul 30, 2019

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?

exec { & npm run compile }
}

task RestoreSnippets {
Copy link
Collaborator

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 {
Copy link
Collaborator

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
Copy link
Collaborator

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"}
Copy link
Collaborator

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.
Copy link
Collaborator

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

@TylerLeonhardt
Copy link
Collaborator

Generally looks good, we can keep the copyright header for now. Just make sure you also update the README in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build Enhancement
2 participants