Skip to content

Instantly share code, notes, and snippets.

@MrMoshkovitz
Last active November 2, 2020 10:33
Show Gist options
  • Save MrMoshkovitz/b9278d8af4dcf1afddf7a48398b1c0ca to your computer and use it in GitHub Desktop.
Save MrMoshkovitz/b9278d8af4dcf1afddf7a48398b1c0ca to your computer and use it in GitHub Desktop.
TypeScript
npm i @types/node`
npm install -g typescript
npm install -g webpack
install -g ts-loader // links webpack to complie typescript
npm install -g jquery // to use jquery in your project
npm install -g http-server // to have a local server run
http-server -c-1 // Running HTTP Server
tsc --watch //Run TSC ON All FIles
{
"compilerOptions": {
"module": "commonjs",
"outDir": "dist/",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true
},
"include": [
"*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
{
"compilerOptions": {
"module": "commonjs",
"outDir": "dist/",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true
},
"include": [
"*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment