Remove misc files and console.logs
DELETE
.git-blame-ignore-revs
-# formatting change
-4d2c16a16c11bd7d1a5cb1bd5f04115e472a7cf4
-
-# quote migration
-8463545ec585b49c650fcad3900e138b3e1dc9dd
-
-# hard tab migration
-e21450e240cb6165c8f233462a6fce2268ab1a77
-edc8d08272e8d60f175add47d367171857b81a2b

DELETE
.gitattributes
-node_modules linguist-vendored
-test-fixtures linguist-generated

MODIFY
internal/cli/server.ts
internal/cli/server.ts
@@ -57,7 +57,6 @@ export default async function server() {
(err) => {
// Socket error occured, cli could have died before it caught us
err;
- console.log(err);
process.exit();
},
);

MODIFY
internal/core/client/commands/run.ts
internal/core/client/commands/run.ts
@@ -35,7 +35,6 @@ export default createLocalCommand({
"unhandledRejection",
(error) => {
error;
- //console.log('unhandledRejection', error.stack);
},
);

MODIFY
internal/core/server/fs/Resolver.ts
internal/core/server/fs/Resolver.ts
@@ -42,7 +42,6 @@ function request(
url,
(res) => {
if (res.statusCode !== 200) {
- console.log("non-200 return");
resolve({
type: "FETCH_ERROR",
source: undefined,

MODIFY
internal/js-parser/parser.ts
internal/js-parser/parser.ts
@@ -143,14 +143,10 @@ export const createJSParser = createParser((ParserCore, ParserWithRequiredPath)
}
pushScope(type: ScopeType, value?: unknown) {
- //console.log('+' + type);
- //console.group();
this.getScope(type).push(value);
}
popScope(type: ScopeType) {
- //console.groupEnd();
- //console.log('-' + type);
this.getScope(type).pop();
}

MODIFY
internal/web-ui/index.tsx
internal/web-ui/index.tsx
@@ -375,8 +375,5 @@ event.subscribe(
);
socket.onopen = () => {
- console.log("HANDSHAKE START");
- bridge.handshake({second: true}).then(() => {
- console.log("HANDSHAKE END");
- });
+ bridge.handshake({second: true});
};

MODIFY
website/src/_includes/scripts/index.js
website/src/_includes/scripts/index.js
@@ -174,7 +174,6 @@ class TableOfContents {
}
}
- console.log("Calculating TOC headings positions");
this.hasInitializedHeadings = true;
this.headingsCalculated = [];
for (let i = 0; i < headingElements.length; i++) {

MODIFY
website/src/blog/posts/test.md
website/src/blog/posts/test.md
@@ -28,6 +28,5 @@ function myCommand() {
}
// Test with a line break above this line.
-console.log('Test');
```

Remove misc files and console.logs (#914)