From d6076e500bdc29f8c2a878ec2c8e7d2be506e192 Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Sun, 26 Apr 2020 11:09:22 +0200 Subject: [PATCH] chore: Updated pattern-info to reflect Fu -> Florence name change. See #382 --- packages/pattern-info/info.md | 50 --------------------------- packages/pattern-info/src/index.js | 4 +-- packages/pattern-info/src/prebuild.js | 8 ++--- 3 files changed, 6 insertions(+), 56 deletions(-) delete mode 100644 packages/pattern-info/info.md diff --git a/packages/pattern-info/info.md b/packages/pattern-info/info.md deleted file mode 100644 index bfdc194638c..00000000000 --- a/packages/pattern-info/info.md +++ /dev/null @@ -1,50 +0,0 @@ - -## Included patterns - -### Blocks - -Blocks or slopers are basic patterns shapes that you can extend into fully detailed patterns. - - - [brian](https://github.com/freesewing/brian) : A basic body block for menswear, and the basis for many of our menswear patterns. - - [bent](https://github.com/freesewing/bent) : A version of [brian](https://github.com/freesewing/brian) with a two-part sleeve, and the and the basis of our menswear coat and jacket patterns. - -### Menswear - - - [aaron](https://github.com/freesewing/aaron) : A tank top or A-shirt - - [bruce](https://github.com/freesewing/bruce) : Boxer briefs - - [carlton](https://github.com/freesewing/carlton) : A long coat, perfect for Sherlock Holmes cosplay - - [huey](https://github.com/freesewing/huey) : A zip-up hoodie - - [hugo](https://github.com/freesewing/hugo) : A hooded sweatshirt with raglan sleeves - - [jaeger](https://github.com/freesewing/jaeger) : A sportscoat - - [simon](https://github.com/freesewing/simon) : A versatile button-down shirt - - [sven](https://github.com/freesewing/sven) : A straightforward sweater - - [wahid](https://github.com/freesewing/wahid) : A classic waistcoat - - -### Womenswear - - - [cathrin](https://github.com/freesewing/cathrin) : An underbust corset or waist trainer - - [tamiko](https://github.com/freesewing/tamiko) : A zero-waste top - -### Accessories - - - [trayvon](https://github.com/freesewing/trayvon) : A (neck) tie - -> #### Note: menswear/womenswear has nothing to do with gender -> -> Freesewing is gender-neutral. When we use the terms **menswear** or **womenswear** -> we are not talking about clothes for men or women. It is merely a category of clothing -> much like **accessories** or **shoes** are categories. -> -> The category gives you an idea what to expect, and is there to help you find things. -> It is not a limitation, or even a suggestion, of what you can or should wear or make. -> -> Wear whatever you want, and be proud of the things you make. - -## Usage - -This package has 2 exports: - - - `patterns` : (the default export) An object holding pattern constructors - - `patternList` : An array of pattern names - diff --git a/packages/pattern-info/src/index.js b/packages/pattern-info/src/index.js index b5c11f36548..288141b06e2 100644 --- a/packages/pattern-info/src/index.js +++ b/packages/pattern-info/src/index.js @@ -17,7 +17,7 @@ export const list = [ 'carlton', 'cathrin', 'florent', - 'fu', + 'florence', 'holmes', 'huey', 'hugo', @@ -43,7 +43,7 @@ export const withoutBreasts = [ 'bruce', 'carlton', 'florent', - 'fu', + 'florence', 'holmes', 'huey', 'hugo', diff --git a/packages/pattern-info/src/prebuild.js b/packages/pattern-info/src/prebuild.js index 760c2547c44..9cbb2f31e68 100644 --- a/packages/pattern-info/src/prebuild.js +++ b/packages/pattern-info/src/prebuild.js @@ -11,7 +11,7 @@ const carlita = require('@freesewing/carlita').config const carlton = require('@freesewing/carlton').config const cathrin = require('@freesewing/cathrin').config const florent = require('@freesewing/florent').config -const fu = require('@freesewing/fu').config +const florence = require('@freesewing/florence').config const holmes = require('@freesewing/holmes').config const huey = require('@freesewing/huey').config const hugo = require('@freesewing/hugo').config @@ -40,7 +40,7 @@ const patterns = { carlton, cathrin, florent, - fu, + florence, holmes, huey, hugo, @@ -57,7 +57,7 @@ const patterns = { wahid, waralee } -const patternOptions = config => { +const patternOptions = (config) => { let all = [] let groups = config.optionGroups for (let group of Object.keys(groups)) { @@ -74,7 +74,7 @@ const patternOptions = config => { return all } -const patternParts = config => { +const patternParts = (config) => { let parts = {} if (config.parts) { for (let p of config.parts) parts[p] = p