Skip to content

Commit 3442ceb

Browse files
authored
Switch build process to use microbundle (#209)
1 parent 72f6c5b commit 3442ceb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5136
-2137
lines changed

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
typings
3+
dist
4+
deno_dist
5+
src/*.deno.ts

.eslintrc.json

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
{
2-
"extends": ["eta-dev"]
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
8+
"overrides": [],
9+
"parserOptions": {
10+
"ecmaVersion": "latest",
11+
"sourceType": "module"
12+
},
13+
"rules": {
14+
"@typescript-eslint/no-var-requires": 0,
15+
"@typescript-eslint/no-explicit-any": 1,
16+
"@typescript-eslint/ban-types": 0
17+
}
318
}

.prettierrc

-5
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2019 Ben Gubler <[email protected]>
1+
Copyright 2023 Ben Gubler <[email protected]>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

deno_dist/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2019 Ben Gubler <[email protected]>
1+
Copyright 2023 Ben Gubler <[email protected]>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

deno_dist/file-utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function getWholeFilePath(
5656
function getPath(path: string, options: EtaConfig): string {
5757
let includePath: string | false = false;
5858
const views = options.views;
59-
let searchedPaths: Array<string> = [];
59+
const searchedPaths: Array<string> = [];
6060

6161
// If these four values are the same,
6262
// getPath() will return the same result every time.
@@ -111,7 +111,7 @@ function getPath(path: string, options: EtaConfig): string {
111111
) {
112112
// If the above returned true, we know that the filePath was just set to a path
113113
// That exists (Array.some() returns as soon as it finds a valid element)
114-
return (filePath as unknown) as string;
114+
return filePath as unknown as string;
115115
} else if (typeof views === "string") {
116116
// Search for the file if views is a single directory
117117
filePath = getWholeFilePath(path, views, true);

deno_dist/parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default function parse(
133133

134134
while ((closeTag = parseCloseReg.exec(str))) {
135135
if (closeTag[1]) {
136-
let content = str.slice(lastIndex, closeTag.index);
136+
const content = str.slice(lastIndex, closeTag.index);
137137

138138
parseOpenReg.lastIndex = lastIndex = parseCloseReg.lastIndex;
139139

deno_dist/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function hasOwnProp(obj: object, prop: string): boolean {
2424

2525
export function copyProps<T>(toObj: T, fromObj: T): T {
2626
for (const key in fromObj) {
27-
if (hasOwnProp((fromObj as unknown) as object, key)) {
27+
if (hasOwnProp(fromObj as unknown as object, key)) {
2828
toObj[key] = fromObj[key];
2929
}
3030
}

0 commit comments

Comments
 (0)