create-rulecad 0.3.2 → 0.3.3

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.
package/index.mjs CHANGED
@@ -20,7 +20,7 @@ fs.renameSync(path.join(dir, 'gitignore'), path.join(dir, '.gitignore')); // npm
20
20
  const readme = path.join(dir, 'README.md');
21
21
  fs.writeFileSync(readme, fs.readFileSync(readme, 'utf8').replaceAll('NAME', name));
22
22
  // $RULECAD_LOCAL: a rulecad checkout to use instead of npm (to try unpublished changes)
23
- const from = (pkg) => (process.env.RULECAD_LOCAL ? `file:${path.join(path.resolve(process.env.RULECAD_LOCAL), 'packages', pkg)}` : '^0.3.0');
23
+ const from = (pkg) => (process.env.RULECAD_LOCAL ? `file:${path.join(path.resolve(process.env.RULECAD_LOCAL), 'packages', pkg)}` : '^0.4.0');
24
24
  fs.writeFileSync(path.join(dir, 'package.json'), `${JSON.stringify({
25
25
  name, private: true, type: 'module',
26
26
  scripts: { check: 'cad check home/soap-tray' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rulecad",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Start a rulecad project: npm create rulecad my-designs. A workspace with a soap tray to start from, ready to check, preview, export and share.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -56,6 +56,9 @@ variable says which rule it comes from. Follow these steps; they're what makes a
56
56
  with ranges from rules. An overlap or gap outside its range is a finding: report it with the numbers, and never
57
57
  widen a range to make it pass without saying why.
58
58
  - Build bigger things from checked assemblies used as items, rather than placing their objects again.
59
+ - Things that move are one assembly with joints and poses, not a copy per position: give the objects anchors, join
60
+ them with joints, name the positions in `poses`, and run `cad check --sweep` to find where parts collide on the way.
61
+ See "Joints and poses" in the cad README.
59
62
  - A part is named in fits as `<item>.<part>`; an object that returns one unnamed shape has one part, `body`.
60
63
  - A gap fit can't tell whether holes line up. Where a board screws into a part, add a holes fit
61
64
  (`{ "holes": "pcb.board", "into": "case.body", "depth": "m2.insert_length" }`).