From 7729e9de5cbdbc7fff4e198b2e10653256ecd204 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 3 Oct 2018 13:15:43 -0500 Subject: [PATCH] comments re: flow/typescript in templates' config/pipeline.js --- templates/boilerplate/config/pipeline.js | 20 ++++++++++++++++++++ templates/demo/config/pipeline.js | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/templates/boilerplate/config/pipeline.js b/templates/boilerplate/config/pipeline.js index 3ba2b624c..ec2a18714 100644 --- a/templates/boilerplate/config/pipeline.js +++ b/templates/boilerplate/config/pipeline.js @@ -1,3 +1,23 @@ +// Embark has support for Flow enabled by default in its built-in webpack +// config: type annotations will automatically be stripped out of DApp sources +// without any additional configuration. Note that type checking is not +// performed during builds. + +// To enable Flow type checking refer to the preconfigured template: +// https://github.com/embark-framework/embark-flow-template +// A new DApp can be created from that template with: +// embark new --template flow + module.exports = { typescript: false + // Setting `typescript: true` in this config will disable Flow support in + // Embark's default webpack config and enable TypeScript support: .ts and + // .tsx sources will automatically be transpiled into JavaScript without any + // additional configuration. Note that type checking is not performed during + // builds. + + // To enable TypeScript type checking refer to the preconfigured template: + // https://github.com/embark-framework/embark-typescript-template + // A new DApp can be created from that template with: + // embark new --template typescript }; diff --git a/templates/demo/config/pipeline.js b/templates/demo/config/pipeline.js index 3ba2b624c..ec2a18714 100644 --- a/templates/demo/config/pipeline.js +++ b/templates/demo/config/pipeline.js @@ -1,3 +1,23 @@ +// Embark has support for Flow enabled by default in its built-in webpack +// config: type annotations will automatically be stripped out of DApp sources +// without any additional configuration. Note that type checking is not +// performed during builds. + +// To enable Flow type checking refer to the preconfigured template: +// https://github.com/embark-framework/embark-flow-template +// A new DApp can be created from that template with: +// embark new --template flow + module.exports = { typescript: false + // Setting `typescript: true` in this config will disable Flow support in + // Embark's default webpack config and enable TypeScript support: .ts and + // .tsx sources will automatically be transpiled into JavaScript without any + // additional configuration. Note that type checking is not performed during + // builds. + + // To enable TypeScript type checking refer to the preconfigured template: + // https://github.com/embark-framework/embark-typescript-template + // A new DApp can be created from that template with: + // embark new --template typescript };