Skip to content

Instantly share code, notes, and snippets.

View jonathanmza's full-sized avatar
📚
Learning everyday

jonathanmza

📚
Learning everyday
View GitHub Profile
@jonathanmza
jonathanmza / typescript-web-components.md
Created January 19, 2022 16:12 — forked from aelbore/typescript-web-components.md
Step by Step creating web components in typescript using rollup

Getting Started

  • Install Dependencies
    npm init
    npm install --save-dev ts-node typescript tslib express @types/express
    

Create your web server

  • Create server.ts in root folder of your app.
import { Pipe, PipeTransform } from '@angular/core';
/**
* Iterable Pipe
*
* It accepts Objects and [Maps](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)
*
* Example:
*
* <div *ngFor="let keyValuePair of someObject | iterable">
@jonathanmza
jonathanmza / gitflow-breakdown.md
Created February 7, 2019 09:14 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository