Skip to content

Commit 19b0082

Browse files
committed
Add explanation on how to modify the generated files
1 parent bee08c7 commit 19b0082

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

codegen/index.js

+9-10
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ const htmlGenFile = "../src/React/Basic/DOM/Generated.purs";
55
const htmlSimplifiedGenFile = "../src/React/Basic/DOM/Simplified/Generated.purs";
66
const svgGenFile = "../src/React/Basic/DOM/SVG.purs";
77

8-
const htmlHeader = `-- | ----------------------------------------
8+
const warningHeader = `-- | ------------------------------------------------------------
99
-- | THIS FILE IS GENERATED -- DO NOT EDIT IT
10-
-- | ----------------------------------------
10+
-- | Instead edit files under 'codegen/' dir and regenerate with:
11+
-- | npm install
12+
-- | node ./index.js
13+
-- | ------------------------------------------------------------
14+
`;
1115

16+
const htmlHeader = `${warningHeader}
1217
module React.Basic.DOM.Generated where
1318
1419
import Data.Nullable (Nullable)
@@ -23,10 +28,7 @@ import Web.DOM (Node)
2328
2429
`;
2530

26-
const simplifiedHtmlHeader = `-- | ----------------------------------------
27-
-- | THIS FILE IS GENERATED -- DO NOT EDIT IT
28-
-- | ----------------------------------------
29-
31+
const simplifiedHtmlHeader = `${warningHeader}
3032
module React.Basic.DOM.Simplified.Generated where
3133
3234
import Data.Nullable (Nullable)
@@ -55,10 +57,7 @@ const propType = (e, p) => {
5557
}
5658
}
5759

58-
const svgHeader = `-- | ----------------------------------------
59-
-- | THIS FILE IS GENERATED -- DO NOT EDIT IT
60-
-- | ----------------------------------------
61-
60+
const svgHeader = `${warningHeader}
6261
module React.Basic.DOM.SVG where
6362
6463
import Data.Nullable (Nullable)

src/React/Basic/DOM/Generated.purs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
-- | ----------------------------------------
1+
-- | ------------------------------------------------------------
22
-- | THIS FILE IS GENERATED -- DO NOT EDIT IT
3-
-- | ----------------------------------------
3+
-- | Instead edit files under 'codegen/' dir and regenerate with:
4+
-- | npm install
5+
-- | node ./index.js
6+
-- | ------------------------------------------------------------
47

58
module React.Basic.DOM.Generated where
69

src/React/Basic/DOM/SVG.purs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
-- | ----------------------------------------
1+
-- | ------------------------------------------------------------
22
-- | THIS FILE IS GENERATED -- DO NOT EDIT IT
3-
-- | ----------------------------------------
3+
-- | Instead edit files under 'codegen/' dir and regenerate with:
4+
-- | npm install
5+
-- | node ./index.js
6+
-- | ------------------------------------------------------------
47

58
module React.Basic.DOM.SVG where
69

src/React/Basic/DOM/Simplified/Generated.purs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
-- | ----------------------------------------
1+
-- | ------------------------------------------------------------
22
-- | THIS FILE IS GENERATED -- DO NOT EDIT IT
3-
-- | ----------------------------------------
3+
-- | Instead edit files under 'codegen/' dir and regenerate with:
4+
-- | npm install
5+
-- | node ./index.js
6+
-- | ------------------------------------------------------------
47

58
module React.Basic.DOM.Simplified.Generated where
69

0 commit comments

Comments
 (0)