The official TypeScript template for Create React App providing preconfigured TypeScript support and development environment setup.
Overall
score
98%
A small utility that produces the correct command invocations for the standard Create React App TypeScript project scripts described in the generated README.
command: "npm", args: ["start"]), applying provided host and port as HOST and PORT environment overrides without touching other scripts. @testci enabled, return the testing script invocation using npm (command: "npm", args: ["test", "--", "--watch=false"]) and set CI to true to disable watch mode; default to interactive with args: ["test"] and no CI override when ci is not set. @testcommand: "npm", args: ["run", "build"]), set NODE_ENV to production, and note the expected output directory as build. @testallowEject is true, using npm (command: "npm", args: ["run", "eject"]); otherwise throw a descriptive error explaining that eject is blocked. @test@generates
export type ScriptMode = "start" | "test" | "build" | "eject";
export interface ScriptOptions {
mode: ScriptMode;
host?: string;
port?: number;
ci?: boolean;
allowEject?: boolean;
}
export interface ScriptInvocation {
command: string;
args: string[];
env: Record<string, string>;
outputDir?: string;
}
export function buildScriptInvocation(options: ScriptOptions): ScriptInvocation;Provides the CRA TypeScript scaffold whose README documents the start, test, build, and eject scripts that this utility orchestrates.
Install with Tessl CLI
npx tessl i tessl/npm-cra-template-typescript