Giter Site home page Giter Site logo

ng2-workshop's Introduction

ng2-workshop

This is the repo for the Angular 2 workshop @omegapoint. In order to install and run the application you need Node and NPM installed.
The project uses jspm and systemJS, jspm is a package/build manager and systemJS is a module loader for ES6/TypeScript.

Prerequisites:

  • Node: >= 4.x
  • Npm: >= 2.x
  • Browser with decent devtools, chrome is recommended. (this setup has been tested with chrome and safari)
## Instruction for setup: Run the following command:
npm run setup
The setup script downloads dependencies and configures systemJS mappings. We can now start the application by running:
npm start
This starts a simple web server with chokidar-socket-emitter enabled, the emitter will emit events every time a file is changed, deleted or added.
Index.html contains a script which configures systemjs-hot-reloader, the reloader will reload the angular components when needed.

running tests

The project is configured with the karma test runner and karma-uiuxengineering-jspm, which adds jspm support to karma. Tests are added to the test runner if a file ends with spec.ts.
Run the following command:

npm test

building the application

JSPM is also used to build the application, the build script applies tree-shaking with rollup.js and produces a js file in UMD format.
Build the application by running:

npm run build

The script creates a build directory containing a index.html with no dependencies to systemJS, ES6 or TypeScript.
If you install the npm package http-server globally you can start up the application in the build directory by running:

http-server -p {portnumber} -o

ng2-workshop's People

Contributors

thalen avatar

Watchers

Martin Altenstedt avatar Daniel Lindberg avatar Per Erngard avatar Fredrik Stålnacke avatar Sebastian Åkerman avatar Dan Bryntze avatar  avatar James Cloos avatar Kalle Eidhagen avatar Fredrik Forsberg avatar Alexander Lvov avatar Robert Novo avatar  avatar Ari Sahlsten avatar Sandra C avatar  avatar  avatar Oscar Vigell avatar Johan Ekblad avatar Saman avatar Alexander Hagerf avatar Petter Berglund avatar Nicholas Rydje avatar David avatar  avatar Erica Edholm avatar Clara Scattergood avatar  avatar  avatar Anna Karlsson avatar  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.