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
*__WARNING__: annotates possible pitfalls or gotchas.
44
-
*__OPTIMIZE__: annotates code which needs optimizing.
45
-
*__NOTE__: annotates questions, comments, or anything which does not fit under `TODO`/`FIXME`/`HACK`/`WARNING`/`OPTIMIZE` and should be brought to a reader's attention.
*__WARNING__: annotates possible pitfalls or gotchas.
47
+
*__OPTIMIZE__: annotates code which needs optimizing.
48
+
*__NOTE__: annotates questions, comments, or anything which does not fit under `TODO`/`FIXME`/`HACK`/`WARNING`/`OPTIMIZE` and should be brought to a reader's attention.
46
49
47
50
===
51
+
48
52
#### Files
49
53
50
54
The `Makefile` exposes several targets (also used internally) for finding project files. For example, to list all project files, excluding `node_modules`, `build`, `reports`, and hidden directories,
@@ -69,8 +73,9 @@ $ make FILES_FILTER=.*/utils/is-nan/.* list-files
69
73
70
74
__Notes__:
71
75
72
-
* Most filters should begin with `.*/` and end with `/.*`, as a filter is used as a regular expression to test a file path.
73
-
* The `*_PATTERN` and `*_FILTER` environment variables map to `-name` and `-regex` options, respectively, for the `find` command. For certain types of operations, like regular expressions using `|` for alternative matches, you may need to use `*_FILTER` over `*_PATTERN`. For instance,
76
+
* Most filters should begin with `.*/` and end with `/.*`, as a filter is used as a regular expression to test a file path.
77
+
78
+
* The `*_PATTERN` and `*_FILTER` environment variables map to `-name` and `-regex` options, respectively, for the `find` command. For certain types of operations, like regular expressions using `|` for alternative matches, you may need to use `*_FILTER` over `*_PATTERN`. For instance,
74
79
75
80
```bash
76
81
# List all `R` test fixtures...
@@ -80,7 +85,6 @@ __Notes__:
80
85
$ make TESTS_FIXTURES_FILTER='.*/*\.(jl|R)' list-test-fixtures
81
86
```
82
87
83
-
84
88
The `Makefile` includes the following common recipes for listing different file types...
85
89
86
90
@@ -106,7 +110,6 @@ To filter based on a file path,
106
110
$ make SOURCES_FILTER=.*/math/.* list-sources
107
111
```
108
112
109
-
110
113
##### Tests
111
114
112
115
To list all test files,
@@ -129,7 +132,6 @@ To filter based on a file path,
129
132
$ make TESTS_FILTER=.*/utils/fs/.* list-tests
130
133
```
131
134
132
-
133
135
##### Test Fixtures
134
136
135
137
To list all test fixture files,
@@ -152,7 +154,6 @@ To filter based on a file path,
152
154
$ make TESTS_FIXTURES_FILTER=.*/math/special/.* list-test-fixtures
153
155
```
154
156
155
-
156
157
##### Examples
157
158
158
159
To list all examples files,
@@ -175,9 +176,9 @@ To filter based on a file path,
175
176
$ make EXAMPLES_FILTER=.*/math/base/special/.* list-examples
176
177
```
177
178
178
-
179
179
===
180
-
#### Examples
180
+
181
+
#### Module Examples
181
182
182
183
To run module examples,
183
184
@@ -192,8 +193,8 @@ To limit which examples are run, use the same environment variables recognized b
192
193
$ make EXAMPLES_FILTER=.*/math/base/special/.* EXAMPLES_PATTERN=index.js examples
193
194
```
194
195
195
-
196
196
===
197
+
197
198
#### Unit Tests
198
199
199
200
To run unit tests,
@@ -218,7 +219,6 @@ $ make TESTS_FILTER=.*/math/base/utils/.* TESTS_PATTERN=test.js test
218
219
$ make TESTS_FILTER=.*/math/base/blas/.* test-summary
219
220
```
220
221
221
-
222
222
#### Test Coverage
223
223
224
224
To generate a test coverage report,
@@ -240,7 +240,6 @@ To view a generated report in a local web browser,
240
240
$ make view-cov
241
241
```
242
242
243
-
244
243
#### Browser Tests
245
244
246
245
To run browser tests in a (headless) local web browser,
@@ -265,8 +264,8 @@ $ make TESTS_FILTER=.*/math/base/utils/.* test-browsers
265
264
$ make TESTS_FILTER=.*/\@stdlib/utils/.* test-view-browsers
266
265
```
267
266
268
-
269
267
===
268
+
270
269
#### Documentation
271
270
272
271
To generate documentation from [JSDoc][jsdoc] source code comments,
@@ -281,9 +280,8 @@ To view the documentation in a local web browser,
281
280
$ make view-src-docs
282
281
```
283
282
284
-
285
-
286
283
===
284
+
287
285
#### Lint
288
286
289
287
To lint all source code, including tests and examples,
0 commit comments