0.0.1-rc.13 • Published 7 years ago

@reframe/typescript v0.0.1-rc.13

Weekly downloads
6
License
-
Repository
github
Last release
7 years ago

Reframe + TypeScript = :heart:

@reframe/typescript

Use Reframe with TypeScript.

Usage

Add @reframe/typescript to your reframe.config.js to use Reframe with TypeScript:

// reframe.config.js

const ts = require('@reframe/typescript'); // npm install @reframe/typescript

module.exports = {
    plugins: [
        ts({
            // `loaderOptions` is passed to `ts-loader`.
            loaderOptions: { // default value
                transpileOnly: true
            },

            // The `fork-ts-checker-webpack-plugin` plugin is not used if `dontUseForkChecker` is set to true.
            dontUseForkChecker: false, // default value

            // `forkCheckerOptions` is passed to `new ForkTsCheckerWebpackPlugin(forkCheckerOptions)`.
            forkCheckerOptions: { // default value
                silent: true,
            },
        })
    ],
};

Example

// /typescript/example/reframe.config.js

const ts = require('@reframe/typescript');

module.exports = {
    plugins: [
        ts(),
    ],
};
// /typescript/example/pages/landing.tsx

import * as React from "react";

interface HelloProps { compiler: string; framework: string; }

const Hello = (props: HelloProps) => <h1>Hello from {props.compiler} and {props.framework}!</h1>;

export default {
    route: '/',
    view: () => <Hello compiler="TypeScript" framework="React" />,
    domStatic: true,
};
0.3.2

6 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.13-next.0

7 years ago

0.1.12

7 years ago

0.1.12-next.0

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1-rc.21

7 years ago

0.0.1-rc.20

7 years ago

0.0.1-rc.19

7 years ago

0.0.1-rc.18

7 years ago

0.0.1-rc.17

7 years ago

0.0.1-rc.16

7 years ago

0.0.1-rc.15

7 years ago

0.0.1-rc.14

7 years ago

0.0.1-rc.13

7 years ago

0.0.1-rc.12

7 years ago

0.0.1-rc.11

7 years ago

0.0.1-rc.10

7 years ago

0.0.1-rc.9

7 years ago

0.0.1-rc.8

7 years ago

0.0.1-rc.7

7 years ago

0.0.1-rc.5

7 years ago

0.0.1-rc.4

7 years ago

0.0.1-rc.3

7 years ago

0.0.1-rc.2

7 years ago