Skip to content

Commit 69dcfa1

Browse files
committed
chore: clean-up
1 parent 4c4526e commit 69dcfa1

File tree

36 files changed

+78
-100
lines changed

36 files changed

+78
-100
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ indent_style = tab
8686
[*.{f,f.txt}]
8787
indent_style = space
8888
indent_size = 2
89-
insert_final_newline = false
89+
insert_final_newline = true
9090

9191
# Set properties for shell files:
9292
[*.{sh,sh.txt}]
@@ -121,7 +121,7 @@ indent_style = tab
121121
[*.{md,md.txt}]
122122
indent_style = space
123123
indent_size = 4
124-
trim_trailing_whitespace = false
124+
trim_trailing_whitespace = true
125125

126126
# Set properties for `usage.txt` files:
127127
[usage.txt]

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,4 @@ jsconfig.json
168168

169169
# Sublime Text #
170170
################
171-
*.sublime-workspace
171+
*.sublime-workspace

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ package-lock = false
2525
shrinkwrap = false
2626

2727
# Disable automatically "saving" dependencies on install:
28-
save = false
28+
save = false

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ BUILD_FOLDER ?= js
6666
# Define filename extension conventions (keep in alphabetical order):
6767
CSS_FILENAME_EXT ?= css
6868

69-
# Define Node paths: (WARNING: we cannot use an absolute path here because of Webpack which only allows relative paths)
70-
NODE_PATH ?= ./node_modules/@stdlib/stdlib/lib/node_modules
69+
# Define Node paths:
70+
NODE_PATH ?=
7171

7272

7373
# DEPENDENCIES #
7474

75-
include $(TOOLS_MAKE_DIR)/Makefile
75+
include $(TOOLS_MAKE_DIR)/Makefile

etc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This directory contains configuration files.
3838

3939
## Notes
4040

41-
* Configuration files for external tools and environments should be placed in subdirectories. The subdirectory name should correspond to the name of the tool or environment.
41+
- Configuration files for external tools and environments should be placed in subdirectories. The subdirectory name should correspond to the name of the tool or environment.
4242

4343
</section>
4444

@@ -50,4 +50,4 @@ This directory contains configuration files.
5050

5151
</section>
5252

53-
<!-- /.links -->
53+
<!-- /.links -->

etc/esbuild/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818

1919
'use strict';
2020

21-
2221
// MODULES //
2322

2423
var esbuild = require( 'esbuild' );
25-
var config = require( './config' );
24+
var config = require( './config.js' );
2625

2726

2827
// MAIN //
2928

3029
/**
31-
* Builds the website using esbuild.
30+
* Builds the website.
3231
*
3332
* @async
3433
* @throws {Error} build failure
34+
* @returns {Promise} promise which resolves upon building the website
3535
*/
3636
async function main() {
3737
try {

etc/esbuild/config.js

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,32 @@
1818

1919
'use strict';
2020

21-
2221
// MODULES //
2322

24-
var path = require( 'path' );
25-
26-
27-
// VARIABLES //
23+
var resolve = require( 'path' ).resolve;
2824

29-
var SRC_DIR = path.resolve( __dirname, '../../src' );
30-
var BUILD_DIR = path.resolve( __dirname, '../../public/js' );
3125

26+
// MAIN //
3227

33-
// EXPORTS //
34-
35-
module.exports = {
36-
entryPoints: [
37-
SRC_DIR + '/index.jsx'
28+
var config = {
29+
'entryPoints': [
30+
resolve( __dirname, '../../src/index.jsx' )
3831
],
39-
bundle: true,
40-
outfile: BUILD_DIR + '/bundle.js',
41-
minify: true,
42-
sourcemap: false,
43-
target: 'es2015',
44-
jsxFactory: 'h',
45-
jsxFragment: 'Fragment',
46-
jsxImportSource: 'preact',
47-
alias: {
32+
'bundle': true,
33+
'outfile': resolve( __dirname, '../../public/js/bundle.js' ),
34+
'minify': true,
35+
'sourcemap': false,
36+
'target': 'es2015',
37+
'jsxFactory': 'h',
38+
'jsxFragment': 'Fragment',
39+
'jsxImportSource': 'preact',
40+
'alias': {
4841
'react': 'preact/compat',
4942
'react-dom': 'preact/compat'
5043
}
5144
};
45+
46+
47+
// EXPORTS //
48+
49+
module.exports = config;

lib/server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ limitations under the License.
1818
1919
-->
2020

21-
# Test code coverage Server
21+
# Server
2222

23-
> Create an HTTP server for serving test code coverage.
23+
> HTTP server for serving test code coverage.

lib/server/lib/defaults.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"address": "127.0.0.1",
3-
"latest": "",
43
"logger": false,
54
"port": 0,
65
"prefix": "/",
@@ -11,9 +10,6 @@
1110
"app": {
1211
"title": "Test Code Coverage | stdlib",
1312
"description": "Test code coverage website for stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing.",
14-
"theme": "",
15-
"mode": "default",
16-
"exampleSyntax": "es5",
17-
"prevNextNavigation": "alphabetical"
13+
"theme": ""
1814
}
1915
}

lib/server/lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
/**
2222
* Create an HTTP server for serving test code coverage.
2323
*
24-
* @module @stdlib/_tools/docs/www-test-code-coverage/server
24+
* @module @stdlib/www-test-coverage-server
2525
*
2626
* @example
27-
* var httpServer = require( '@stdlib/_tools/docs/www-test-code-coverage/server' );
27+
* var httpServer = require( '@stdlib/www-test-coverage-server' );
2828
* var App = require( 'my-app' );
2929
*
3030
* var opts = {
@@ -51,4 +51,4 @@ var main = require( './main.js' );
5151

5252
// EXPORTS //
5353

54-
module.exports = main;
54+
module.exports = main;

0 commit comments

Comments
 (0)