@@ -287,24 +287,24 @@ You'll notice that npm scripts can call each other which makes it easy to compos
287
287
Below is a list of all the scripts this template has available:
288
288
289
289
290
- | Npm Script | Description |
290
+ | Npm Script | Description |
291
291
| ------------------------- | ------------------------------------------------------------------------------------------------- |
292
- | ` start ` | Does the same as 'npm run serve'. Can be invoked with ` npm start ` |
293
- | ` build ` | Full build. Runs ALL build tasks (` build-sass ` , ` build-ts ` , ` lint ` , ` copy-static-assets ` ) |
292
+ | ` build-sass ` | Compiles all ` .scss ` files to ` .css ` files |
293
+ | ` build-ts ` | Compiles all source ` .ts ` files to ` .js ` files in the ` dist ` folder |
294
+ | ` build ` | Full build. Runs ALL build tasks (` build-sass ` , ` build-ts ` , ` lint ` , ` copy-static-assets ` ) |
295
+ | ` copy-static-assets ` | Calls script that copies JS libs, fonts, and images to dist directory |
296
+ | ` debug ` | Performs a full build and then serves the app in watch mode |
297
+ | ` lint ` | Runs ESLint on project files |
298
+ | ` serve-debug ` | Runs the app with the --inspect flag |
294
299
| ` serve ` | Runs node on ` dist/server.js ` which is the apps entry point |
295
- | ` watch-node ` | Runs node with nodemon so the process restarts if it crashes. Used in the main watch task |
296
- | ` watch ` | Runs all watch tasks (TypeScript, Sass, Node). Use this if you're not touching static assets. |
300
+ | ` start ` | Does the same as 'npm run serve'. Can be invoked with ` npm start ` |
297
301
| ` test ` | Runs tests using Jest test runner |
302
+ | ` watch-debug ` | The same as ` watch ` but includes the --inspect flag so you can attach a debugger |
303
+ | ` watch-node ` | Runs node with nodemon so the process restarts if it crashes. Used in the main watch task |
304
+ | ` watch-sass ` | Same as ` build-sass ` but continuously watches ` .scss ` files and re-compiles when needed |
298
305
| ` watch-test ` | Runs tests in watch mode |
299
- | ` build-ts ` | Compiles all source ` .ts ` files to ` .js ` files in the ` dist ` folder |
300
- | ` watch-ts ` | Same as ` build-ts ` but continuously watches ` .ts ` files and re-compiles when needed |
301
- | ` build-sass ` | Compiles all ` .scss ` files to ` .css ` files |
302
- | ` watch-sass ` | Same as ` build-sass ` but continuously watches ` .scss ` files and re-compiles when needed |
303
- | ` lint ` | Runs ESLint on project files |
304
- | ` copy-static-assets ` | Calls script that copies JS libs, fonts, and images to dist directory |
305
- | ` debug ` | Performs a full build and then serves the app in watch mode |
306
- | ` serve-debug ` | Runs the app with the --inspect flag |
307
- | ` watch-debug ` | The same as ` watch ` but includes the --inspect flag so you can attach a debugger |
306
+ | ` watch-ts ` | Same as ` build-ts ` but continuously watches ` .ts ` files and re-compiles when needed |
307
+ | ` watch ` | Runs all watch tasks (TypeScript, Sass, Node). Use this if you're not touching static assets. |
308
308
309
309
## Type Definition (` .d.ts ` ) Files
310
310
TypeScript uses ` .d.ts ` files to provide types for JavaScript libraries that were not written in TypeScript.
@@ -596,7 +596,7 @@ In that file you'll find two sections:
596
596
| chai | Testing utility library that makes it easier to write tests |
597
597
| concurrently | Utility that manages multiple concurrent tasks. Used with npm scripts |
598
598
| jest | Testing library for JavaScript. |
599
- | node- sass | Allows to compile .scss files to .css |
599
+ | sass | Allows to compile .scss files to .css |
600
600
| nodemon | Utility that automatically restarts node process when it crashes |
601
601
| supertest | HTTP assertion library. |
602
602
| ts-jest | A preprocessor with sourcemap support to help use TypeScript with Jest.|
0 commit comments