Skip to content

Commit 3c0989b

Browse files
authored
Apps/roadmap/destructure (#195)
* use vite 8 beta * lint * update deps * pnpm i * use camelCase by default * use globalThis * remove magic numbers * refactor to smaller functions * refactor roadmap match * lint * sort imports * fix copilot-instructions * case shuffle 1 * case shuffle 2 * update lint styles * lint templates * case shuffle 1 * not necessary in React17+ w/ jsx-dev * lint templates * case shuffle 1 * case shuffle 2 * bump template to node LTS latest * lint template * lint types * lint root configs * case shuffle 1 * case shuffle 2 * case shuffle 1 * case shuffle 2 * update readmes * case shuffle 1 * case shuffle 2 * case shuffle 1 * case shuffle 2 * sort imports * update types * sort imports * decompose app * use muted color * check for logo * allow versioned roadmap pages * update types * rewrite color selectors * add extra hides to roadmap course * add roadmap to bottom of styles * lint * product.logo may be undefined * lint * update deps * rename to LTI API * simplify js * lint * use LTI postMessages * remove logging * use tsdown to bundle public assets * lint * ignore public * use correct reference * minify * destructure build scripts * correct public URL * roadmap@1.1.0 * generate coverage * update deps * update types * update error page * add public images * add public images
1 parent 4dd05d1 commit 3c0989b

126 files changed

Lines changed: 3264 additions & 1784 deletions

File tree

Some content is hidden

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

.oxfmtrc.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"**/.turbo/**",
1919
"**/.next/**",
2020
"**/coverage/**",
21-
"**/node_modules/**"
21+
"**/node_modules/**",
22+
"**/public/**"
2223
]
2324
},
2425
"options": {

.oxlintrc.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"**/.turbo/**",
2424
"**/.next/**",
2525
"**/coverage/**",
26-
"**/node_modules/**"
26+
"**/node_modules/**",
27+
"**/public/**"
2728
],
2829
"plugins": [
2930
"eslint",
@@ -34,5 +35,27 @@
3435
"jsdoc",
3536
"import",
3637
"node",
37-
]
38+
],
39+
"rules": {
40+
"import/consistent-type-specifier-style": [
41+
"warn",
42+
"prefer-inline"
43+
],
44+
"import/no-unassigned-import": [
45+
"warn",
46+
{
47+
"allow": [
48+
"**/*.css",
49+
"@instructure.ai/shared-configs/types"
50+
]
51+
}
52+
],
53+
"react/react-in-jsx-scope": "off",
54+
"unicorn/filename-case": [
55+
"warn",
56+
{
57+
"case": "camelCase"
58+
}
59+
],
60+
}
3861
}

.template/esm/node/index.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ const main = async () => {
44
console.log("Hello World!");
55
};
66

7-
main().catch((e) => {
8-
throw new Error(e);
7+
main().catch((error) => {
8+
throw new Error(error);
99
});

.template/esm/tsconfig.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"compilerOptions": {
33
"paths": {
4-
"<<packagename>>": ["./node/index.ts"]
4+
"<<packagename>>": [
5+
"./node/index.ts"
6+
]
57
},
68
"target": "ES2022",
79
"module": "ESNext",
@@ -14,5 +16,7 @@
1416
"skipLibCheck": true
1517
},
1618
"extends": "../../tsconfig.json",
17-
"include": ["node"]
18-
}
19+
"include": [
20+
"node"
21+
]
22+
}

.template/esm/tsdown.config.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { defineConfig } from "tsdown";
22

33
export default defineConfig({
4+
clean: true,
5+
dts: true,
46
entry: "node/index.mts",
57
format: ["esm", "cjs"],
6-
outDir: "src",
7-
clean: true,
8-
target: "node20",
98
minify: true,
10-
dts: true,
9+
outDir: "src",
10+
target: "node24",
1111
tsconfig: "./tsconfig.json",
1212
});

.template/instui/.oxfmtrc.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"$schema": "../../node_modules/oxfmt/configuration_schema.json",
3-
"extends": ["../../.oxfmtrc.jsonc"]
3+
"extends": [
4+
"../../.oxfmtrc.jsonc"
5+
]
46
}

.template/instui/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33

44
<head>
5-
<meta charset="UTF-8" />
5+
<meta charset="utf8" />
66
<link rel="icon" href="/favicon.ico" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<meta name="application-version" content="%VITE_PACKAGE_VERSION%">
@@ -12,7 +12,7 @@
1212

1313
<body>
1414
<div id="root"></div>
15-
<script type="module" src="/src/Main.tsx"></script>
15+
<script type="module" src="/src/main.tsx"></script>
1616
</body>
1717

1818
</html>

.template/instui/src/App.tsx

Lines changed: 0 additions & 6 deletions
This file was deleted.

.template/instui/src/app.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { type FC } from "react";
2+
import { View } from "@instructure/ui";
3+
4+
const App: FC = () => <View>Hello, World!</View>;
5+
export default App;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { StrictMode } from "react";
2-
import { createRoot, type Root } from "react-dom/client";
3-
import App from "./App.tsx";
4-
import "./Main.css";
2+
import { type Root, createRoot } from "react-dom/client";
3+
import App from "./app.tsx";
4+
import "./main.css";
55
import { InstUISettingsProvider } from "@instructure/ui";
66

77
const root: HTMLElement =

0 commit comments

Comments
 (0)