YDTemplate
๐ณYindou-Web&&App-Template using parcel bundler
Install / Use
/learn @l-hammer/YDTemplateREADME
Usage
This is a project template for ydt-cli.
$ npm install -g ydt-cli
$ ydt-cli init YDTemplate my-project
Quick start
Several quick start options are available:
<!-- - Initialize template run: `. init.sh` --> <!-- - Clone the repo: `https://github.com/l-hammer/YDTemplate.git` -->- Install dependencies with npm:
npm install - App development run
npm run start - App development use mock data run
npm run dev - Web development run
npm run start:web - Web development use mock data run
npm run dev:web - Open web example run
npm run dev:webeg - Open app example run
npm run dev:appeg - Build run
bash build.sh @param1 @param2(@param1:web,app,webeg,appeg; @param2:--no-minify) - Move useless codes run
python bin/mvuseless.py @param(@param:web,app,examples) - Open
http://localhost:1234in your browser.
What's included
YDTemplate/
โโโ bin/ // python่ๆฌ
โ โโโ autocopy.py // ๐่ชๅจๆท่ดไธ็บฟไปฃ็
โ โโโ mvuseless.py // ๐ฅๅ ้คๅผๅ้็ธๅ
ณไปฃ็ forๅผบ่ฟซ็็จๆท
โโโ configs/
โ โโโ meta.js // ๐ ๆจกๆฟ้
็ฝฎๆไปถfor ydt-cli
โ โโโ init.ini // ๐build้
็ฝฎๆไปถ
โโโ mock/
โ โโโ index.js // ๐ณmock server
โ โโโ data.json // ๐mock data
โ โโโ util.js // ๐คกmock API
โโโ server/
โ โโโ index.js // ๐กnode proxy
โโโ src/
โ โโโ api/
โ โ โโโ config.js // ๐ axios้
็ฝฎ
โ โ โโโ index.js // ๐ฒไธๅกAPI
โ โโโ assets/
โ โ โโโ normalize/
โ โ โ โโโ index.scss // ๐ค็ปไธๆต่งๅจ้ป่ฎคๆ ทๅผ
โ โ โโโ basics/
โ โ โ โโโ index.scss // ๐base.scss
โ โ โโโ iconfonts/
โ โ โ โโโ index.scss // ๐ๅ
่ๅญไฝ&&ๅญไฝๅพๆ
โ โ โโโ animation/
โ โ โ โโโ index.scss // ๐ฅๅธธ็จcssๅจ็ป
โ โ โโโ mixins/
โ โ โ โโโ index.scss // ๐ๅฏ้็จ็ไปฃ็ ๅ@mixin
โ โ โโโ customs/
โ โ โ โโโ app.scss // ๐่ชๅฎไนSCSSๅ้
โ โ โโโ components/
โ โ โโโ index.scss // ๐ๅธธ็จ็ปไปถๆ ทๅผ@dialog @progress @records page @onepx-border
โ โ โโโ app.scss // appๅผๅๆ ทๅผๅ
ฅๅฃ
โ โ โโโ web.scss // webๅผๅๆ ทๅผๅ
ฅๅฃ
โ โโโ examples/
โ โ โโโ web/ // web examples
โ โ โโโ app/ // app examples
โ โโโ components/ // ๐ๅธธ็จUI็ปไปถ(App)
โ โ โโโ icon/ // ๅพๆ
โ โ โโโ loading-bar/ // ่ฟๅบฆๆก
โ โ โโโ dialog/ // ๅฏน่ฏๆก
โ โโโ app/ // SPA
โ โ โโโ template/
โ โ โ โโโ index.tpl // buildไธญ้ดๆจกๆฟ
โ โ โโโ mixins/ // ๆททๅ
ฅ
โ โ โ โโโ index.js // ๅ่ฝๅค็จๆจกๅ
โ โ โโโ views/ // page
โ โ โ โโโ index.vue // ้ฆ้กต
โ โ โ โโโ xxx.vue // ๅ
ถๅฎ้กต
โ โ โโโ App.vue // ๆ น็ปไปถ
โ โ โโโ index.html // app ๆ น้กต้ข
โ โ โโโ bus.js // ไบไปถๆป็บฟ๏ผ้็ถๅญ้ด้ไฟก
โ โ โโโ main.js // ๅ
ฅๅฃๆไปถ
โ โ โโโ router.js // ้
็ฝฎ่ทฏ็ฑ
โ โ โโโ template.tpl // ไธ็บฟๆจกๆฟ
โ โโโ web/
โ โ โโโ index.html // webๅผๅ้กต
โ โ โโโ index.js // webๅผๅ่ๆฌ
โ โ โโโ template.tpl // webไธ็บฟๆจกๆฟ
โ โโโ vetar/ // ๐คๆ็ฎ็MVVM
โ โ โโโ dep.js // ่งๅฏๆๆฅไธญๅฟ
โ โ โโโ index.js // MVVM:Vetar
โ โ โโโ watcher.js // ่ฎข้
่
โ โโโ utils/ // ๐ๅธธ็จๅทฅๅ
ทๅฝๆฐ
โ โโโ arrayPull.js // ๅ ้คๆฐ็ปๆๅฎๅผ
โ โโโ cookie.js // cookie
โ โโโ clone.js // ๆท่ด๏ผObject, Array or Primitive๏ผ
โ โโโ date.js // ่งฃๆๆฅๆใๆฅๆๆ ผๅผๅ
โ โโโ deepClone.js // ๆทฑๆท่ด (Object, Array, RegExp, Date or Primitives)
โ โโโ distinctValuesOfArray.js // ๆฐ็ปๅป้
โ โโโ fetch.js // ajax
โ โโโ initArrayWithRange.js // ๅๅงๅๆๅฎ่ๅดๅ
็ๆฐ็ป
โ โโโ preloadimages.js // ๅพ็้ขๅ ่ฝฝ
โ โโโ scrollToTop.js // ่ฟๅ้กถ้จ
โ โโโ shuffleArray.js // ้ๆบๆๅๆฐ็ป
โ โโโ store.js // localStorage
โ โโโ viewType.js // ๅคๆญๆฐๆฎ็ฑปๅ
โ โโโ wxShare.tpl // ๅพฎไฟกๅไบซ
โโโ clearcache.sh // โป๏ธๆธ
้ค็ผๅฒ
โโโ build.sh // ๐ฆๆๅ
โโโ init.sh // ๐ๅๅงๅ้กน็ฎ
โโโ push.sh // ๐ฅๅผบ็ๅปบ่ฎฎไฝฟ็จๆญค่ๆฌๆฟๆขgit push
Technology
- App
Vue 2.x+Axios - Web
jQuery+Handlebars
Browser Support
last 10 versions
IE 8
iOS 7
Contributing 
- :fork_and_knife:Fork it!
- :twisted_rightwards_arrows:Create your branch:
git checkout -b new-branch - :wrench:Make your changes
- :memo:Commit your changes:
git commit -am 'Add some feature' - :rocket:Push to the branch:
git push origin new-branch - :tada:Submit a pull request
License
MIT ยฉ 2018 LHammer
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
99.2kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
344.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
