Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-typescript-compiler

Package Overview
Dependencies
Maintainers
6
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-typescript-compiler

A Broccoli plugin which compiles TypeScript files.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
793
decreased by-3.41%
Maintainers
6
Weekly downloads
 
Created
Source

broccoli-typescript-compiler

Build Status Build status

A Broccoli plugin which compiles TypeScript files.

How to install?

$ npm install broccoli-typescript-compiler --save-dev

How to use?

var typescript = require('broccoli-typescript-compiler').typescript;
var cjsTree = typescript(inputTree, {
  tsconfig: {,
    compilerOptions: {
      module: "commonjs",
      target: "es5",
      moduleResolution: "node",
      newLine: "LF",
      rootDir: "src",
      outDir: "dist",
      sourceMap: true,
      declaration: true
    },
    files: [
      "src/index.ts",
      "src/tests/**"
    ]
  },
  annotation: "compile program"
});

The broccoli plugin class

var TypeScript = require('broccoli-typescript-compiler').TypeScript;

Legacy filter behavior (compile all .ts files and only .ts and passthrough everything else).

var filter = require('broccoli-typescript-compiler');
var scriptTree = filter(inputTree);

Keywords

FAQs

Package last updated on 27 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc