Skip to content
Barebones starter project for Preact with TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.storybook Dx/upgrade to webpack 3 (#17) Nov 20, 2017
__tests__
src Dx/upgrade to webpack 3 (#17) Nov 20, 2017
workbench Added stricter linting rules (#7) Apr 16, 2017
.appveyor.yml Node 6 is the minimum version now. (#19) Nov 20, 2017
.editorConfig initial commit. Dec 26, 2016
.gitattributes initial commit. Dec 26, 2016
.gitignore initial commit. Dec 26, 2016
.npmrc initial commit. Dec 26, 2016
.travis.yml
LICENSE initial commit. Dec 26, 2016
README.md Update dependencies to enable Greenkeeper 🌴 (#21) Feb 25, 2018
package-lock.json Converted webpack config to TypeScript. Implements #10. (#20) Nov 20, 2017
package.json Update dependencies to enable Greenkeeper 🌴 (#21) Feb 25, 2018
preprocessor.js initial commit. Dec 26, 2016
tsconfig.json Dx/upgrade to webpack 3 (#17) Nov 20, 2017
tslint.json Added stricter linting rules (#7) Apr 16, 2017
webpack.config.ts Converted webpack config to TypeScript. Implements #10. (#20) Nov 20, 2017
yarn.lock Converted webpack config to TypeScript. Implements #10. (#20) Nov 20, 2017

README.md

Build status Build status Greenkeeper badge

ts-preact-starter

This is a barebones starter kit for Preact with TypeScript. The initial goal of this is just to be able to clone a repo and get going with Preact and TypeScript. Here's the starter kit deployed at typescript-preact-starter.iamdeveloper.com.

To get up and running:

  • npm install or yarn (assuming you have yarn installed globally)
  • From the command line run npm start or yarn start
  • Navigate to http://localhost:3000

To run tests:

  • npm test or yarn test
  • To run in watch mode, run npm run test:watch or yarn run test:watch
  • Tests are set up to run out of the __tests__ folder. I put this by default as this appears to be part of the Jest defaults, but if you prefer to have your tests beside the code you want to test, simply modify the regex in the Jest configuration in package.json.

To run the workbench:

You can’t perform that action at this time.