bbg / ts-jquery-starterkit

Typescript with jQuery starter project for the Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript jQuery Starter Project

This projects is an example of how to use a simple jQuery app with TypeScript. Aside of TypeScript and jQuery we use webpack for bundling and make the app working for browsers.

Structure

  • The app.ts is the entry point of the application.
  • the src directory contains the app itself
  • the src/app contains the app logic

Warning

This project is far from perfect and of course not the only possible solution. It should just give an idea, how easy it is to write even extremely small apps in TypeScript.

Let's Get Ready

Run yarn install (or npm i)

When the packages are installed, run yarn dev (or npm run dev)

--> Go to http://localhost:9000

Write Code

Whenever you extend / edit your application, webpack will create a new bundle.js file - just reload your browser on localhost:9000 to see the new functionality or check the console for errors.

About

Typescript with jQuery starter project for the Web


Languages

Language:JavaScript 81.7%Language:TypeScript 18.3%