GithubHelp home page GithubHelp logo

nwtgck / typescript-on-browser-starter Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 5.0 945 KB

Starter for TypeScript on Web Browser

Home Page: https://typescript-on-browser-starter.netlify.com/

License: MIT License

HTML 12.97% TypeScript 25.80% JavaScript 61.23%
typescript starter template boilerplate browser quickstart

typescript-on-browser-starter's Introduction

typescript-on-browser-starter

Netlify Status

Starter for TypeScript on Web Browser

Purpose

For users who wants to try TypeScript on Web Browser easily and stress free

Feature

  • Simple as possible
  • Source map
  • Hot reload

Quick Start

# You can change app name
APP_NAME="myapp"
git clone https://github.com/nwtgck/typescript-on-browser-starter.git $APP_NAME && \
cd $APP_NAME && \
rm -rf .git && \
sed -i '' "s/typescript-on-browser-starter/${APP_NAME}/" package.json && \
sed -i '' "s/Starter for TypeScript on Web Browser/${APP_NAME}/" package.json && \
echo -e "# $APP_NAME" > README.md && \
sed -i ''  "s/2019/$(date -u "+%Y")/" LICENSE  && \
npm i

How to change

First, you can serve a develop server as follows.

npm install
npm run serve

Then, you can access to http://localhost:8080/, which will be loaded automatically if file changes detected.

You can modify src/index.ts as you want.

Build

npm install
npm run build

Then, you get ./dist directory. The file structure should be the following.

dist/
├── bundle.js
├── index.html
└── src
    └── index.d.ts

bundle.js includes an inline source map.

typescript-on-browser-starter's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar nwtgck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

typescript-on-browser-starter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.