@motorcycle/compiler
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@motorcycle/compiler

Get It

npm install --save @motorcycle/compiler
# or
yarn add @motorcycle/compiler

API

compile(filePath: string): string

Takes the entry file to your Motorcycle run function away using
type information from the TypeScript compiler.

Example:

import { compile } from '@motorcycle/compiler'
import * as fs from 'fs'

const filePath = './src/bootstrap.ts'

fs.writeFileSync(filePath, compile(filePath))

Readme

Keywords

none

Package Sidebar

Install

npm i @motorcycle/compiler

Weekly Downloads

1

Version

3.0.0

License

MIT

Last publish

Collaborators

  • tylors
  • motorcyclets
  • frikki