Skip to content

Commit 5a3b24c

Browse files
committed
Add typescript type support
1 parent 03c6321 commit 5a3b24c

File tree

11 files changed

+103
-22345
lines changed

11 files changed

+103
-22345
lines changed

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"jsxSingleQuote": true,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"arrowParens": "avoid",
6+
"bracketSpacing": true
7+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# mvc: A simple MVC framework with React views
22

3+
"Have your state and mutate it too"
4+
35
This framework combines other libraries to provide a Model-View-Controller (MVC)
46
architecture for code in the browser. The key libraries are:
57

config/build.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,9 @@ import { build } from "esbuild";
33
build({
44
entryPoints: ["src/index.js"],
55
bundle: true,
6+
sourcemap: true,
67
format: "esm",
7-
outfile: "dist/index.esm.js",
8-
write: true,
9-
external: ["react", "react-dom"],
10-
target: "es2018", // TODO: remove this when aha-app supports esnext.
11-
});
12-
13-
build({
14-
entryPoints: ["src/index.js"],
15-
bundle: true,
16-
format: "cjs",
17-
outfile: "dist/index.cjs.js",
8+
outfile: "dist/index.js",
189
write: true,
1910
external: ["react", "react-dom"],
2011
target: "es2018", // TODO: remove this when aha-app supports esnext.

0 commit comments

Comments
 (0)