Code Monkey home page Code Monkey logo

extension-webpack-typescript's Introduction

extension-webpack-typescript

ColdBox Elixir 6 support for TypeScript Loader for Webpack

This package provides Webpack support for compiling Typescript files (.ts) in your ColdBox Elixir 2 projects. Please note that, if using ColdBox Elixir 1, you don't want this package.

Step 1: Install

npm install coldbox-elixir-webpack-typescript --save-dev

Important: You must also create a tsconfig.json file in your project root. The simplest is as shown:

{
    "compilerOptions": {}
}

Step 2: Gulpfile.js

var elixir = require( "coldbox-elixir" );

require( "coldbox-elixir-webpack-typescript" );

elixir( function( mix ) {
	mix.webpack( "app.js" );
} )

You can optionally configure .vue files to be loaded as .ts files by calling compileVueFiles() off of the coldbox-elixir-webpack-typescript.

var elixir = require( "coldbox-elixir" );

// now `.vue` files will load as .ts files
require( "coldbox-elixir-webpack-typescript" ).compileVueFiles();

elixir( function( mix ) {
	mix.webpack( "app.js" );
} )

You will need to modify your tsconfig.json to at least the following:

{
    "compilerOptions": {
        "lib": [ "dom", "es5", "es2015.promise" ]
    }
}

Contributions and Bugs

Project tracking for this project can be found at the Ortus Solutions Jira. Please log all bugs, improvements, and features there.

Pull requests are welcome and encouraged. Please check on the Jira page before starting any large amount of work so your time isn't wasted.

Brad Wood (@bdw429s) has a great guide on submitting pull requests. If you are unsure where to go, in need of help, or have a question, come ask in the #box-products channel on the CFML Slack.

extension-webpack-typescript's People

Contributors

elpete avatar

Watchers

 avatar  avatar  avatar

Forkers

goochjj

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.