From 86a91d9d5b6d96b043b4018ff4ef5d0c3705902d Mon Sep 17 00:00:00 2001
From: Joost De Cock
Date: Sun, 23 Aug 2020 17:39:29 +0200
Subject: [PATCH] chore(titan): Fixed decription so it's configured as a
pattern package
---
.github/workflows/tests.titan.yml | 32 ++++++++++++
config/descriptions.yaml | 2 +-
packages/titan/README.md | 2 +-
packages/titan/example/README.md | 21 ++++----
packages/titan/example/package.json | 17 ++++---
packages/titan/example/public/index.html | 10 ++--
packages/titan/example/src/App.js | 14 +++---
packages/titan/example/src/serviceWorker.js | 10 ++--
packages/titan/package.json | 55 ++++++++++++++++++---
packages/titan/tests/shared.test.js | 32 +++++++++---
10 files changed, 144 insertions(+), 51 deletions(-)
create mode 100644 .github/workflows/tests.titan.yml
diff --git a/.github/workflows/tests.titan.yml b/.github/workflows/tests.titan.yml
new file mode 100644
index 00000000000..292f9532cd8
--- /dev/null
+++ b/.github/workflows/tests.titan.yml
@@ -0,0 +1,32 @@
+name: Unit tests - Titan
+
+on: [pull_request]
+
+jobs:
+ test:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [12.x]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Setup Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: Install dependencies
+ run: cd packages/titan && npm install
+ env:
+ CI: true
+ - name: Install peer & test dependencies
+ run: "cd packages/titan && npm install @freesewing/core@^2.8.1 @freesewing/plugin-bundle@^2.8.1 @freesewing/models@2.8.1 @freesewing/pattern-info@2.8.1 mocha chai"
+ env:
+ CI: true
+ - name: Build pattern
+ run: cd packages/titan && npm run build
+ - name: Run pattern unit tests
+ run: cd packages/titan && npm run testci
diff --git a/config/descriptions.yaml b/config/descriptions.yaml
index 676b1e72451..f7db6d19574 100644
--- a/config/descriptions.yaml
+++ b/config/descriptions.yaml
@@ -59,7 +59,7 @@ sven: 'A FreeSewing pattern for a straightforward sweater'
tamiko: 'A FreeSewing pattern for a zero-waste top'
theo: 'A FreeSewing pattern for classic trousers'
teagan: 'A FreeSewing pattern for a T-shirt'
-titan: 'A FreeSewing block for trousers'
+titan: 'A FreeSewing pattern for a unisex trouser block'
trayvon: 'A FreeSewing pattern for a tie'
tutorial: "A FreeSewing pattern for a baby bib that's used in our tutorial"
utils: 'A collection of utilities shared across freesewing projects'
diff --git a/packages/titan/README.md b/packages/titan/README.md
index 68142d6eec8..c2610fb65aa 100644
--- a/packages/titan/README.md
+++ b/packages/titan/README.md
@@ -46,7 +46,7 @@
This repository is our *monorepo* holding [all our NPM packages](https://www.npmjs.com/search?q=keywords:freesewing).
This folder holds **@freesewing/titan**
-A FreeSewing block for trousers
+A FreeSewing pattern for a unisex trouser block
diff --git a/packages/titan/example/README.md b/packages/titan/example/README.md
index a6129933c2a..40c7063f13e 100644
--- a/packages/titan/example/README.md
+++ b/packages/titan/example/README.md
@@ -27,7 +27,7 @@
-# trayvon example
+# titan example
This project was bootstrapped with [Create Freesewing Pattern](https://en.freesewing.dev/create-freesewing-pattern):
@@ -40,16 +40,16 @@ It is **not** part of the pattern's source code.
To run this example, follow these steps:
-- In the folder above this one, run: `yarn start` (or `npm start`)
-- Then, in new terminal, run the same command in this folder: `yarn start` (or `npm start`)
+ - In the folder above this one, run: `yarn start` (or `npm start`)
+ - Then, in new terminal, run the same command in this folder: `yarn start` (or `npm start`)
-This will spin up the development environment, similar to [our online demo](https://trayvon.freesewing.dev/).
+This will spin up the development environment, similar to [our online demo](https://titan.freesewing.dev/).
## About FreeSewing 🤔
Where the world of makers and developers collide, that's where you'll find FreeSewing.
-Our [core library](https://freesewing.dev/en/freesewing) is a _batteries-included_ toolbox
+Our [core library](https://freesewing.dev/en/freesewing) is a *batteries-included* toolbox
for parametric design of sewing patterns. It's a modular system (check our list
of [plugins](https://freesewing.dev/en/plugins) and getting started is as simple as:
@@ -76,11 +76,11 @@ should [become a patron](https://freesewing.org/patrons/join).
## Links 👩💻
-- 💻 Makers website: [freesewing.org](https://freesewing.org)
-- 💻 Developers website: [freesewing.dev](https://freesewing.org)
-- 💬 Chat: [gitter.im/freesewing](https://gitter.im/freesewing/freesewing)
-- 🐦 Twitter: [@freesewing_org](https://twitter.com/freesewing_org)
-- 📷 Instagram: [@freesewing_org](https://instagram.com/freesewing_org)
+ - 💻 Makers website: [freesewing.org](https://freesewing.org)
+ - 💻 Developers website: [freesewing.dev](https://freesewing.org)
+ - 💬 Chat: [gitter.im/freesewing](https://gitter.im/freesewing/freesewing)
+ - 🐦 Twitter: [@freesewing_org](https://twitter.com/freesewing_org)
+ - 📷 Instagram: [@freesewing_org](https://instagram.com/freesewing_org)
## License: MIT 🤓
@@ -93,3 +93,4 @@ Our [chatroom on Gitter](https://gitter.im) is the best place to ask questions,
share your feedback, or just hang out.
If you want to report a problem, please [create an issue](https://github.com/freesewing/freesewing/issues/new).
+
diff --git a/packages/titan/example/package.json b/packages/titan/example/package.json
index 38ed5909904..8c851741ef8 100644
--- a/packages/titan/example/package.json
+++ b/packages/titan/example/package.json
@@ -16,15 +16,16 @@
"@freesewing/plugin-i18n": "latest",
"@freesewing/plugin-svgattr": "latest",
"@freesewing/utils": "latest",
- "@material-ui/core": "^4.4.0",
- "@material-ui/icons": "^4.2.1",
- "@material-ui/lab": "^v4.0.0-alpha.25",
+ "@material-ui/core": "^4.11.0",
+ "@material-ui/icons": "^4.9.1",
+ "@material-ui/lab": "^v4.0.0-alpha.56",
"pattern": "link:..",
- "prismjs": "1.17.1",
- "react": "^16.9",
- "react-dom": "^16.9",
- "react-scripts": "^3.1.1",
+ "prismjs": "1.20.0",
+ "react": "^16.13",
+ "react-dom": "^16.13",
+ "react-scripts": "^3.4.1",
"file-saver": "^2.0.2",
+ "react-markdown": "4.3.1",
"typeface-roboto-condensed": "latest"
},
"scripts": {
@@ -43,6 +44,6 @@
"not op_mini all"
],
"devDependencies": {
- "babel-plugin-prismjs": "1.1.1"
+ "babel-plugin-prismjs": "2.0.1"
}
}
diff --git a/packages/titan/example/public/index.html b/packages/titan/example/public/index.html
index 633279a242c..372b648aaef 100644
--- a/packages/titan/example/public/index.html
+++ b/packages/titan/example/public/index.html
@@ -1,15 +1,15 @@
-
-
-
-
+
+
+
+
-
+