create-basicjs 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,13 +124,14 @@ const create = function (options) {
124
124
  console.log("Open the folder in an AI coding tool and describe your app. To publish: node _basic/tools/build.js");
125
125
  };
126
126
 
127
- // The AGENTS.md of the published versions (0.1.1 - 0.1.4), as a new project got it (sha256).
127
+ // The AGENTS.md of the published versions (0.1.1 - 0.1.7), as a new project got it (sha256).
128
128
  // WHY: an update replaced only _basic/, so an AGENTS.md nobody changed kept the names of an older kit
129
129
  // (styleName: "primary", ozdenType1, AutoLayout) next to a _basic/ that has them no more.
130
130
  const OLD_AGENTS_HASHES = [
131
131
  "2898b4e7a3e2b04754073f611bf26c13e8b2e5685c50582f10d1ae1f066ff8ba",
132
132
  "ad7764b34b6f3e8d33fd89b2b0238102ff78e5613916e2fe1e3d999efd64c6e0",
133
133
  "3092379ec5e7219f20dc64b6a69ac688c06b79d8c46d966977a2706d637b6811",
134
+ "95a7df2cb361b96743b0817cd27024b6a7bc04f32c74e2ccc39da8ddd3370d56", // 0.1.5 - 0.1.7
134
135
  ];
135
136
 
136
137
  const hashOf = function (text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-basicjs",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Create a project with basic.js and OzdenUI, ready to build with AI tools.",
5
5
  "bin": {
6
6
  "create-basicjs": "bin/create-basicjs.js"
@@ -28,6 +28,17 @@ Add a `<script>` line to `index.htm` for the component and for every file in its
28
28
 
29
29
  Pages load the source files (`name.js`). Components have no `.min.js` files.
30
30
 
31
+ ## A component that lacks something
32
+
33
+ First look in the header of `_basic/comp/name.js`: a param, an event (Ex: `onCellCreate`) or a `style` key may do it already. When none does, make your own version of the component, and add the feature there:
34
+
35
+ 1. Copy `_basic/comp/tiny-table.js` to `app/comp/tiny-table-plus.js` (a name that says what it adds).
36
+ 2. In the copy, replace the name everywhere: `TinyTable` → `TinyTablePlus` (this also renames `TinyTableDefaults` and `TinyTable.styles`).
37
+ 3. In `index.htm`, load the copy instead of the original, after the files it needs.
38
+ 4. Change the copy, and use `TinyTablePlus` in the app.
39
+
40
+ Never change the file in `_basic/`: an update replaces it. Your copy keeps working after an update, but it does not get its fixes: change only what the feature needs.
41
+
31
42
  ## Rules that are easy to miss
32
43
 
33
44
  - `const start = function () {}` is the entry point. basic.js creates the global `page` and then calls it. `loop()` runs every second when it exists.
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8