Skip to content

Instantly share code, notes, and snippets.

@stemcstudio
Last active October 10, 2020 16:14
Show Gist options
  • Save stemcstudio/4c11955c3ceafb7a4f5088f7bd3b6957 to your computer and use it in GitHub Desktop.
Save stemcstudio/4c11955c3ceafb7a4f5088f7bd3b6957 to your computer and use it in GitHub Desktop.
Public to Private

TypeScript Starter Application

Purpose

This application may be used as a template for creating new applications in STEMCstudio.

Features

index.html

This file is the entrypoint for your application.

index.ts

This file will be transpiled into JavaScript and will be used in index.html.

style.ccs

This file is the Cascading Style Sheet (CSS) that will style your application.

README.md

This markdown file describes your application. It supports LaTeX using MathJax...

$$E = m c^2$$

<!DOCTYPE html>
<html>
<head>
<base href='/'>
<link rel='stylesheet' href='style.css'>
</head>
<body>
<div id="main"></div>
</body>
</html>
function onReady() {
const msg = `Hello, World!`
console.log(`The console says "${msg}`)
const mainElement = document.getElementById('main');
mainElement.innerHTML = `<h1>The HTML says "${msg}".</h1>`;
}
DomReady.ready(onReady).catch(e => console.error(e));
{
"description": "Public to Private",
"dependencies": {
"DomReady": "^1.0.0"
},
"name": "public-to-private",
"version": "1.0.0",
"linting": true,
"hideConfigFiles": true,
"private": true
}
body {
background-color: #cccccc;
}
{
"allowJs": true,
"checkJs": false,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"jsx": "react",
"module": "system",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"preserveConstEnums": true,
"removeComments": true,
"skipLibCheck": true,
"sourceMap": false,
"strictNullChecks": false,
"suppressImplicitAnyIndexErrors": true,
"target": "es5",
"traceResolution": true
}
{
"rules": {
"array-type": [
true,
"array"
],
"curly": false,
"comment-format": [
true,
"check-space"
],
"eofline": true,
"forin": true,
"jsdoc-format": true,
"new-parens": true,
"no-conditional-assignment": false,
"no-consecutive-blank-lines": true,
"no-construct": true,
"no-for-in-array": true,
"no-inferrable-types": [
true
],
"no-magic-numbers": false,
"no-shadowed-variable": true,
"no-string-throw": true,
"no-trailing-whitespace": [
true,
"ignore-jsdoc"
],
"no-var-keyword": true,
"one-variable-per-declaration": [
true,
"ignore-for-loop"
],
"prefer-const": true,
"prefer-for-of": true,
"prefer-function-over-method": false,
"prefer-method-signature": true,
"radix": true,
"semicolon": [false, "never"],
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"triple-equals": true,
"use-isnan": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment