Last active
November 2, 2020 10:33
-
-
Save MrMoshkovitz/b9278d8af4dcf1afddf7a48398b1c0ca to your computer and use it in GitHub Desktop.
TypeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i @types/node` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http-server -c-1 // Running HTTP Server | |
tsc --watch //Run TSC ON All FIles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"outDir": "dist/", | |
"noImplicitAny": true, | |
"removeComments": true, | |
"preserveConstEnums": true | |
}, | |
"include": [ | |
"*" | |
], | |
"exclude": [ | |
"node_modules", | |
"**/*.spec.ts" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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