Merge branch 'develop' into i18n
This commit is contained in:
commit
879e41b038
22 changed files with 819 additions and 174 deletions
|
@ -22,6 +22,8 @@ create-freesewing-pattern:
|
|||
modulebuild: '!'
|
||||
cibuild_step1: '!'
|
||||
build: '!'
|
||||
test: 'BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.mjs'
|
||||
testci: 'BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.mjs'
|
||||
css-theme:
|
||||
cibuild_step1: 'npx node-sass --output-style compressed src/theme.scss dist/theme.css'
|
||||
build: 'npx node-sass --output-style compressed src/theme.scss dist/theme.css'
|
||||
|
|
12
markdown/.remarkrc.yaml
Normal file
12
markdown/.remarkrc.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
settings:
|
||||
bullet: "-"
|
||||
plugins:
|
||||
- remark-frontmatter
|
||||
- remark-preset-lint-consistent
|
||||
- remark-preset-lint-recommended
|
||||
- - remark-lint-list-item-indent
|
||||
- "space"
|
||||
- - remark-lint-emphasis-marker
|
||||
- "_"
|
||||
- - remark-lint-strong-marker
|
||||
- "*"
|
|
@ -19,7 +19,6 @@ When naming control points for curves, re-use the name of the point they are att
|
|||
and add `Cp1` to the control point before and `Cp2` to the control point after the point if
|
||||
, once again, you'd follow your path counter-clockwise.
|
||||
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
|
|
|
@ -62,4 +62,3 @@ export default function(part) {
|
|||
return part
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -9,10 +9,9 @@ certain measurements differently.
|
|||
|
||||
<Tip>
|
||||
|
||||
###### See our measurements page for standard measurement names
|
||||
###### See our measurements page for standard measurement names
|
||||
|
||||
The [measurements reference page](/reference/measurements/)
|
||||
contains all our standard measurement names.
|
||||
|
||||
</Tip>
|
||||
|
||||
|
|
|
@ -9,4 +9,3 @@ While your pattern may require some very specific
|
|||
options, there's probably a bunch that are similar to other patterns. Re-use those names.
|
||||
|
||||
As in, `bicepsEase` exists. So don't go creating an `upperArmEase` option.
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@ Instead, embrace percentages as options.
|
|||
To check how well your pattern scales, you can
|
||||
use the *antperson* test by sampling the pattern for 2 models:
|
||||
|
||||
- A model with measurements of avarage person (the person)
|
||||
- A model with measurements 1/10th of an average person (the ant)
|
||||
- A model with measurements of avarage person (the person)
|
||||
- A model with measurements 1/10th of an average person (the ant)
|
||||
|
||||
A well-designed pattern will scale a factor 10 down and hold its shape.
|
||||
If your pattern makes assumptions about size, this test will show that.
|
||||
|
@ -29,4 +29,3 @@ FreeSewing's development environment provides these tests out of the box,
|
|||
so you can see their results at the click of a button.
|
||||
|
||||
</Tip>
|
||||
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
- - -
|
||||
- - -
|
||||
|
||||
|
||||
|
||||
<YouTube id='VcQ69_ANsRA' />
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@ De naad waar de buitenstof van de das aan de voering vastzit zit niet aan de ran
|
|||
|
||||
Bevestig tussenvoering punt (deel 1) aan tussenvoering staart (deel 2) aan elkaar aan de niet-puntige kant. Let op dat de merktekens overeenkomen.
|
||||
|
||||
> **Of niet** <br /> Om eerlijk te zijn stik ik de tussenvoering nooit aan elkaar. Ik laat de twee helften gewoon los.
|
||||
> **Of niet**
|
||||
> Om eerlijk te zijn stik ik de tussenvoering nooit aan elkaar. Ik laat de twee helften gewoon los.
|
||||
>
|
||||
> Op deze manier kan de lengte van je das nooit fout zijn, en kan je de stukken tussenvoering gewoon over elkaar heen schuiven. Daarnaast zorgt het voor minder bulk in het midden en is het minder werk.
|
||||
>
|
||||
|
|
|
@ -4,8 +4,12 @@ title: Knöpfe, Knopflöcher und Druckknöpfe
|
|||
|
||||
Buttons and buttonholes may come in different sizes, but always have the same shape that represents how they look in real life:
|
||||
|
||||
<Legend part="buttons" caption="A button is shown on the left, and a buttonhole on the right" >
|
||||
<Legend part="buttons">
|
||||
A button is shown on the left, and a buttonhole on the right
|
||||
</Legend>
|
||||
|
||||
Snaps haben einen *-Stud* und *Sockel* Teil und sehen auch wie das echte aus:
|
||||
|
||||
<Legend part="snaps" caption="A snap stud is shown on the left, and a snap socket on the right" >
|
||||
<Legend part="snaps">
|
||||
A snap stud is shown on the left, and a snap socket on the right
|
||||
</Legend>
|
||||
|
|
|
@ -4,8 +4,12 @@ title: Botones, agujeros de botones y tapones
|
|||
|
||||
Buttons and buttonholes may come in different sizes, but always have the same shape that represents how they look in real life:
|
||||
|
||||
<Legend part="buttons" caption="A button is shown on the left, and a buttonhole on the right" >
|
||||
<Legend part="buttons">
|
||||
A button is shown on the left, and a buttonhole on the right
|
||||
</Legend>
|
||||
|
||||
Las tomas tienen una parte del socket ** y *del stud* y también se ven como lo real:
|
||||
|
||||
<Legend part="snaps" caption="A snap stud is shown on the left, and a snap socket on the right" >
|
||||
<Legend part="snaps">
|
||||
A snap stud is shown on the left, and a snap socket on the right
|
||||
</Legend>
|
||||
|
|
|
@ -5,6 +5,8 @@ title: Boutons, boutonnières, et boutons pressions
|
|||
Les boutons et boutonnières peuvent avoir des tailles différentes, mais ont toujours la même forme que celle à quoi ils ressemblent dans la vie réelle :
|
||||
|
||||
<Legend part="buttons">
|
||||
A button is shown on the left, and a buttonhole on the right
|
||||
</Legend>
|
||||
|
||||
A button is shown on the left, and a buttonhole on the right
|
||||
|
||||
|
@ -18,3 +20,6 @@ A snap stud is shown on the left, and a snap socket on the right
|
|||
|
||||
</Legend>
|
||||
|
||||
<Legend part="snaps">
|
||||
A snap stud is shown on the left, and a snap socket on the right
|
||||
</Legend>
|
||||
|
|
|
@ -4,8 +4,12 @@ title: Knopen, knoopsgaten en en drukknopen
|
|||
|
||||
Knoppen en knoopsgaten kunnen in verschillende maten komen, maar hebben altijd dezelfde vorm die geeft hoe ze er in het echte leven uitzien:
|
||||
|
||||
<Legend part="buttons" caption="A button is shown on the left, and a buttonhole on the right" >
|
||||
<Legend part="buttons">
|
||||
A button is shown on the left, and a buttonhole on the right
|
||||
</Legend>
|
||||
|
||||
Drukknopen hebben een *bol* en een *hol*deel, en zien er ook uit zoals in het echt:
|
||||
|
||||
<Legend part="snaps" caption="A snap stud is shown on the left, and a snap socket on the right" >
|
||||
<Legend part="snaps">
|
||||
A snap stud is shown on the left, and a snap socket on the right
|
||||
</Legend>
|
||||
|
|
|
@ -6,9 +6,13 @@ Die Designer können, wenn sie dies wünschen, die Standardlinienbreite übersch
|
|||
|
||||
Hier sind die verschiedenen verfügbaren Linienbreiten:
|
||||
|
||||
<Legend part="lineWidths" caption="The different line widths" >
|
||||
<Legend part="lineWidths">
|
||||
The different line widths
|
||||
</Legend>
|
||||
|
||||
Und das sind die verschiedenen Strichstile:
|
||||
|
||||
<Legend part="lineStrokes" caption="The different line strokes" >
|
||||
<Legend part="lineStrokes">
|
||||
The different line strokes
|
||||
</Legend>
|
||||
|
||||
|
|
|
@ -6,9 +6,13 @@ Los diseñadores pueden, si lo eligen, sobreescribir el ancho de línea por defe
|
|||
|
||||
Para referencia, aquí están los diferentes anchos de línea disponibles:
|
||||
|
||||
<Legend part="lineWidths" caption="The different line widths" >
|
||||
<Legend part="lineWidths">
|
||||
The different line widths
|
||||
</Legend>
|
||||
|
||||
Y estos son los diferentes estilos de trazo:
|
||||
|
||||
<Legend part="lineStrokes" caption="The different line strokes" >
|
||||
<Legend part="lineStrokes">
|
||||
The different line strokes
|
||||
</Legend>
|
||||
|
||||
|
|
|
@ -6,9 +6,13 @@ Les concepteurs peuvent, s'ils le souhaitent, utiliser les épaisseurs de lignes
|
|||
|
||||
Pour référence, voici les différentes épaisseurs de lignes disponibles :
|
||||
|
||||
<Legend part="lineWidths" caption="The different line widths" >
|
||||
<Legend part="lineWidths">
|
||||
The different line widths
|
||||
</Legend>
|
||||
|
||||
Et ici sont les différents styles de trait :
|
||||
|
||||
<Legend part="lineStrokes" caption="The different line strokes" >
|
||||
<Legend part="lineStrokes">
|
||||
The different line strokes
|
||||
</Legend>
|
||||
|
||||
|
|
|
@ -6,9 +6,13 @@ Ontwerpers kunnen, als ze willen, een andere lijndikte of vorm van lijn kiezen d
|
|||
|
||||
Ter referentie zijn hier de verschillende beschikbare lijndiktes:
|
||||
|
||||
<Legend part="lineWidths" caption="The different line widths" >
|
||||
<Legend part="lineWidths">
|
||||
The different line widths
|
||||
</Legend>
|
||||
|
||||
En dit zijn de verschillende types lijnen:
|
||||
|
||||
<Legend part="lineStrokes" caption="The different line strokes" >
|
||||
<Legend part="lineStrokes">
|
||||
The different line strokes
|
||||
</Legend>
|
||||
|
||||
|
|
10
package.json
10
package.json
|
@ -29,7 +29,9 @@
|
|||
"contributors:add": "all-contributors add",
|
||||
"contributors:generate": "all-contributors generate",
|
||||
"famadd": "all-contributors add",
|
||||
"famgen": "all-contributors generate"
|
||||
"famgen": "all-contributors generate",
|
||||
"checkdocs": "remark ./markdown/dev/guides/best-practices/ --quiet --frail",
|
||||
"fixdocs": "remark ./markdown/dev/guides/best-practices/ --quiet --frail --output"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -129,6 +131,12 @@
|
|||
"handlebars": "^4.7.7",
|
||||
"jsonfile": "^6.1.0",
|
||||
"postcss": "^8.4.5",
|
||||
"remark-cli": "^10.0.1",
|
||||
"remark-frontmatter": "^4.0.1",
|
||||
"remark-lint-emphasis-marker": "^3.1.1",
|
||||
"remark-lint-list-item-indent": "^3.1.1",
|
||||
"remark-preset-lint-consistent": "^5.1.1",
|
||||
"remark-preset-lint-recommended": "^6.1.2",
|
||||
"tailwindcss": "^3.0.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,16 +21,17 @@
|
|||
],
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"create-freesewing-pattern: No tests configured. Perhaps you'd like to do this?\" && exit 0",
|
||||
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.mjs",
|
||||
"pubtest": "npm publish --registry http://localhost:6662",
|
||||
"pubforce": "npm publish",
|
||||
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
|
||||
"start": "rollup -c -w"
|
||||
"start": "rollup -c -w",
|
||||
"testci": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.mjs"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.1",
|
||||
"commander": "^8.1.0",
|
||||
"commander": "^9.0.0",
|
||||
"conf": "^10.0.1",
|
||||
"cp-file": "^9.0.0",
|
||||
"execa": "^5.1.0",
|
||||
|
|
17
packages/create-freesewing-pattern/tests/cli.test.mjs
Normal file
17
packages/create-freesewing-pattern/tests/cli.test.mjs
Normal file
|
@ -0,0 +1,17 @@
|
|||
import chai from 'chai'
|
||||
import { spawnSync } from 'child_process'
|
||||
|
||||
describe('CLI help', () => {
|
||||
it("Should run successfully", () => {
|
||||
const result = spawnSync('node', ['./lib/cli.js', '-h'])
|
||||
if (result.status != 0) {
|
||||
console.log('Command failed: node ./lib/cli.js -h');
|
||||
console.log('status: ' + result.status);
|
||||
console.log('stdout:')
|
||||
console.log(result.stdout.toString('utf8'));
|
||||
console.log('stderr:')
|
||||
console.log(result.stderr.toString('utf8'));
|
||||
chai.assert.fail();
|
||||
}
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue