My personal code repo for the project of the eBook: "Mastering Angular 2 Components" from Gion Kunz
- nodejs inkl. npm, Node Version Manager is recommended on Unix-like systems
npm install -g jspm live-server
- inside working dir
npm install jspm --save-dev
andjspm init
- answer all questions from JSPM wizard with
[Enter]
and the question about transpiler with[TypScript]
- create index.html
<!doctype html>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.import('main.js');
</script>
jspm install jquery
- create main.js
import $ from 'jquery';
class HelloWorld {
constructor() {
$(document.body).append('<h1>Hello World!</h1>');
}
}
const helloWorld = new HelloWorld();
- start application with
live-server
- SOLID principles: Wiki, Principles of OOD, Getting a SOLID start, Agile Software Development, Principles, Patterns, and Practices by Robert C. Martin
- Premature optimization is the root of all evil -- DonaldKnuth Wiki, c2 wiki
- ECMAScript 6 Exploring ES6 by Dr. Axel Rauschmayer, Speaking JavaScript by Dr. Axel Rauschmayer, #RSConf. Dr. Axel Rauschmayer. Using ECMAScript 6 today. Part I, Part II, Link Collection
- JavaScript Design Patterns by Addy Osmani
- Mozilla Developer Network export, import, Template literals (strings enclosed with back-tick (
- Design Patters by Erich Gamma (Gang of four [GoF]), Wiki, PDF, c2 wiki