Download and install VS Code Install VS Code from: https://code.visualstudio.com/
Download and install Node Create a Project Folder & Open VS Code
mkdir ts-hello-world
cd ts-hello-world
code .
.prettierrc.json | |
jest.config.js | |
tsconfig.json | |
tslint.json | |
src | |
examples | |
.vscode | |
__mocks__ |
{ | |
"name": "wiredin-node", | |
"description": "Interact with Wired In device", | |
"version": "1.0.0-alpha.1", | |
"repository": "https://github.com/kenhowardpdx/wiredin-node", | |
"main": "./dist/index.js", | |
"types": "./dist/index.d.ts", | |
"scripts": { | |
"build": "tsc -p tsconfig.json", | |
"lint": "tslint -p tsconfig.json", |
{ | |
"name": "wiredin-node", | |
"description": "Interact with Wired In device", | |
"version": "1.0.0-alpha.1", | |
"repository": "https://github.com/kenhowardpdx/wiredin-node", | |
"main": "./dist/index.js", | |
"types": "./dist/index.d.ts", | |
"scripts": { | |
"build": "tsc -p tsconfig.json", | |
"lint": "tslint -p tsconfig.json", |
{ | |
"name": "wiredin-node", | |
"description": "Interact with Wired In device", | |
"version": "1.0.0-alpha.1", | |
"repository": "https://github.com/kenhowardpdx/wiredin-node", | |
"main": "./dist/index.js", | |
"types": "./dist/index.d.ts", | |
"scripts": { | |
"build": "tsc -p tsconfig.json", | |
"lint": "tslint -p tsconfig.json", |
import { UpdateModule, Wiredin } from './core'; | |
const init = (wiredin: Wiredin): UpdateModule => { | |
const updateFn = (...args: string[]): void => { | |
wiredin('update', ...args); | |
}; | |
const colorFn = (color: string): void => { | |
updateFn('--color', color); | |
}; |
# See http://help.github.com/ignore-files/ for more about ignoring files. | |
# compiled output | |
/wwwroot | |
/tmp | |
/server/**/*.js | |
/server/**/*.map | |
.vscode/** | |
.vscode-test/** | |
out/test/** | |
out/**/*.map | |
out/**/*.test.js | |
src/** | |
.gitignore | |
tsconfig.json | |
tsconfig.prod.json | |
vsc-extension-quickstart.md |
.prettierrc.json | |
jest.config.js | |
tsconfig.json | |
tslint.json | |
src | |
examples | |
.vscode | |
__mocks__ |
this is a test |
Download and install VS Code Install VS Code from: https://code.visualstudio.com/
Download and install Node Create a Project Folder & Open VS Code
mkdir ts-hello-world
cd ts-hello-world
code .