2022-06-17 14:12:46 +02:00
|
|
|
import chalk from 'chalk'
|
2022-06-17 18:23:17 +02:00
|
|
|
import { banner } from './banner.mjs'
|
|
|
|
|
2022-06-17 14:12:46 +02:00
|
|
|
console.clear()
|
2022-06-17 18:23:17 +02:00
|
|
|
console.log(banner)
|
2022-06-17 14:12:46 +02:00
|
|
|
console.log(`
|
|
|
|
|
|
|
|
${chalk.bold.yellow('🤨 Help with our monorepo')}
|
|
|
|
${chalk.gray('≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡')}
|
|
|
|
|
|
|
|
Welcome to our git repository 😀
|
|
|
|
These are the most relevant folders:
|
|
|
|
|
2022-06-17 18:23:17 +02:00
|
|
|
👕 ${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
|
|
|
|
|
2025-04-01 16:15:20 +02:00
|
|
|
You can show this help at any moment by running: ${chalk.blue('npm run tips')}
|
2022-06-17 14:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
${chalk.bold.yellow('🚀 Getting started')}
|
|
|
|
${chalk.gray('≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡')}
|
|
|
|
|
2025-04-01 16:15:20 +02:00
|
|
|
To get started, run this command in the monorepo root:
|
2022-06-17 14:12:46 +02:00
|
|
|
|
2025-04-01 16:15:20 +02:00
|
|
|
${chalk.blue('npm run kickstart')}
|
2022-06-17 14:12:46 +02:00
|
|
|
|
2023-07-28 12:56:14 -05:00
|
|
|
It will install and link all dependencies.
|
|
|
|
|
|
|
|
|
|
|
|
If something goes wrong in the configuration, you can run
|
|
|
|
|
2025-04-01 16:15:20 +02:00
|
|
|
${chalk.blue('npm run reconfigure')}
|
2023-07-28 12:56:14 -05:00
|
|
|
|
|
|
|
It will (re)configure all packages and dependencies.
|
2022-06-17 14:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
${chalk.bold.yellow('🛠️ Starting the development environment')}
|
|
|
|
${chalk.gray('≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡')}
|
|
|
|
|
2023-07-28 12:56:14 -05:00
|
|
|
Our development environment for ${chalk.bold('designs')} and ${chalk.bold(
|
|
|
|
'plugins'
|
2024-11-16 06:43:10 -08:00
|
|
|
)} lives in ${chalk.green('sites/org')}
|
|
|
|
We refer to it as ${chalk.bold('the org development environment')}.
|
2022-06-17 14:12:46 +02:00
|
|
|
It can display any design in this repository and will hot-reload any changes you make to a design.
|
|
|
|
|
2024-11-16 06:43:10 -08:00
|
|
|
To start the org development environment, run this command:
|
2022-06-17 14:12:46 +02:00
|
|
|
|
2025-04-01 16:15:20 +02:00
|
|
|
${chalk.blue('npm run org')}
|
2022-06-17 14:12:46 +02:00
|
|
|
|
|
|
|
Now open your browser and navigate to ${chalk.green('http://localhost:8000/')}
|
|
|
|
|
|
|
|
|
|
|
|
${chalk.bold.yellow('👕 Adding a new design')}
|
|
|
|
${chalk.gray('≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡')}
|
|
|
|
|
|
|
|
To add a new design to this repository, run this command:
|
|
|
|
|
2025-04-01 16:15:20 +02:00
|
|
|
${chalk.blue('npm run new design')}
|
2022-06-17 14:12:46 +02:00
|
|
|
|
2024-11-16 06:43:10 -08:00
|
|
|
It will ask you some questions, and set everything up for you, and add your design to the local repository.
|
2022-06-17 14:12:46 +02:00
|
|
|
|
|
|
|
|
2023-07-28 12:56:14 -05:00
|
|
|
If you later need to add more dependencies to your design, add them in ${chalk.green(
|
|
|
|
'config/dependencies.yaml'
|
|
|
|
)}, then run
|
|
|
|
|
2025-04-01 16:15:20 +02:00
|
|
|
${chalk.blue('npm run reconfigure')}
|
2023-07-28 12:56:14 -05:00
|
|
|
|
|
|
|
They will be added to your design's ${chalk.green('package.json')}
|
|
|
|
|
|
|
|
|
2022-06-17 14:12:46 +02:00
|
|
|
${chalk.bold.yellow('🤔 More info & help')}
|
|
|
|
${chalk.gray('≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡')}
|
|
|
|
|
|
|
|
FreeSewing's documentation for developers and contributors is available at:
|
|
|
|
|
|
|
|
${chalk.green('https://freesewing.dev/')}
|
|
|
|
|
2023-07-28 12:56:14 -05:00
|
|
|
Our community is on Discord. The ${chalk.bold(
|
|
|
|
'development-help'
|
|
|
|
)} channel is a good place to start:
|
2022-06-17 14:12:46 +02:00
|
|
|
|
|
|
|
${chalk.green('https://discord.freesewing.dev/')}
|
|
|
|
|
|
|
|
|
|
|
|
Happy hacking 🤓
|
|
|
|
|
|
|
|
`)
|