You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,11 +40,21 @@ The `npm run build` command compiles the library,
39
40
40
41
We've captured many of the most useful commands in npm scripts defined in the `package.json`:
41
42
42
-
*`npm run tsc` - runs the TypeScript compiler once.
43
-
*`npm run tsc:w` - runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them.
43
+
-`npm run tsc` - runs the TypeScript compiler once.
44
+
-`npm run tsc:w` - runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them.
44
45
with excellent support for Angular apps that use routing.
45
-
*`npm test` - compiles, runs and watches the karma unit tests
46
-
*`npm build` - compiles and generate the JS files
46
+
-`npm test` - compiles, runs and watches the karma unit tests
47
+
-`npm build` - compiles and generate the JS files
48
+
49
+
### Updating dependencies version
50
+
51
+
We use [npm-check-updates](https://www.npmjs.org/package/npm-check-updates) to update automatically the dependencies:
52
+
53
+
```bash
54
+
npm i -g npm-check-updates
55
+
ncu -u
56
+
rm -rf node_modules && npm install
57
+
```
47
58
48
59
## Testing
49
60
@@ -53,6 +64,7 @@ These tools are configured for specific conventions described below.
53
64
We recommend that you shut down one before starting another.*
54
65
55
66
### Unit Tests
67
+
56
68
TypeScript unit-tests are usually in the `src` folder. Their filenames must end in `.spec`.
57
69
58
70
Look for the example `src/angular-datatables.directive.spec.ts`.
@@ -77,9 +89,10 @@ The `HTML-Reporter` is also wired in. That produces a prettier output; look for
77
89
Run `deploy-doc.sh` to deploy the documentation to the Github Pages
0 commit comments