@mmit/typescript-starter
This is a starter project for typescript projects
Last updated 7 months ago by mmit .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @mmit/typescript-starter 
SYNC missed versions from official npm registry.

TypeScript - Starter

Live-Example | GitHub-Home

Puppeteer

12 examples to play with

Read HTML: https://github.com/GoogleChrome/puppeteer/issues/2913

Install

yarn add @types/expect-puppeteer @types/puppeteer jest-puppeteer puppeteer -D

QUnit

QUnit

Install: yarn add qunit @types/qunit -D

tsconfig.json:

{
    include: [
    
        // QUnit scheint sonst nicht zu funktionieren
        "node_modules/@types/qunit/index.d.ts"
    ]
}

src/types/global.d.ts:

import 'qunit';    

Klonen in neues Dir

git clone git@github.com:MikeMitterer/typescript-starter.git <new project> 
cd <new project>
rm -rf .git
git init

# GH Repo anlegen e.g. ts-signer
git remote add origin git@github.com:MikeMitterer/ts-signer.git

# Version auf 0.1.0 ziehen
sed -i '' -e "s/\"version\": \".*\"/\"version\": \"0.1.0\"/" package.json | cat package.json | grep '"version'

# Package-Name, Description und REPO-Url anpassen
ws package.json

# Deploy evtl. auf restricted umstellen
"deploy": "yarn version --new-version patch && yarn publish --access restricted --non-interactive",
"deploy": "yarn version --new-version patch && yarn publish --access public --non-interactive",

# README rudimentär anpassen (Title + Home) 
Repo bei README einfügen

# .rsync, .deployWebApp.conf, tools, TODO löschen
rm -rf .rsync tools TODO     

LICENCE anpassen

build.jenkins anpassen

Check ob die default-Dependencies benötigt werden
    
# Auf GIT pushen
git add . && git commit -am "Initial release" && git push -u origin master       

Deploy-Varianten aus packages.json

  • yarn clean

  • yarn deploy Erstellt die nötigen Files in lib

  • yarn deploy:node Erstellt im bin-Folder das File app.js dass mit node bin app.js aufgerufen werden kann

  • yarn deploy:web Browser-Part wird in dist veröffentlicht. Kann mit simplehttpserver dist/ getestet werden

  • yarn test | jest Führt die Unit-Tests aus

Upgrade aller packages

yarn-upgrade-latest

CI

# Kill Browser
ps | grep -i -C 0 "[/]webpack-dev-server" | awk '{print $1}' | while read psid; do echo "kill -HUP ${psid}"; done    

Current Tags

  • 0.6.20                                ...           latest (7 months ago)

25 Versions

  • 0.6.20                                ...           7 months ago
  • 0.6.19                                ...           8 months ago
  • 0.6.18                                ...           8 months ago
  • 0.6.17                                ...           8 months ago
  • 0.6.16                                ...           8 months ago
  • 0.6.15                                ...           8 months ago
  • 0.6.14                                ...           8 months ago
  • 0.6.13                                ...           8 months ago
  • 0.6.12                                ...           8 months ago
  • 0.6.11                                ...           8 months ago
  • 0.6.10                                ...           8 months ago
  • 0.6.9                                ...           8 months ago
  • 0.6.8                                ...           8 months ago
  • 0.6.7                                ...           8 months ago
  • 0.6.6                                ...           9 months ago
  • 0.6.5                                ...           9 months ago
  • 0.6.4                                ...           9 months ago
  • 0.6.3                                ...           10 months ago
  • 0.6.2                                ...           10 months ago
  • 0.6.1                                ...           10 months ago
  • 0.1.1                                ...           10 months ago
  • 0.1.11                                ...           a year ago
  • 0.1.10                                ...           a year ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 25
Last Day 0
Last Week 25
Last Month 51
Dependencies (3)
Dev Dependencies (65)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |