/next-tsc-proposal

better way to use typescript / postcss / etc with nextjs

Primary LanguageJavaScript

next-tsc-proposal

better way to use typescript / postcss / etc with nextjs

gulp and preact branches also

Custom build with TypeScript Compiler

How to use

Using create-next-app

Execute create-next-app with Yarn or npx to bootstrap the example:

npx create-next-app --example custom-tbd my-tbd
# or
yarn create next-app --example custom-tbd my-tbd

Download manually

Download the example:

curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/custom-tbd
cd my-tbd

Install it and run:

npm install
node start
# or
yarn
node start

Deploy it to the cloud with now (download)

now

The idea behind the example

the bundler does not need to be coupled to the compilers / optimizers. The example shows how you can use TypeScript or any other transpile step to feed the bundler the production ready files