From a4cda485d5ff7477ea91962b464b9d014beedf06 Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Fri, 17 Jun 2022 18:23:17 +0200 Subject: [PATCH] chore: Added scripts to facilitate development --- config/scripts.yaml | 1 + config/templates/design/config.js | 23 ++ config/templates/design/package.json | 12 + config/templates/design/src/.eslintrc | 5 + config/templates/design/src/box.js | 49 ++++ config/templates/design/src/index.js | 12 + config/templates/design/tests/shared.test.mjs | 41 +++ config/templates/readme.dflt.md | 6 + designs/aaron/README.md | 6 + designs/aaron/package.json | 1 + designs/albert/README.md | 6 + designs/albert/package.json | 1 + designs/bee/README.md | 6 + designs/bee/package.json | 1 + designs/bella/README.md | 6 + designs/bella/package.json | 1 + designs/benjamin/README.md | 6 + designs/benjamin/package.json | 1 + designs/bent/README.md | 6 + designs/bent/package.json | 1 + designs/breanna/README.md | 6 + designs/breanna/package.json | 1 + designs/brian/README.md | 6 + designs/brian/package.json | 1 + designs/bruce/README.md | 6 + designs/bruce/package.json | 1 + designs/carlita/README.md | 6 + designs/carlita/package.json | 1 + designs/carlton/README.md | 6 + designs/carlton/package.json | 1 + designs/cathrin/README.md | 6 + designs/cathrin/package.json | 1 + designs/charlie/README.md | 6 + designs/charlie/package.json | 1 + designs/cornelius/README.md | 6 + designs/cornelius/package.json | 1 + designs/diana/README.md | 6 + designs/diana/package.json | 1 + designs/examples/README.md | 6 + designs/examples/package.json | 1 + designs/florence/README.md | 6 + designs/florence/package.json | 1 + designs/florent/README.md | 6 + designs/florent/package.json | 1 + designs/hi/README.md | 6 + designs/hi/package.json | 1 + designs/holmes/README.md | 6 + designs/holmes/package.json | 1 + designs/hortensia/README.md | 6 + designs/hortensia/package.json | 1 + designs/huey/README.md | 6 + designs/huey/package.json | 1 + designs/hugo/README.md | 6 + designs/hugo/package.json | 1 + designs/jaeger/README.md | 6 + designs/jaeger/package.json | 1 + designs/legend/README.md | 6 + designs/legend/package.json | 1 + designs/lucy/README.md | 6 + designs/lucy/package.json | 1 + designs/lunetius/README.md | 6 + designs/lunetius/package.json | 1 + designs/paco/README.md | 6 + designs/paco/package.json | 1 + designs/penelope/README.md | 6 + designs/penelope/package.json | 1 + designs/plugintest/README.md | 6 + designs/plugintest/package.json | 1 + designs/rendertest/README.md | 6 + designs/rendertest/package.json | 1 + designs/sandy/README.md | 6 + designs/sandy/package.json | 1 + designs/shin/README.md | 6 + designs/shin/package.json | 1 + designs/simon/README.md | 6 + designs/simon/package.json | 1 + designs/simone/README.md | 6 + designs/simone/package.json | 1 + designs/sven/README.md | 6 + designs/sven/package.json | 1 + designs/tamiko/README.md | 6 + designs/tamiko/package.json | 1 + designs/teagan/README.md | 6 + designs/teagan/package.json | 1 + designs/theo/README.md | 6 + designs/theo/package.json | 1 + designs/tiberius/README.md | 6 + designs/tiberius/package.json | 1 + designs/titan/README.md | 6 + designs/titan/package.json | 1 + designs/trayvon/README.md | 6 + designs/trayvon/package.json | 1 + designs/tutorial/README.md | 6 + designs/tutorial/package.json | 1 + designs/unice/README.md | 6 + designs/unice/package.json | 1 + designs/ursula/README.md | 6 + designs/ursula/package.json | 1 + designs/wahid/README.md | 6 + designs/wahid/package.json | 1 + designs/walburga/README.md | 6 + designs/walburga/package.json | 1 + designs/waralee/README.md | 6 + designs/waralee/package.json | 1 + designs/yuri/README.md | 6 + designs/yuri/package.json | 1 + package.json | 4 +- packages/components/README.md | 6 + packages/components/package.json | 1 + packages/config-helpers/README.md | 6 + packages/config-helpers/package.json | 1 + packages/core/README.md | 6 + packages/core/package.json | 1 + packages/create-freesewing-pattern/README.md | 6 + .../create-freesewing-pattern/package.json | 3 +- packages/css-theme/README.md | 6 + packages/css-theme/package.json | 1 + packages/gatsby-remark-jargon/README.md | 6 + packages/gatsby-remark-jargon/package.json | 1 + packages/i18n/README.md | 6 + packages/i18n/package.json | 1 + packages/models/README.md | 6 + packages/models/package.json | 1 + packages/mui-theme/README.md | 6 + packages/mui-theme/package.json | 1 + packages/pattern-info/README.md | 6 + packages/pattern-info/package.json | 1 + packages/prettier-config/README.md | 6 + packages/remark-jargon/README.md | 6 + packages/remark-jargon/package.json | 1 + packages/utils/README.md | 6 + packages/utils/package.json | 1 + plugins/plugin-banner/README.md | 6 + plugins/plugin-banner/package.json | 1 + plugins/plugin-bartack/README.md | 6 + plugins/plugin-bartack/package.json | 1 + plugins/plugin-bundle/README.md | 6 + plugins/plugin-bundle/package.json | 1 + plugins/plugin-bust/README.md | 6 + plugins/plugin-bust/package.json | 1 + plugins/plugin-buttons/README.md | 6 + plugins/plugin-buttons/package.json | 1 + plugins/plugin-cutonfold/README.md | 6 + plugins/plugin-cutonfold/package.json | 1 + plugins/plugin-dimension/README.md | 6 + plugins/plugin-dimension/package.json | 1 + plugins/plugin-export-dxf/README.md | 6 + plugins/plugin-export-dxf/package.json | 1 + plugins/plugin-flip/README.md | 6 + plugins/plugin-flip/package.json | 1 + plugins/plugin-gore/README.md | 6 + plugins/plugin-gore/package.json | 1 + plugins/plugin-grainline/README.md | 6 + plugins/plugin-grainline/package.json | 1 + plugins/plugin-i18n/README.md | 6 + plugins/plugin-i18n/package.json | 1 + plugins/plugin-logo/README.md | 6 + plugins/plugin-logo/package.json | 1 + plugins/plugin-measurements/README.md | 6 + plugins/plugin-measurements/package.json | 1 + plugins/plugin-mirror/README.md | 6 + plugins/plugin-mirror/package.json | 1 + plugins/plugin-notches/README.md | 6 + plugins/plugin-notches/package.json | 1 + plugins/plugin-round/README.md | 6 + plugins/plugin-round/package.json | 1 + plugins/plugin-scalebox/README.md | 6 + plugins/plugin-scalebox/package.json | 1 + plugins/plugin-sprinkle/README.md | 6 + plugins/plugin-sprinkle/package.json | 1 + plugins/plugin-svgattr/README.md | 6 + plugins/plugin-svgattr/package.json | 1 + plugins/plugin-theme/README.md | 6 + plugins/plugin-theme/package.json | 1 + plugins/plugin-title/README.md | 6 + plugins/plugin-title/package.json | 1 + plugins/plugin-validate/README.md | 6 + plugins/plugin-validate/package.json | 1 + plugins/plugin-versionfree-svg/README.md | 6 + plugins/plugin-versionfree-svg/package.json | 1 + scripts/add-software.mjs | 249 +++++++++++++++++- scripts/banner.mjs | 9 + scripts/help.mjs | 20 +- 183 files changed, 1019 insertions(+), 15 deletions(-) create mode 100644 config/templates/design/config.js create mode 100644 config/templates/design/package.json create mode 100644 config/templates/design/src/.eslintrc create mode 100644 config/templates/design/src/box.js create mode 100644 config/templates/design/src/index.js create mode 100644 config/templates/design/tests/shared.test.mjs create mode 100644 scripts/banner.mjs diff --git a/config/scripts.yaml b/config/scripts.yaml index 3ae16faed2c..7f868c30796 100644 --- a/config/scripts.yaml +++ b/config/scripts.yaml @@ -6,6 +6,7 @@ _: test: ¬ests 'echo "{{name}}: No tests configured. Perhaps you''d like to do this?" && exit 0' vbuild: 'VERBOSE=1 node build.js' lab: "cd ../../sites/lab && yarn start" + tips: "node ../../scripts/help.mjs" _types: design: prettier: "npx prettier --write 'src/*.js' 'config/*.js'" diff --git a/config/templates/design/config.js b/config/templates/design/config.js new file mode 100644 index 00000000000..15ba5ec2fb0 --- /dev/null +++ b/config/templates/design/config.js @@ -0,0 +1,23 @@ +import { version } from './package.json' + +export default { + name: '{{name}}', + version, + design: '{{author}}', + code: '{{author}}', + department: '{{department}}', + type: '{{type}}', + difficulty: 3, + tags: [ ], + optionGroups: { + fit: ['size'], + }, + measurements: [], + dependencies: {}, + inject: {}, + hide: [], + parts: ['box'], + options: { + size: { pct: 50, min: 10, max: 100 }, + }, +} diff --git a/config/templates/design/package.json b/config/templates/design/package.json new file mode 100644 index 00000000000..06867ede26f --- /dev/null +++ b/config/templates/design/package.json @@ -0,0 +1,12 @@ +{ + "name": "{{name}}", + "version": "0.0.1", + "description": "{{description}}", + "author": "Joost De Cock (https://github.com/joostdecock)", + "homepage": "https://freesewing.org/", + "repository": "github:freesewing/freesewing", + "license": "MIT", + "main": "dist/index.js", + "module": "dist/index.mjs", + "scripts": { } +} diff --git a/config/templates/design/src/.eslintrc b/config/templates/design/src/.eslintrc new file mode 100644 index 00000000000..55f121d152d --- /dev/null +++ b/config/templates/design/src/.eslintrc @@ -0,0 +1,5 @@ +{ + "env": { + "jest": true + } +} diff --git a/config/templates/design/src/box.js b/config/templates/design/src/box.js new file mode 100644 index 00000000000..18b3ab1e23b --- /dev/null +++ b/config/templates/design/src/box.js @@ -0,0 +1,49 @@ +export default function (part) { + const { options, Point, Path, points, paths, Snippet, snippets, complete, sa, paperless, macro } = + part.shorthand() + + const w = 500 * options.size + points.topLeft = new Point(0, 0) + points.topRight = new Point(w, 0) + points.bottomLeft = new Point(0, w / 2) + points.bottomRight = new Point(w, w / 2) + + paths.seam = new Path() + .move(points.topLeft) + .line(points.bottomLeft) + .line(points.bottomRight) + .line(points.topRight) + .line(points.topLeft) + .close() + .attr('class', 'fabric') + + // Complete? + if (complete) { + points.logo = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5) + snippets.logo = new Snippet('logo', points.logo) + points.text = points.logo + .shift(-90, w / 8) + .attr('data-text', 'hello') + .attr('data-text-class', 'center') + + if (sa) { + paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa') + } + } + + // Paperless? + if (paperless) { + macro('hd', { + from: points.bottomLeft, + to: points.bottomRight, + y: points.bottomLeft.y + sa + 15, + }) + macro('vd', { + from: points.bottomRight, + to: points.topRight, + x: points.topRight.x + sa + 15, + }) + } + + return part +} diff --git a/config/templates/design/src/index.js b/config/templates/design/src/index.js new file mode 100644 index 00000000000..79f79fffeb3 --- /dev/null +++ b/config/templates/design/src/index.js @@ -0,0 +1,12 @@ +import freesewing from '@freesewing/core' +import plugins from '@freesewing/plugin-bundle' +import config from '../config' +import draftBox from './box' + +// Create new design +const Pattern = new freesewing.Design(config, plugins) + +// Attach the draft methods to the prototype +Pattern.prototype.draftBox = draftBox + +export default Pattern diff --git a/config/templates/design/tests/shared.test.mjs b/config/templates/design/tests/shared.test.mjs new file mode 100644 index 00000000000..85fc92a64fc --- /dev/null +++ b/config/templates/design/tests/shared.test.mjs @@ -0,0 +1,41 @@ +// This file is auto-generated. +// Changes you make will be overwritten. +import chai from 'chai' +import models from '@freesewing/models' +import patterns from '@freesewing/pattern-info' +import Pattern from './dist/index.mjs' + +// Shared tests +import { testPatternConfig } from '../../../tests/patterns/config.mjs' +import { testPatternDrafting } from '../../../tests/patterns/drafting.mjs' +import { testPatternSampling } from '../../../tests/patterns/sampling.mjs' + +const expect = chai.expect + + +// Test config +testPatternConfig( + "{{name}}", + new Pattern(), + expect, + models, + patterns +) + +// Test drafting +testPatternDrafting( + "{{name}}", + Pattern, + expect, + models, + patterns +) + +// Test sampling +testPatternSampling( + "{{name}}", + Pattern, + expect, + models, + patterns +) diff --git a/config/templates/readme.dflt.md b/config/templates/readme.dflt.md index 47e05a6facd..a2d960b551e 100644 --- a/config/templates/readme.dflt.md +++ b/config/templates/readme.dflt.md @@ -14,6 +14,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: {{{fullname}}} +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/aaron/README.md b/designs/aaron/README.md index ea8c2a17c71..358736369a3 100644 --- a/designs/aaron/README.md +++ b/designs/aaron/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/aaron +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/aaron/package.json b/designs/aaron/package.json index 458f05f87d1..ab9b87d94ac 100644 --- a/designs/aaron/package.json +++ b/designs/aaron/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/albert/README.md b/designs/albert/README.md index 9124f0df980..82a4f639e23 100644 --- a/designs/albert/README.md +++ b/designs/albert/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/albert +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/albert/package.json b/designs/albert/package.json index 55b41beba19..45cbdbd9555 100644 --- a/designs/albert/package.json +++ b/designs/albert/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/bee/README.md b/designs/bee/README.md index 6cd4c633512..5cff5ba54d1 100644 --- a/designs/bee/README.md +++ b/designs/bee/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/bee +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/bee/package.json b/designs/bee/package.json index cbc7d4ca42b..74f373cb795 100644 --- a/designs/bee/package.json +++ b/designs/bee/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/bella/README.md b/designs/bella/README.md index 50c2c655651..742666a54fb 100644 --- a/designs/bella/README.md +++ b/designs/bella/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/bella +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/bella/package.json b/designs/bella/package.json index 9cdb24fab1b..2942504ea09 100644 --- a/designs/bella/package.json +++ b/designs/bella/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step3": "node build.js" diff --git a/designs/benjamin/README.md b/designs/benjamin/README.md index 0b0265a575b..ac960195e06 100644 --- a/designs/benjamin/README.md +++ b/designs/benjamin/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/benjamin +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/benjamin/package.json b/designs/benjamin/package.json index 771f0654078..a98ebde1aae 100644 --- a/designs/benjamin/package.json +++ b/designs/benjamin/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/bent/README.md b/designs/bent/README.md index 464407dba82..77dd0740f79 100644 --- a/designs/bent/README.md +++ b/designs/bent/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/bent +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/bent/package.json b/designs/bent/package.json index b0db1e38e91..bd0374475b1 100644 --- a/designs/bent/package.json +++ b/designs/bent/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step4": "node build.js" diff --git a/designs/breanna/README.md b/designs/breanna/README.md index 4096f1360f2..09c1c5df0ad 100644 --- a/designs/breanna/README.md +++ b/designs/breanna/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/breanna +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/breanna/package.json b/designs/breanna/package.json index d3e62efa8ba..c0285fab7b6 100644 --- a/designs/breanna/package.json +++ b/designs/breanna/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step3": "node build.js" diff --git a/designs/brian/README.md b/designs/brian/README.md index 0b5bcde859c..115da6cf9a2 100644 --- a/designs/brian/README.md +++ b/designs/brian/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/brian +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/brian/package.json b/designs/brian/package.json index 34a2470492a..92368d2ec98 100644 --- a/designs/brian/package.json +++ b/designs/brian/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step3": "node build.js" diff --git a/designs/bruce/README.md b/designs/bruce/README.md index 202c40647ed..8eb380586d2 100644 --- a/designs/bruce/README.md +++ b/designs/bruce/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/bruce +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/bruce/package.json b/designs/bruce/package.json index dac4b32b8c3..d02b0dbd4d1 100644 --- a/designs/bruce/package.json +++ b/designs/bruce/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/carlita/README.md b/designs/carlita/README.md index 76e67fff4eb..160c723c0a8 100644 --- a/designs/carlita/README.md +++ b/designs/carlita/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/carlita +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/carlita/package.json b/designs/carlita/package.json index 8492a6746c3..070c546aa7f 100644 --- a/designs/carlita/package.json +++ b/designs/carlita/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/carlton/README.md b/designs/carlton/README.md index 1968924d796..5ca16ab84f8 100644 --- a/designs/carlton/README.md +++ b/designs/carlton/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/carlton +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/carlton/package.json b/designs/carlton/package.json index bf4b6c4925b..9ebe0a55d13 100644 --- a/designs/carlton/package.json +++ b/designs/carlton/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step4": "node build.js" diff --git a/designs/cathrin/README.md b/designs/cathrin/README.md index f957e5eb415..3f0d4acdef0 100644 --- a/designs/cathrin/README.md +++ b/designs/cathrin/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/cathrin +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/cathrin/package.json b/designs/cathrin/package.json index cf57a5eb368..df9c15572db 100644 --- a/designs/cathrin/package.json +++ b/designs/cathrin/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/charlie/README.md b/designs/charlie/README.md index bd4e13012ab..f7d7f553d62 100644 --- a/designs/charlie/README.md +++ b/designs/charlie/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/charlie +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/charlie/package.json b/designs/charlie/package.json index 758ed3e6bae..3ce2ad8183c 100644 --- a/designs/charlie/package.json +++ b/designs/charlie/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/cornelius/README.md b/designs/cornelius/README.md index 60ca0fe3b8a..968d6483dc6 100644 --- a/designs/cornelius/README.md +++ b/designs/cornelius/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/cornelius +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/cornelius/package.json b/designs/cornelius/package.json index f9e85a22667..d5cf3c4c9cf 100644 --- a/designs/cornelius/package.json +++ b/designs/cornelius/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/diana/README.md b/designs/diana/README.md index c9903d39955..18346095938 100644 --- a/designs/diana/README.md +++ b/designs/diana/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/diana +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/diana/package.json b/designs/diana/package.json index c9d191682ce..f18c1d19f5c 100644 --- a/designs/diana/package.json +++ b/designs/diana/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/examples/README.md b/designs/examples/README.md index aea28f3dc8b..953edbe8b5f 100644 --- a/designs/examples/README.md +++ b/designs/examples/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/examples +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/examples/package.json b/designs/examples/package.json index ac7b3acfad3..e7117bb4419 100644 --- a/designs/examples/package.json +++ b/designs/examples/package.json @@ -29,6 +29,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/florence/README.md b/designs/florence/README.md index 471a341ae3e..a719dcfe27c 100644 --- a/designs/florence/README.md +++ b/designs/florence/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/florence +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/florence/package.json b/designs/florence/package.json index 46a48de29aa..faddc03e1c6 100644 --- a/designs/florence/package.json +++ b/designs/florence/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/florent/README.md b/designs/florent/README.md index 09136605fa9..84cf094700f 100644 --- a/designs/florent/README.md +++ b/designs/florent/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/florent +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/florent/package.json b/designs/florent/package.json index b2c410c965a..eba7a90c650 100644 --- a/designs/florent/package.json +++ b/designs/florent/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/hi/README.md b/designs/hi/README.md index 474dd0db280..844cd17a1f3 100644 --- a/designs/hi/README.md +++ b/designs/hi/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/hi +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/hi/package.json b/designs/hi/package.json index dffd5e85f3e..87730034bee 100644 --- a/designs/hi/package.json +++ b/designs/hi/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/holmes/README.md b/designs/holmes/README.md index dc296b62d37..29de7c59d44 100644 --- a/designs/holmes/README.md +++ b/designs/holmes/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/holmes +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/holmes/package.json b/designs/holmes/package.json index 74ae0ff3019..bf75f2809d2 100644 --- a/designs/holmes/package.json +++ b/designs/holmes/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/hortensia/README.md b/designs/hortensia/README.md index b90622e0278..ba6a2d497b7 100644 --- a/designs/hortensia/README.md +++ b/designs/hortensia/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/hortensia +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/hortensia/package.json b/designs/hortensia/package.json index c5bacf5d240..ad23de77185 100644 --- a/designs/hortensia/package.json +++ b/designs/hortensia/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/huey/README.md b/designs/huey/README.md index 41e9683c8c4..23c9b7cec60 100644 --- a/designs/huey/README.md +++ b/designs/huey/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/huey +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/huey/package.json b/designs/huey/package.json index 78c32bbb9c4..ee84a41342c 100644 --- a/designs/huey/package.json +++ b/designs/huey/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/hugo/README.md b/designs/hugo/README.md index da5db193b0d..1c0a405932a 100644 --- a/designs/hugo/README.md +++ b/designs/hugo/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/hugo +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/hugo/package.json b/designs/hugo/package.json index fa70c28ee36..d830cb63581 100644 --- a/designs/hugo/package.json +++ b/designs/hugo/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/jaeger/README.md b/designs/jaeger/README.md index 9efab90333a..20d08cca24c 100644 --- a/designs/jaeger/README.md +++ b/designs/jaeger/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/jaeger +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/jaeger/package.json b/designs/jaeger/package.json index 538f4690f5a..b6743b762a4 100644 --- a/designs/jaeger/package.json +++ b/designs/jaeger/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/legend/README.md b/designs/legend/README.md index 75d48c4754c..4285c3ecd3a 100644 --- a/designs/legend/README.md +++ b/designs/legend/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/legend +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/legend/package.json b/designs/legend/package.json index a4e1400d82e..9426efe687a 100644 --- a/designs/legend/package.json +++ b/designs/legend/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/lucy/README.md b/designs/lucy/README.md index e1566132602..db695690a23 100644 --- a/designs/lucy/README.md +++ b/designs/lucy/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/lucy +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/lucy/package.json b/designs/lucy/package.json index 6b7e41339f5..96ef6dadb5c 100644 --- a/designs/lucy/package.json +++ b/designs/lucy/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/lunetius/README.md b/designs/lunetius/README.md index 0b2bbef984b..6256f2f5db0 100644 --- a/designs/lunetius/README.md +++ b/designs/lunetius/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/lunetius +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/lunetius/package.json b/designs/lunetius/package.json index 9f86c4f56dd..925d3f1a2a9 100644 --- a/designs/lunetius/package.json +++ b/designs/lunetius/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/paco/README.md b/designs/paco/README.md index d350b809149..44d815f569e 100644 --- a/designs/paco/README.md +++ b/designs/paco/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/paco +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/paco/package.json b/designs/paco/package.json index b3f9bd650ac..e0a32df7a7a 100644 --- a/designs/paco/package.json +++ b/designs/paco/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/penelope/README.md b/designs/penelope/README.md index 61cf773bec4..c5922662679 100644 --- a/designs/penelope/README.md +++ b/designs/penelope/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/penelope +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/penelope/package.json b/designs/penelope/package.json index cc297f23ca8..63b27f48f81 100644 --- a/designs/penelope/package.json +++ b/designs/penelope/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/plugintest/README.md b/designs/plugintest/README.md index 9352ea5475b..29b97aa25da 100644 --- a/designs/plugintest/README.md +++ b/designs/plugintest/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugintest +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/plugintest/package.json b/designs/plugintest/package.json index a3cd7cac268..a345c72c332 100644 --- a/designs/plugintest/package.json +++ b/designs/plugintest/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/rendertest/README.md b/designs/rendertest/README.md index 5d6a629c683..83d007720b5 100644 --- a/designs/rendertest/README.md +++ b/designs/rendertest/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/rendertest +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/rendertest/package.json b/designs/rendertest/package.json index d6ccbef4153..ed2950b1c0d 100644 --- a/designs/rendertest/package.json +++ b/designs/rendertest/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/sandy/README.md b/designs/sandy/README.md index 5695244d7df..5cc16ba33ba 100644 --- a/designs/sandy/README.md +++ b/designs/sandy/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/sandy +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/sandy/package.json b/designs/sandy/package.json index 30cab9c90f9..6bf32aee8ba 100644 --- a/designs/sandy/package.json +++ b/designs/sandy/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/shin/README.md b/designs/shin/README.md index 68c8f566340..5068115a1d8 100644 --- a/designs/shin/README.md +++ b/designs/shin/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/shin +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/shin/package.json b/designs/shin/package.json index 68e16232f26..435eb17f809 100644 --- a/designs/shin/package.json +++ b/designs/shin/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/simon/README.md b/designs/simon/README.md index 7df9c3ed36f..243c84c62d2 100644 --- a/designs/simon/README.md +++ b/designs/simon/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/simon +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/simon/package.json b/designs/simon/package.json index 3739a8ae5dc..6bf9a0be234 100644 --- a/designs/simon/package.json +++ b/designs/simon/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step4": "node build.js" diff --git a/designs/simone/README.md b/designs/simone/README.md index 7fe820c4788..607767664ca 100644 --- a/designs/simone/README.md +++ b/designs/simone/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/simone +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/simone/package.json b/designs/simone/package.json index 717d1a42814..c471c052028 100644 --- a/designs/simone/package.json +++ b/designs/simone/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/sven/README.md b/designs/sven/README.md index a83841ee5d8..5917138a697 100644 --- a/designs/sven/README.md +++ b/designs/sven/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/sven +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/sven/package.json b/designs/sven/package.json index 1d1f2b13e24..a19afa49bfc 100644 --- a/designs/sven/package.json +++ b/designs/sven/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/tamiko/README.md b/designs/tamiko/README.md index b5d87542055..c73c4eb6ef9 100644 --- a/designs/tamiko/README.md +++ b/designs/tamiko/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/tamiko +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/tamiko/package.json b/designs/tamiko/package.json index 2fd65f94c7b..4ba528ed5dd 100644 --- a/designs/tamiko/package.json +++ b/designs/tamiko/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/teagan/README.md b/designs/teagan/README.md index 12037e1fd49..f8d98945262 100644 --- a/designs/teagan/README.md +++ b/designs/teagan/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/teagan +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/teagan/package.json b/designs/teagan/package.json index 9b549375e29..f2d31eac3b1 100644 --- a/designs/teagan/package.json +++ b/designs/teagan/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/theo/README.md b/designs/theo/README.md index f868201c192..8045c8ed285 100644 --- a/designs/theo/README.md +++ b/designs/theo/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/theo +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/theo/package.json b/designs/theo/package.json index 8953c67573f..6322eebf7a1 100644 --- a/designs/theo/package.json +++ b/designs/theo/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/tiberius/README.md b/designs/tiberius/README.md index 89a92dbf49b..a1b5bbd3039 100644 --- a/designs/tiberius/README.md +++ b/designs/tiberius/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/tiberius +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/tiberius/package.json b/designs/tiberius/package.json index a0f846bed8f..f3c86352cf6 100644 --- a/designs/tiberius/package.json +++ b/designs/tiberius/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/titan/README.md b/designs/titan/README.md index 615511457d7..5af860c3d73 100644 --- a/designs/titan/README.md +++ b/designs/titan/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/titan +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/titan/package.json b/designs/titan/package.json index 3277e269cd3..ba61db693c9 100644 --- a/designs/titan/package.json +++ b/designs/titan/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step3": "node build.js" diff --git a/designs/trayvon/README.md b/designs/trayvon/README.md index d3fc5628b7d..467946e0c4c 100644 --- a/designs/trayvon/README.md +++ b/designs/trayvon/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/trayvon +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/trayvon/package.json b/designs/trayvon/package.json index 4fa18d918d6..7bc518ba6d5 100644 --- a/designs/trayvon/package.json +++ b/designs/trayvon/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/tutorial/README.md b/designs/tutorial/README.md index c1af74e598d..ad69028b5f5 100644 --- a/designs/tutorial/README.md +++ b/designs/tutorial/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/tutorial +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/tutorial/package.json b/designs/tutorial/package.json index 5b45ba59abc..88f54547968 100644 --- a/designs/tutorial/package.json +++ b/designs/tutorial/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/unice/README.md b/designs/unice/README.md index a822a4af17b..3533d3e4d2f 100644 --- a/designs/unice/README.md +++ b/designs/unice/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/unice +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/unice/package.json b/designs/unice/package.json index b93d7fa8669..5fb42e1d685 100644 --- a/designs/unice/package.json +++ b/designs/unice/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/ursula/README.md b/designs/ursula/README.md index d710d438a81..8e36f82e0b4 100644 --- a/designs/ursula/README.md +++ b/designs/ursula/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/ursula +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/ursula/package.json b/designs/ursula/package.json index 5886a257aee..a148677e873 100644 --- a/designs/ursula/package.json +++ b/designs/ursula/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step4": "node build.js" diff --git a/designs/wahid/README.md b/designs/wahid/README.md index bcfdcf8c45a..e00ed7801b1 100644 --- a/designs/wahid/README.md +++ b/designs/wahid/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/wahid +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/wahid/package.json b/designs/wahid/package.json index 681d729562c..f8afb3518f3 100644 --- a/designs/wahid/package.json +++ b/designs/wahid/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/walburga/README.md b/designs/walburga/README.md index e2fe482f26e..e0541c1e962 100644 --- a/designs/walburga/README.md +++ b/designs/walburga/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/walburga +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/walburga/package.json b/designs/walburga/package.json index 3c2466ee199..63d199813ca 100644 --- a/designs/walburga/package.json +++ b/designs/walburga/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/waralee/README.md b/designs/waralee/README.md index 8c8f7efcff2..362ab339cc2 100644 --- a/designs/waralee/README.md +++ b/designs/waralee/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/waralee +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/waralee/package.json b/designs/waralee/package.json index cccf38d6fd4..7807afd52c4 100644 --- a/designs/waralee/package.json +++ b/designs/waralee/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/designs/yuri/README.md b/designs/yuri/README.md index 9d78082041c..7267f4bc684 100644 --- a/designs/yuri/README.md +++ b/designs/yuri/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/yuri +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/designs/yuri/package.json b/designs/yuri/package.json index 007636d9208..887f2bc19f7 100644 --- a/designs/yuri/package.json +++ b/designs/yuri/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'config/*.js'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step5": "node build.js" diff --git a/package.json b/package.json index 614d1e1518e..124f71f8626 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "homepage": "https://freesewing.org/", "license": "MIT", "scripts": { - "new": "node --experimental-json-modules scripts/add-software.mjs", + "new": "node --experimental-json-modules --no-warnings scripts/add-software.mjs", + "?": "node scripts/help.mjs", + "tips": "node scripts/help.mjs", "lab": "cd sites/lab && yarn start", "kickstart": "npx lerna bootstrap && yarn buildall", "clean": "rimraf dist", diff --git a/packages/components/README.md b/packages/components/README.md index 2736bb1d218..99ab1e07e2b 100644 --- a/packages/components/README.md +++ b/packages/components/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/components +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/components/package.json b/packages/components/package.json index a21e6c42671..43f83256274 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -26,6 +26,7 @@ "test": "echo \"components: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "storybook": "start-storybook -p 6663", "cibuild_step6": "node build.js" }, diff --git a/packages/config-helpers/README.md b/packages/config-helpers/README.md index bdfde28c260..b6c2fc0b977 100644 --- a/packages/config-helpers/README.md +++ b/packages/config-helpers/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/config-helpers +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/config-helpers/package.json b/packages/config-helpers/package.json index e9dba1ca3b7..ac6024fb07c 100644 --- a/packages/config-helpers/package.json +++ b/packages/config-helpers/package.json @@ -27,6 +27,7 @@ "test": "echo \"config-helpers: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "cibuild_step0": "node build.js" }, "peerDependencies": {}, diff --git a/packages/core/README.md b/packages/core/README.md index 276e30028eb..de0f81c1fab 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/core +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/core/package.json b/packages/core/package.json index 0dd90931180..b6e823623fd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -35,6 +35,7 @@ "test": "BABEL_ENV=production nyc -x node_modules -x tests/fixtures -x bin-pack npx mocha tests/*.test.js", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "coverage": "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov", "report": "BABEL_ENV=production nyc report --reporter=html", "testci": "BABEL_ENV=production npx mocha tests/*.test.js --require @babel/register --reporter ../../tests/reporters/terse.js", diff --git a/packages/create-freesewing-pattern/README.md b/packages/create-freesewing-pattern/README.md index 4c94d8a6e8a..cba1c86f3c7 100644 --- a/packages/create-freesewing-pattern/README.md +++ b/packages/create-freesewing-pattern/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: create-freesewing-pattern +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/create-freesewing-pattern/package.json b/packages/create-freesewing-pattern/package.json index ded4413d3cb..1d0710c1eeb 100644 --- a/packages/create-freesewing-pattern/package.json +++ b/packages/create-freesewing-pattern/package.json @@ -22,7 +22,8 @@ "main": "index.js", "scripts": { "symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -", - "lab": "cd ../../sites/lab && yarn start" + "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs" }, "peerDependencies": {}, "dependencies": { diff --git a/packages/css-theme/README.md b/packages/css-theme/README.md index 8247bef9e12..977e48f8b5a 100644 --- a/packages/css-theme/README.md +++ b/packages/css-theme/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/css-theme +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/css-theme/package.json b/packages/css-theme/package.json index 42f3cd503a4..b9f756f9eb6 100644 --- a/packages/css-theme/package.json +++ b/packages/css-theme/package.json @@ -29,6 +29,7 @@ "test": "echo \"css-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "watch": "npx node-sass --watch --output-style compressed src/theme.scss dist/theme.css", "cibuild_step6": "npx node-sass --output-style compressed src/theme.scss dist/theme.css" }, diff --git a/packages/gatsby-remark-jargon/README.md b/packages/gatsby-remark-jargon/README.md index da1c9bfb0ee..6cbf4838892 100644 --- a/packages/gatsby-remark-jargon/README.md +++ b/packages/gatsby-remark-jargon/README.md @@ -189,6 +189,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: gatsby-remark-jargon +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/gatsby-remark-jargon/package.json b/packages/gatsby-remark-jargon/package.json index c7f0cf9285a..906ce2c2d96 100644 --- a/packages/gatsby-remark-jargon/package.json +++ b/packages/gatsby-remark-jargon/package.json @@ -30,6 +30,7 @@ "test": "echo \"gatsby-remark-jargon: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "cibuild_step6": "node build.js" }, "peerDependencies": {}, diff --git a/packages/i18n/README.md b/packages/i18n/README.md index 90f20c4a10f..8c66591fc9d 100644 --- a/packages/i18n/README.md +++ b/packages/i18n/README.md @@ -111,6 +111,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/i18n +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 1855191c702..9ec3319c6fd 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -30,6 +30,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prebuild": "node src/prebuild.mjs", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step6": "node build.js" diff --git a/packages/models/README.md b/packages/models/README.md index f0ef8d52a82..55b704ce8d3 100644 --- a/packages/models/README.md +++ b/packages/models/README.md @@ -102,6 +102,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/models +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/models/package.json b/packages/models/package.json index 862aa67f362..6e1a3cd582e 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -31,6 +31,7 @@ "test": "echo \"models: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "cibuild_step6": "node build.js" }, "peerDependencies": { diff --git a/packages/mui-theme/README.md b/packages/mui-theme/README.md index 4107a43c88a..a02380d1326 100644 --- a/packages/mui-theme/README.md +++ b/packages/mui-theme/README.md @@ -92,6 +92,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/mui-theme +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/mui-theme/package.json b/packages/mui-theme/package.json index 4123ee3a14c..6077f18e7c9 100644 --- a/packages/mui-theme/package.json +++ b/packages/mui-theme/package.json @@ -29,6 +29,7 @@ "test": "echo \"mui-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "cibuild_step6": "node build.js" }, "peerDependencies": { diff --git a/packages/pattern-info/README.md b/packages/pattern-info/README.md index 4f425e25823..3fd192ac00c 100644 --- a/packages/pattern-info/README.md +++ b/packages/pattern-info/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/pattern-info +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/pattern-info/package.json b/packages/pattern-info/package.json index 20ed81dfee7..d93d1d8b554 100644 --- a/packages/pattern-info/package.json +++ b/packages/pattern-info/package.json @@ -27,6 +27,7 @@ "test": "echo \"pattern-info: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prebuild": "node src/prebuild.js", "cibuild_step6": "node src/prebuild.js && node build.js" }, diff --git a/packages/prettier-config/README.md b/packages/prettier-config/README.md index ec555fc1155..b78632845ed 100644 --- a/packages/prettier-config/README.md +++ b/packages/prettier-config/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/prettier-config +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/remark-jargon/README.md b/packages/remark-jargon/README.md index ca7303e3461..9f5941a6b53 100644 --- a/packages/remark-jargon/README.md +++ b/packages/remark-jargon/README.md @@ -185,6 +185,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: remark-jargon +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/remark-jargon/package.json b/packages/remark-jargon/package.json index 82343b7c079..900d9ae6514 100644 --- a/packages/remark-jargon/package.json +++ b/packages/remark-jargon/package.json @@ -27,6 +27,7 @@ "test": "echo \"remark-jargon: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "cibuild_step0": "node build.js" }, "peerDependencies": { diff --git a/packages/utils/README.md b/packages/utils/README.md index c5e27232fc7..a43e3c3b559 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/utils +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/packages/utils/package.json b/packages/utils/package.json index d6e7505361a..ee52c8cceeb 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -26,6 +26,7 @@ "test": "echo \"utils: No tests configured. Perhaps you'd like to do this?\" && exit 0", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "cibuild_step6": "node build.js" }, "peerDependencies": { diff --git a/plugins/plugin-banner/README.md b/plugins/plugin-banner/README.md index 4bba1cceaf0..a5c1154177b 100644 --- a/plugins/plugin-banner/README.md +++ b/plugins/plugin-banner/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-banner +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-banner/package.json b/plugins/plugin-banner/package.json index f634ed0339c..eae116a5eab 100644 --- a/plugins/plugin-banner/package.json +++ b/plugins/plugin-banner/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-bartack/README.md b/plugins/plugin-bartack/README.md index af034e1db66..2a47536d952 100644 --- a/plugins/plugin-bartack/README.md +++ b/plugins/plugin-bartack/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-bartack +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-bartack/package.json b/plugins/plugin-bartack/package.json index b0dbbc7fdd6..19fc2f812b7 100644 --- a/plugins/plugin-bartack/package.json +++ b/plugins/plugin-bartack/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-bundle/README.md b/plugins/plugin-bundle/README.md index fc862ca1584..4157cd5d42c 100644 --- a/plugins/plugin-bundle/README.md +++ b/plugins/plugin-bundle/README.md @@ -88,6 +88,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-bundle +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-bundle/package.json b/plugins/plugin-bundle/package.json index dbebf73eea7..040ca971f00 100644 --- a/plugins/plugin-bundle/package.json +++ b/plugins/plugin-bundle/package.json @@ -35,6 +35,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step2": "node build.js" diff --git a/plugins/plugin-bust/README.md b/plugins/plugin-bust/README.md index 1c5d69b1c5d..8c99b70b23f 100644 --- a/plugins/plugin-bust/README.md +++ b/plugins/plugin-bust/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-bust +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-bust/package.json b/plugins/plugin-bust/package.json index c5ca96a54e9..fd7362ab225 100644 --- a/plugins/plugin-bust/package.json +++ b/plugins/plugin-bust/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-buttons/README.md b/plugins/plugin-buttons/README.md index a023a2a9043..f62baa7f119 100644 --- a/plugins/plugin-buttons/README.md +++ b/plugins/plugin-buttons/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-buttons +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-buttons/package.json b/plugins/plugin-buttons/package.json index 0fca89927f1..9bae385aaf2 100644 --- a/plugins/plugin-buttons/package.json +++ b/plugins/plugin-buttons/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-cutonfold/README.md b/plugins/plugin-cutonfold/README.md index 724ca63a373..df953507ea1 100644 --- a/plugins/plugin-cutonfold/README.md +++ b/plugins/plugin-cutonfold/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-cutonfold +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-cutonfold/package.json b/plugins/plugin-cutonfold/package.json index 007c1e2cd05..6778f443444 100644 --- a/plugins/plugin-cutonfold/package.json +++ b/plugins/plugin-cutonfold/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-dimension/README.md b/plugins/plugin-dimension/README.md index b310ac91027..1ad8b51cc63 100644 --- a/plugins/plugin-dimension/README.md +++ b/plugins/plugin-dimension/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-dimension +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-dimension/package.json b/plugins/plugin-dimension/package.json index 1245fdd475e..46adf8dedde 100644 --- a/plugins/plugin-dimension/package.json +++ b/plugins/plugin-dimension/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-export-dxf/README.md b/plugins/plugin-export-dxf/README.md index 4d2e6b2d4ec..642efa39ce9 100644 --- a/plugins/plugin-export-dxf/README.md +++ b/plugins/plugin-export-dxf/README.md @@ -141,6 +141,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-export-dxf +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-export-dxf/package.json b/plugins/plugin-export-dxf/package.json index 7184462a186..63e1feda9b6 100644 --- a/plugins/plugin-export-dxf/package.json +++ b/plugins/plugin-export-dxf/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-flip/README.md b/plugins/plugin-flip/README.md index 330fe130858..e963e2d676c 100644 --- a/plugins/plugin-flip/README.md +++ b/plugins/plugin-flip/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-flip +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-flip/package.json b/plugins/plugin-flip/package.json index 9fdc59eed72..9dbada28ff8 100644 --- a/plugins/plugin-flip/package.json +++ b/plugins/plugin-flip/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-gore/README.md b/plugins/plugin-gore/README.md index 3a3d960e1e0..72763a88628 100644 --- a/plugins/plugin-gore/README.md +++ b/plugins/plugin-gore/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-gore +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-gore/package.json b/plugins/plugin-gore/package.json index bb1de7ec64c..9e383a9624c 100644 --- a/plugins/plugin-gore/package.json +++ b/plugins/plugin-gore/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-grainline/README.md b/plugins/plugin-grainline/README.md index b3076ea1336..ffce807736e 100644 --- a/plugins/plugin-grainline/README.md +++ b/plugins/plugin-grainline/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-grainline +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-grainline/package.json b/plugins/plugin-grainline/package.json index 09978a75bc1..7413bd877f3 100644 --- a/plugins/plugin-grainline/package.json +++ b/plugins/plugin-grainline/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-i18n/README.md b/plugins/plugin-i18n/README.md index eebc40a2587..7cdbd173e8a 100644 --- a/plugins/plugin-i18n/README.md +++ b/plugins/plugin-i18n/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-i18n +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-i18n/package.json b/plugins/plugin-i18n/package.json index 31c101fb016..f0c327891a0 100644 --- a/plugins/plugin-i18n/package.json +++ b/plugins/plugin-i18n/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-logo/README.md b/plugins/plugin-logo/README.md index 3375f50c551..e2d3778a973 100644 --- a/plugins/plugin-logo/README.md +++ b/plugins/plugin-logo/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-logo +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-logo/package.json b/plugins/plugin-logo/package.json index 78cbb4f8e47..55a85d7e8a1 100644 --- a/plugins/plugin-logo/package.json +++ b/plugins/plugin-logo/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-measurements/README.md b/plugins/plugin-measurements/README.md index a1435d6c05d..17c02dda357 100644 --- a/plugins/plugin-measurements/README.md +++ b/plugins/plugin-measurements/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-measurements +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-measurements/package.json b/plugins/plugin-measurements/package.json index 146ee139cc3..e61375135f2 100644 --- a/plugins/plugin-measurements/package.json +++ b/plugins/plugin-measurements/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-mirror/README.md b/plugins/plugin-mirror/README.md index 18e14bf9f86..e333e373b8c 100644 --- a/plugins/plugin-mirror/README.md +++ b/plugins/plugin-mirror/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-mirror +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-mirror/package.json b/plugins/plugin-mirror/package.json index 48ff0baa59c..5a83019e22a 100644 --- a/plugins/plugin-mirror/package.json +++ b/plugins/plugin-mirror/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-notches/README.md b/plugins/plugin-notches/README.md index 7e82cff6bf3..3d75221fef1 100644 --- a/plugins/plugin-notches/README.md +++ b/plugins/plugin-notches/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-notches +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-notches/package.json b/plugins/plugin-notches/package.json index d6d19e01f98..7540b39d334 100644 --- a/plugins/plugin-notches/package.json +++ b/plugins/plugin-notches/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-round/README.md b/plugins/plugin-round/README.md index 851a23ca425..8f5963dfd1a 100644 --- a/plugins/plugin-round/README.md +++ b/plugins/plugin-round/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-round +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-round/package.json b/plugins/plugin-round/package.json index 64374df0002..bf4eaaed883 100644 --- a/plugins/plugin-round/package.json +++ b/plugins/plugin-round/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-scalebox/README.md b/plugins/plugin-scalebox/README.md index 0e564e27403..b20763b7c97 100644 --- a/plugins/plugin-scalebox/README.md +++ b/plugins/plugin-scalebox/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-scalebox +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-scalebox/package.json b/plugins/plugin-scalebox/package.json index 4c3555b7079..54222699694 100644 --- a/plugins/plugin-scalebox/package.json +++ b/plugins/plugin-scalebox/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-sprinkle/README.md b/plugins/plugin-sprinkle/README.md index af8d0dffd0b..b650c29fe6b 100644 --- a/plugins/plugin-sprinkle/README.md +++ b/plugins/plugin-sprinkle/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-sprinkle +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-sprinkle/package.json b/plugins/plugin-sprinkle/package.json index 7cd130a49ab..5888dc2aee0 100644 --- a/plugins/plugin-sprinkle/package.json +++ b/plugins/plugin-sprinkle/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-svgattr/README.md b/plugins/plugin-svgattr/README.md index 9377e872365..0d79e248e80 100644 --- a/plugins/plugin-svgattr/README.md +++ b/plugins/plugin-svgattr/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-svgattr +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-svgattr/package.json b/plugins/plugin-svgattr/package.json index 4ab9da68b79..65a4db0c324 100644 --- a/plugins/plugin-svgattr/package.json +++ b/plugins/plugin-svgattr/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-theme/README.md b/plugins/plugin-theme/README.md index 5d9a1384100..fd4140437bc 100644 --- a/plugins/plugin-theme/README.md +++ b/plugins/plugin-theme/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-theme +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-theme/package.json b/plugins/plugin-theme/package.json index 071c6bf2106..cda409a766d 100644 --- a/plugins/plugin-theme/package.json +++ b/plugins/plugin-theme/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-title/README.md b/plugins/plugin-title/README.md index 4fd769c8cf9..e0a5c2cf912 100644 --- a/plugins/plugin-title/README.md +++ b/plugins/plugin-title/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-title +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-title/package.json b/plugins/plugin-title/package.json index 771e5b7ab07..c8f0c5b2ebf 100644 --- a/plugins/plugin-title/package.json +++ b/plugins/plugin-title/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-validate/README.md b/plugins/plugin-validate/README.md index 56bf2e42a27..c68845cfa51 100644 --- a/plugins/plugin-validate/README.md +++ b/plugins/plugin-validate/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-validate +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-validate/package.json b/plugins/plugin-validate/package.json index 64d4c32d12e..294d0c38845 100644 --- a/plugins/plugin-validate/package.json +++ b/plugins/plugin-validate/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/plugins/plugin-versionfree-svg/README.md b/plugins/plugin-versionfree-svg/README.md index 5d9c4d26a7c..28266d144a0 100644 --- a/plugins/plugin-versionfree-svg/README.md +++ b/plugins/plugin-versionfree-svg/README.md @@ -59,6 +59,12 @@ holding [all our NPM packages](https://freesewing.dev/reference/packages/). This folder holds: @freesewing/plugin-versionfree-svg +If you're not entirely sure what to do or how to start, type this command: + +``` +npm run tips +``` + ## About FreeSewing ๐Ÿ’€ Where the world of makers and developers collide, that's where you'll find FreeSewing. diff --git a/plugins/plugin-versionfree-svg/package.json b/plugins/plugin-versionfree-svg/package.json index 3d022eb77d9..7748f6603b5 100644 --- a/plugins/plugin-versionfree-svg/package.json +++ b/plugins/plugin-versionfree-svg/package.json @@ -34,6 +34,7 @@ "test": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register", "vbuild": "VERBOSE=1 node build.js", "lab": "cd ../../sites/lab && yarn start", + "tips": "node ../../scripts/help.mjs", "prettier": "npx prettier --write 'src/*.js' 'tests/*.mjs'", "testci": "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js", "cibuild_step1": "node build.js" diff --git a/scripts/add-software.mjs b/scripts/add-software.mjs index 754117905f7..fd9881fa1d9 100644 --- a/scripts/add-software.mjs +++ b/scripts/add-software.mjs @@ -1,9 +1,254 @@ -import { Command } from 'commander' +import fs from 'fs' +import path from 'path' +import prompts from 'prompts' import chalk from 'chalk' +import { banner } from './banner.mjs' +import mustache from 'mustache' +import { execSync } from 'child_process' // Software import designs from '../config/software/designs.json' import packages from '../config/software//packages.json' import plugins from '../config/software//plugins.json' import sites from '../config/software//sites.json' -console.log(Command) +const type = process.argv[2] + +// Add new design +if (type === 'design') { + console.clear() + console.log(banner) + addDesign() +} + +// Add new plugin +else if (type === 'plugin') { + console.clear() + console.log(banner) + addPlugin() +} + +else console.log(` + Usage: + + ${chalk.bold.blue('yarn new design')} ๐Ÿ‘‰ Adds a new design + ${chalk.bold.blue('yarn new plugin')} ๐Ÿ‘‰ Adds a new plugin + ${chalk.bold.blue('yarn new')} ${chalk.yellow('[anything else]')} ๐Ÿ‘‰ Shows this help +`) + + +async function addDesign() { + console.log(` + + ${chalk.bold.yellow('๐Ÿ‘• Add a new design')} + ${chalk.gray('โ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰ก')} + + We're going to add a new design to this repository. That's awesome ๐ŸŽ‰ + Let's start by picking the category for this design ๐Ÿท๏ธ +`) + const { type } = await prompts({ + type: 'select', + name: 'type', + message: 'In what category should we add the design?', + choices: [ + { title: 'Accessories', value: 'accessories', description: 'Hats, bags, plushies, and so on' }, + { title: 'Blocks', value: 'blocks', description: 'Blocks/Slopers to base other designs on' }, + { title: 'Garments', value: 'garments', description: 'For clothes. The most common category' }, + { title: 'Utilities', value: 'utilities', description: 'For utility designs such as our rendertest or legend' }, + ], + initial: 2, + }) + + console.log(` + Cool cool cool. + Now a name. Naming things is hard ๐Ÿ˜ฌ + + We'd appreciate if you pick: + + - a firstname like ${chalk.green('alex')}, ${chalk.green('jordan')}, ${chalk.green('ezra')}, or ${chalk.green('logan')} + - that is an aliteration with the kind of design, like ${chalk.green('wahid')} for a ${chalk.green('w')}aistcoat + + Bonus points for picking a name that embraces diversity ๐ŸŒˆ โœŠ + `) + + const { name } = await prompts({ + type: 'text', + name: 'name', + message: 'What name would you like the design to have? ([a-z] only)', + validate: validateName, + }) + + if (name && type) { + console.log("\n"+` Alright, let's add ${chalk.green(name)} under ${chalk.green(type)} ๐Ÿช„`) + createDesign(name, type) + execSync("npm run reconfigure") + console.log(` All done ๐ŸŽ‰`) + + try { + console.log(` + + ${chalk.bold.yellow('โœจ Summary')} + ${chalk.gray('โ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰ก')} + + ๐Ÿ‘‰ We've created your design skeleton at ${chalk.green('designs/'+name)} + ๐Ÿ‘‰ We've configured the packages via the ${chalk.green('pacakge.json')} file + ๐Ÿ‘‰ We've added ${chalk.green('designs/'+name)} to the lab + + + ${chalk.bold.yellow('โœ๏ธ Make it your own')} + ${chalk.gray('โ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰ก')} + + Hhere's a few other things you can configure: + + ๐Ÿ‘‰ ${chalk.yellow('Author')}: Credit where credit is due; Add yourself as author in ${chalk.green('config/exceptions.yaml')} + ๐Ÿ‘‰ ${chalk.yellow('Description')}: We used a placeholder description; Update it in ${chalk.green('config/software/designs.json')} + ๐Ÿ‘‰ ${chalk.yellow('Dependencies')}: If you need additional plugins or patterns to extend, update ${chalk.green('config/dependecies.yaml')} + + If you change any of these, run ${chalk.blue('yarn reconfigure')} to update the package(s). + + + ${chalk.bold.yellow('๐Ÿ‘ท Get to work')} + ${chalk.gray('โ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰ก')} + + ๐Ÿ› ๏ธ You can now start the development environment with ${chalk.blue('yarn lab')} + ๐Ÿ“– Documentation is available at ${chalk.green('https://freesewing.dev/')} + ๐Ÿค“ Happy hacking + + `) + } catch(err) { + console.log(err) + } + } +} + +async function addPlugin() { + console.log(` + + ${chalk.bold.yellow('๐Ÿ™ˆ Oh no; You called our bluf!')} + ${chalk.gray('โ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰ก')} + + Adding plugins is not (yet) implemented ๐Ÿ˜ฌ + + Sorry ๐Ÿคฅ + +`) +} + + +function validateName(name) { + if ([ + ...Object.keys(designs.accessories), + ...Object.keys(designs.blocks), + ...Object.keys(designs.garments), + ...Object.keys(designs.utilities) + ].indexOf(name) !== -1) return `Sorry but ${name} is already taken so you'll need to pick something else` + + if (/^([a-z]+)$/.test(name)) return true + else return ' ๐Ÿ™ˆ Please use only [a-z], no spaces, no capitals, no nothing ๐Ÿคท' +} + +function createDesign(name, type) { + const template = ['config', 'templates', 'design'] + const design = ['designs', name] + const description = 'FIXME: A FreeSewing pattern that needs a description' + + // Add to designs config file + designs[type][name] = description + write( + ['config', 'software', 'designs.json'], + JSON.stringify(orderDesigns(designs), null, 2) + ) + + // Create folders + mkdir([...design, 'src']) + mkdir([...design, 'tests']) + + // Create package.json + templateOut( + [...template, 'package.json'], + [...design, 'package.json'], + { name, description } + ) + + // Create config file + templateOut( + ['config', 'templates', 'design', 'config.js'], + ['designs', name, 'config.js'], + { name, description } + ) + + // Create tests file + cp( + [...template, 'tests', 'shared.test.mjs'], + [...design, 'tests', 'shared.test.mjs'] + ) + + // Copy source + for (const file of ['index.js', 'box.js']) { + cp([...template, 'src', file], [...design, 'src', file]) + } +} + +function templateOut(from, to, data) { + try { + fs.writeFileSync( + path.join(process.cwd(), ...to), + mustache.render( + fs.readFileSync(path.join(process.cwd(), ...from), 'utf-8'), + data + ) + ) + } catch(err) { + console.log(err) + } + + return true +} + +function write(to, data) { + try { + fs.writeFileSync(path.join(process.cwd(), ...to), data) + } catch(err) { + console.log(err) + } + + return true +} + +function mkdir(dir) { + try { + fs.mkdirSync( + path.join(process.cwd(), ...dir), + { recursive: true } + ) + } catch(err) { + console.log(err) + } + + return true +} + +function cp(from, to) { + try { + fs.copyFileSync( + path.join(process.cwd(), ...from), + path.join(process.cwd(), ...to) + ) + } catch(err) { + console.log(err) + } + + return true +} + +function orderDesigns(designs) { + // Ensure designs are listed alphabetically + const newDesigns = {} + for (const type in designs) { + newDesigns[type] = {} + for (const design of Object.keys(designs[type]).sort()) { + newDesigns[type][design] = designs[type][design] + } + } + + return newDesigns +} diff --git a/scripts/banner.mjs b/scripts/banner.mjs new file mode 100644 index 00000000000..5ea41391ef3 --- /dev/null +++ b/scripts/banner.mjs @@ -0,0 +1,9 @@ +import chalk from 'chalk' +export const banner = chalk.magenta.bold(` + ___ ___ _ + | __| _ ___ ___/ __| _____ __ _(_)_ _ __ _ + | _| '_/ -_) -_)__ \\/ -_) V V / | ' \\/ _\` | + |_||_| \\___\\___|___/\\___|\\_/\\_/|_|_||_\\__, | + Come for the sewing patterns |___/ + Stay for the community`) + diff --git a/scripts/help.mjs b/scripts/help.mjs index 0fe6ec7a639..dee19ae0564 100644 --- a/scripts/help.mjs +++ b/scripts/help.mjs @@ -1,12 +1,8 @@ import chalk from 'chalk' +import { banner } from './banner.mjs' + console.clear() -console.log(chalk.magenta.bold(` - ___ ___ _ - | __| _ ___ ___/ __| _____ __ _(_)_ _ __ _ - | _| '_/ -_) -_)__ \\/ -_) V V / | ' \\/ _\` | - |_||_| \\___\\___|___/\\___|\\_/\\_/|_|_||_\\__, | - Come for the sewing patterns |___/ - Stay for the community`)) +console.log(banner) console.log(` ${chalk.bold.yellow('๐Ÿคจ Help with our monorepo')} @@ -15,10 +11,12 @@ console.log(` Welcome to our git repository ๐Ÿ˜€ These are the most relevant folders: - ๐Ÿ‘• ${chalk.blue('designs/')} holds code for our designs - ๐Ÿ”Œ ${chalk.blue('plugins/')} holds code for our plugins - ๐Ÿ“ฆ ${chalk.blue('packages/')} holds code for other NPM packages - ๐Ÿ”— ${chalk.blue('sites/')} holds code for our various websites and APIs + ๐Ÿ‘• ${chalk.green('designs/')} holds code for our designs + ๐Ÿ”Œ ${chalk.green('plugins/')} holds code for our plugins + ๐Ÿ“ฆ ${chalk.green('packages/')} holds code for other NPM packages + ๐Ÿ”— ${chalk.green('sites/')} holds code for our various websites and APIs + + You can show this help at any moment by running: ${chalk.blue('yarn helpme')} ${chalk.bold.yellow('๐Ÿš€ Getting started')}