Skip to content

Commit e0d9908

Browse files
committed
Build with 10.0 and update configuration schema accordingly.
1 parent 1b7666e commit e0d9908

Some content is hidden

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

76 files changed

+502
-601
lines changed

data/build-schema.json

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,32 @@
7171
}
7272
]
7373
},
74+
"reanalyze": {
75+
"type": "object",
76+
"properties": {
77+
"analysis": {
78+
"type": "array",
79+
"items": {
80+
"enum": ["dce", "exception", "termination"]
81+
},
82+
"description": "The types of analysis to activate. `dce` means dead code analysis, `exception` means exception analysis, and `termination` is to check for infinite loops."
83+
},
84+
"suppress": {
85+
"type": "array",
86+
"items": {
87+
"type": "string"
88+
},
89+
"description": "Paths for any folders you'd like to exclude from analysis. Useful for bindings and similar. Example: `[\"src/bindings\"]`."
90+
},
91+
"unsuppress": {
92+
"type": "array",
93+
"items": {
94+
"type": "string"
95+
},
96+
"description": "Any specific paths inside suppressed folders that you want to unsuppress. Example: [\"src/bindings/SomeBinding.res\"]."
97+
}
98+
}
99+
},
74100
"react-jsx-version": {
75101
"title": "jsx-version",
76102
"type": "number",
@@ -313,14 +339,14 @@
313339
"type" : "string"
314340
}
315341
},
316-
"description": "path to gentype, path resolution is similar to reason"
342+
"description": "path to gentype, path resolution is similar to ReScript"
317343
},
318344
"reason-specs": {
319345
"type": "object",
320346
"properties": {
321347
"react-jsx": {
322348
"$ref": "#/definitions/react-jsx-version",
323-
"description": "Whether to apply the [Reason-React](https://github.com/reasonml/reason-react)-specific JSX PPX transformation."
349+
"description": "Whether to apply the [RescriptReact](https://github.com/rescript-lang/rescript-react)-specific JSX PPX transformation."
324350
}
325351
}
326352
},
@@ -374,7 +400,7 @@
374400
"properties": {
375401
"version": {
376402
"type": "string",
377-
"description": "The semantic version of the OCaml library"
403+
"description": "The semantic version of the ReScript library"
378404
},
379405
"name": {
380406
"type": "string",
@@ -397,11 +423,11 @@
397423
},
398424
"bs-dependencies": {
399425
"$ref": "#/definitions/dependencies",
400-
"description": "OCaml/Reason dependencies of the library, like in package.json. Currently searches in `node_modules`"
426+
"description": "ReScript dependencies of the library, like in package.json. Currently searches in `node_modules`"
401427
},
402428
"bs-dev-dependencies": {
403429
"$ref": "#/definitions/dependencies",
404-
"description": "OCaml/Reason dev dependencies of the library, like in package.json. Currently searches in `node_modules`"
430+
"description": "ReScript dev dependencies of the library, like in package.json. Currently searches in `node_modules`"
405431
},
406432
"pinned-dependencies" : {
407433
"$ref": "#/definitions/dependencies",
@@ -493,6 +519,10 @@
493519
},
494520
"suffix" : {
495521
"$ref" : "#/definitions/suffix-spec"
522+
},
523+
"reanalyze": {
524+
"$ref": "#/definitions/reanalyze",
525+
"description": "Configure reanalyze, a static code analysis tool for ReScript."
496526
}
497527
},
498528
"additionalProperties": false,

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"remark-slug": "^5.1.2",
3232
"remark-stringify": "^7.0.3",
3333
"request": "^2.88.0",
34+
"rescript": "^10.0.1",
3435
"stringify-object": "^3.3.0",
3536
"unified": "^8.4.0"
3637
},
@@ -47,7 +48,6 @@
4748
"esbuild-loader": "^2.13.1",
4849
"postcss-cli": "^8.3.0",
4950
"reanalyze": "^2.16.0",
50-
"rescript": "9.1.2",
5151
"tailwindcss": "^2.1.4"
5252
}
5353
}

scripts/generate_feed.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ console.log(content);
88

99
export {
1010
content ,
11-
1211
}
1312
/* content Not a pure module */

src/Blog.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Blog$CategorySelector(Props) {
4444
}, Belt_Array.map(tabs, (function (tab) {
4545
var onClick = function (evt) {
4646
evt.preventDefault();
47-
return Curry._1(onSelected, tab);
47+
Curry._1(onSelected, tab);
4848
};
4949
var isActive = selected === tab;
5050
var text = tab ? "Archived" : "All";
@@ -245,9 +245,9 @@ function $$default(props) {
245245
}, React.createElement(Blog$CategorySelector, {
246246
selected: currentSelection,
247247
onSelected: (function (selection) {
248-
return Curry._1(setSelection, (function (param) {
249-
return selection;
250-
}));
248+
Curry._1(setSelection, (function (param) {
249+
return selection;
250+
}));
251251
})
252252
}))), result);
253253
}
@@ -301,6 +301,5 @@ export {
301301
$$default ,
302302
$$default as default,
303303
getStaticProps ,
304-
305304
}
306305
/* middleDotSpacer Not a pure module */

src/BlogArticle.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,5 @@ export {
213213
$$default as default,
214214
getStaticProps ,
215215
getStaticPaths ,
216-
217216
}
218217
/* middleDotSpacer Not a pure module */

src/Design.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ var $$default = Design$default;
3232
export {
3333
$$default ,
3434
$$default as default,
35-
3635
}
3736
/* react Not a pure module */

src/DocsOverview.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function DocsOverview$default(Props) {
8585
var version = evt.target.value;
8686
var url = Url.parse(router.route);
8787
var targetUrl = "/" + (url.base.join("/") + ("/" + (version + ("/" + url.pagepath.join("/")))));
88-
return Next.Router.push(router, targetUrl);
88+
Next.Router.push(router, targetUrl);
8989
};
9090
versionSelect = React.createElement("div", {
9191
className: "text-fire"
@@ -120,6 +120,5 @@ var $$default = DocsOverview$default;
120120
export {
121121
$$default ,
122122
$$default as default,
123-
124123
}
125124
/* Next Not a pure module */

0 commit comments

Comments
 (0)