Skip to content

Instantly share code, notes, and snippets.

@NewteqDeveloper
NewteqDeveloper / chrome dev (windows) shortcut
Created July 9, 2019 13:22
This is the shortcut to enable developer features to make testing a little easier with Google Chrome
// additional -- params can be added as required for your testing
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/Temp/ChromeDevData" --disable-web-security
@NewteqDeveloper
NewteqDeveloper / web.config
Created July 9, 2019 13:10
This is a web.config example of what is required to host an angular website on azure app services with a .NET Framework backing
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SPA" stopProcessing="true">
<match url="^(?!.*(.js|.css|.png|.jpg|.ico|.svg)).*$" />
<conditions logicalGrouping="MatchAll">
</conditions>
<action type="Rewrite" url="/" appendQueryString="true" />
@NewteqDeveloper
NewteqDeveloper / ng-npm-package.json
Last active May 23, 2019 13:26
A template for a NPM package json created with Angular2+
{
"name": "package-name",
"version": "0.0.0",
"description": "Your description",
"author": {
"name": "Author Name"
},
"repository": {
"type": "git",
"url": "GIT URL"
@NewteqDeveloper
NewteqDeveloper / tslint.json
Last active May 23, 2019 13:25
This is a template for good coding practice when using typescript (specifically for angular2+ projects)
{
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"comment-format": [
true,
@NewteqDeveloper
NewteqDeveloper / tsconfig.json
Created May 23, 2019 08:24
This is a template for tsconfig that I've found useful over my time developing angular projects
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,