- Notifications
You must be signed in to change notification settings - Fork2
Run TypeScript with ease
NotificationsYou must be signed in to change notification settings
projectorjs/projector-typescript
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
RunTypeScript with ease
import*astsfrom"projector-typescript";exportasyncfunctiontranspile(){constoutput=awaitts.transpile({code:"import foo from 'bar'; foo();",compilerOptions:{/** * TypeScript Compiler Options * https://www.typescriptlang.org/docs/handbook/compiler-options.html */}});console.log(output.outputText);}
import*astsfrom"projector-typescript";exportasyncfunctionbuild(){/** * https://www.typescriptlang.org/docs/handbook/tsconfig-json.html * * Compile supports: * - files * – compilerOptions * - include / exclude * - loading existing tsconfig.json */awaitts.compile({cwd:/* project path */,compilerOptions:{/* TypeScript Compiler Options */},include:["src/**/*"],exclude:["node_modules"]});}
About
Run TypeScript with ease
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published