Coder Social home page Coder Social logo

liuliangsir / closure-typescript-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucidsoftware/closure-typescript-example

0.0 1.0 0.0 43 KB

An example of using the Google Closure Compiler with TypeScript, Tsickle, and Clutz.

Dockerfile 1.76% Makefile 14.13% HTML 4.07% JavaScript 76.90% TypeScript 3.15%

closure-typescript-example's Introduction

closure-typescript-example

An example of using the Google Closure Compiler with Angular 2, TypeScript, Tsickle, and Clutz.

Usage

To run the provided example, run make run at the root of the project. make help lists available make targets.

Dependencies

  • Linux or Mac OSX
  • Make
  • Java
  • npm
  • python (for SimpleHTTPServer)

All other dependencies will be downloaded and installed locally in the project when you run make.

The project has been tested on Ubuntu 14.04.

Custom built dependencies

This project builds Closure compilable versions of Angular and its dependencies and transitive dependencies. These include RxJS and symbol-observable.

The changes which make this possible have not been committed upstream. Discussion around these changes can be found at angular/angular#8550. The discussion is not exhaustive. If you have any questions, the build process and changes to the source of the dependencies are the best documentation.

Docker

A Docker container exists for this repository. To see the project in action, just run the Docker container and go to localhost:8000.

To run the docker container:

docker pull jjudd/closure-typescript-example
docker run -t -i -p 8000:8000 --net=host jjudd/closure-typescript-example

Then open a browser and go to localhost:8000. This loads the example in compiled mode.

To switch between compiled and uncompiled:

localhost:8000/index.html?compiled=1
localhost:8000/index.html?compiled=0

If you want to play around with the source in the container, you can launch the container as follows

docker run -t -i -p 8000:8000 --net=host jjudd/closure-typescript-example /bin/bash

closure-typescript-example's People

Contributors

jjudd avatar

Watchers

 avatar

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.