SYNOPSIS

Creates a new AskUI Node.js project.

DESCRIPTION

The AskUI-NewProject cmdlet creates a new AskUI project in a subdirectory within the current directory. It sets up the project structure with optional workspace ID, token, and Node.js version configurations.

PARAMETERS

  • -ProjectName | <String> - Name of the project that will be created in a subdirectory within the current directory.
  • -WorkspaceId | <String> - AskUI Workspace ID.
  • -Token | <String> - AskUI Token.
  • -AskUINodeJsVersion | <String> - AskUI NodeJs Version. Default: ‘0.20.10’
  • -SkipChangingPathUserPrompt | <SwitchParameter> - Skip the user prompt for changing the path.
  • -TestFramework | <String> - The test framework to use. Valid values: ‘jest’
  • -TypeScriptConfig | <String> - Specify whether to overwrite tsconfig.json. Valid values: ‘true’, ‘false’

EXAMPLES

EXAMPLE 1

AskUI-NewProject -ProjectName "MyAskUIProject"
Creates a new AskUI project named "MyAskUIProject" with default settings.

EXAMPLE 2

AskUI-NewProject -ProjectName "TestProject" -WorkspaceId "ws123" -Token "tk456" -TestFramework "jest"
Creates a new AskUI project with specified workspace ID, token and test framework.

EXAMPLE 3

AskUI-NewProject -ProjectName "AutomationProject" -AskUINodeJsVersion "0.20.10" -SkipChangingPathUserPrompt
Creates a new project using specific Node.js version and skips path change prompt.