create-yamlresume
create-yamlresume membantu Anda membuat proyek YAMLResume baru dengan perintah satu baris.
Penggunaan
npx create-yamlresume my-resume
# or
npm init yamlresume my-resumepnpm create yamlresume my-resumeyarn create yamlresume my-resumebun create yamlresume my-resumeApa yang dilakukannya
Alat ini akan:
- Membuat direktori baru dengan nama proyek Anda
- Membuat struktur proyek Node.js dasar dengan:
package.jsondengan dependensi YAMLResume dan skrip yang berguna- File
.gitignoredengan pengecualian yang sesuai README.mddengan instruksi penggunaan dasar
- Menginstal semua dependensi yang diperlukan
- Membuat file contoh resume baru menggunakan
yamlresume new - Menampilkan perintah yang tersedia dan langkah selanjutnya
Contoh Sesi
$ pnpm create yamlresume
✔ What is your project name? … yamlresume
ℹ Using pnpm.
✔ What should your resume file be called? (without .yml extension) … resume
◐ Creating YAMLResume project in /private/tmp/yamlresume...
◐ Installing dependencies with pnpm...
Packages: +59
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 59, reused 59, downloaded 0, added 59, done
dependencies:
+ yamlresume 0.7.5
Done in 4s using pnpm v10.6.3
✔ Dependencies installed successfully!
◐ Creating resume file resume.yml...
✔ Created resume.yml successfully.
◐ Initializing git repository...
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /tmp/yamlresume/.git/
✔ Git repository initialized!
[master (root-commit) 53c6210] init a new YAMLResume project
4 files changed, 421 insertions(+)
create mode 100644 .gitignore
create mode 100644 README.md
create mode 100644 package.json
create mode 100644 resume.yml
✔ Initial commit created!
ℹ
✨ Project created successfully!
ℹ
Next steps:
ℹ 1. cd yamlresume
ℹ 2. Edit your resume: resume.yml
ℹ 3. Build your resume: pnpm run build
ℹ 4. Watch for changes: pnpm run dev
ℹ 5. Show all commands: pnpm run yamlresume help
ℹ
Learn more:
ℹ 🏠 Homepage: https://yamlresume.dev
ℹ 📖 Documentation: https://yamlresume.dev/docs/
ℹ 🎨 Templates: https://yamlresume.dev/docs/layouts/latex/templates
ℹ 📝 Schema: https://yamlresume.dev/docs/compiler/schemaStruktur Proyek
Proyek yang dihasilkan terlihat seperti ini:
my-resume/
├── package.json # Konfigurasi proyek dengan dependensi yamlresume
├── .gitignore # Aturan git ignore
├── README.md # Dokumentasi proyek
└── resume.yml # Resume YAML Anda (nama file yang Anda pilih)Perintah yang Tersedia
Di proyek yang dihasilkan, Anda dapat menjalankan:
npm run build- Bangun resume Anda ke PDFnpm run dev- Pantau perubahan dan bangun ulang secara otomatisnpm run validate- Validasi resume Anda terhadap skemanpm run yamlresume- Jalankan CLI YAMLResume
Edit on GitHub
Last updated on