https://github.com/tbxark/tbxark.github.io
TBXark' blog
https://github.com/tbxark/tbxark.github.io
blog terminal
Last synced: about 1 month ago
JSON representation
TBXark' blog
- Host: GitHub
- URL: https://github.com/tbxark/tbxark.github.io
- Owner: TBXark
- License: mit
- Created: 2015-10-23T14:43:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T06:10:01.000Z (over 1 year ago)
- Last Synced: 2024-05-22T07:25:04.497Z (over 1 year ago)
- Topics: blog, terminal
- Language: JavaScript
- Homepage: https://tbxark.com
- Size: 5.39 MB
- Stars: 24
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TBXark' blog

### Usage
```bash
# NPM Scripts (Recommended)
npm run dev # Build and serve on localhost
npm run build # Build the site (merge data + update SHA)
npm run preview # Serve on localhost
npm run blogs # Create /api/blogs.json
npm run projects # Create /api/projects.json
npm run merge # Merge API data into /src/data.js
npm run lint # Run ESLint# Legacy Makefile support
make preview # serve on localhost
make build # build the site for cloudflare page
make blogs # create /api/blogs.json
make projects # create /api/projects.json
```### Architecture
- **No Runtime Fetch**: API data is pre-compiled into `/src/data.js` at build time
- **ES6 Modules**: Uses modern JavaScript module system for better performance
- **Build-time Optimization**: All JSON files are merged and embedded during build### Feature
- Support `tab` to complete the command
- Support `up` and `down` to navigate the command history### Support commands
```bash
pwd # current domain
ls # list supported commands
github # open github
weibo # open weibo
twitter # open twitter
blogs # list blogs
projects # list projects
```### Links
Origin: https://www.tbxark.com
China Mirrors: https://www.tbxark.cn