GithubHelp home page GithubHelp logo

frankwallis / brackets-typescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fdecampredon/brackets-typescript

0.0 2.0 0.0 3.37 MB

Brackets extension for typescript

License: Apache License 2.0

brackets-typescript's Introduction

brackets-typescript

A Brackets extension that adds TypeScript support.

Features:

  • Code completions
  • Quick Edit
  • Quick Jump
  • Quick Find Definition
  • Syntactic coloring and indentation
  • Error reporting
  • Project level configuration

Installation:

To install this software please use the brackets-registry or use the Brackets install from url feature with this link.

You can use this folder url with install from url however a debug version will be fetched.

Using brackets-typescript:

Brackets-typescript enable all the Brackets features for TypeScript, to see how to use those features read the How To Use Brackets Guide.

Configuration:

While you can Edit any typescript file and enjoy all the brackets features, using project configuration allows to specify the compilation scope of your project and to customize typescript compiler options. To configure your project simply create a brackets configuration file (a file named .brackets.json at the root of your project) and add a typescript section in the json, example :

{
    "typescript": {
        "target": "ES5",
        "module": "AMD",
        "noImplicitAny": true,
        "sources" : [
            "src/declarations/**/*.ts",
            "src/main/**/*.ts"
        ]
    }
}

###Supported Options:

  • sources (string[]) , mandatory: An array of 'minimatch' pattern strings describing the sources of your project.

  • noLib (boolean, default false): Do not include the default lib.d.ts file within global declaration.

  • target (("es3" | "es5"), default es3): Specify ECMAScript target version: 'ES3' (default), or 'ES5'.

  • module (("none" | "amd" | "commonjs"), default none): Specify the module system: 'commonjs' or 'amd'.

  • sourceRoot (string) : Specifies the location where debugger should locate TypeScript files instead of source locations.

  • typescriptPath (string) : Specifies the location of an alternative typescript compiler bin folder (the specified folder must contains a typescriptServices.js file and a lib.d.ts file). If the option is unspecified or if the given path is invalid, the default compiler bundled with this extention will be used.

  • projects: Allows to define multiple projects into one same config file, any option can be overriden in a project subsection. example :

{
    "typescript": {
        "target": "ES5",
        "module": "AMD",
        "noImplicitAny": true,
        "projects" : {
            "project1": {
                "sources": [
                    "project1/src/**/*.ts"
                ]
            },
            "project2": {
                "sources": [
                    "project2/src/**/*.ts"
                ],
                "target": "es3"
            }
        }
    }
}

If you provide a projects section, a sources section must be specified for each project instead of in the toplevel typescript section.

brackets-typescript's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.