Socket
Socket
Sign inDemoInstall

@mmit/typescript-starter

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mmit/typescript-starter

This is a starter project for typescript projects


Version published
Weekly downloads
17
decreased by-60.47%
Maintainers
0
Weekly downloads
 
Created
Source

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

# Repo in package.json anpassen
"repository": {
    "type": "git",
    "url": "https://github.com/MikeMitterer/typescript-training"
},    

In README.md und package.json die GH-Url anpassen

# 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
> https://docs.npmjs.com/files/package.json#license

    # Evtl. (verhindert das publishen)    
    "private": true,
    
    # Wenn die Licence private ist
    "license": "UNLICENSED",
           
build.jenkins anpassen (Builds in 'Test' können alle entfernt werden)

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    

Keywords

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc