Skip to content

Developer References

Asad Sahi edited this page Nov 29, 2017 · 5 revisions

Few references for developer

  1. Find .net process id to attach to debugger (in command line) e.g VS Code debug attach in launch.json file.
  • wmic
  • process where caption="dotnet.exe" get ProcessId
  1. Upgrade from tsd to typings
  • npm uninstall tsd
  • rm -rf typings
  • npm install typings
  • typings init --upgrade
  • rm tsd.json
  • typings install
  • Add typings/main and typings/main.d.ts in tsconfig.json's exclude section to avoid duplicate identifiers during compilation
  1. Webpack stats analyser
  1. NPM useful commands:
  • npm oudated (list packages which are outdated)
  • npm view packagenamexxx version (see the latest package available on npm)
  1. Squash all commits:
  • git checkout --orphan new-master master
  • git commit -m "Enter commit message for your new initial commit"
  • Overwrite the old master branch reference with the new one
  • git branch -M new-master master
  • Squash all commits of a feature branch before merge into master
  • git checkout master
  • git merge --squash featurebranch
  • Force push to update remote branch
  • git push origin master -f

Service worker behind insecure localhost certificate: (enable using this flag)

chrome://flags/#allow-insecure-localhost