fireship-io/fireship.io
关于
更快地构建并发布你的应用 https://fireship.io
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- -3
- 1个月
- -3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Fireship
The Fireship PRO course platform frontend built with Svelte, Tailwind, Hugo, Firebase, & Flamethrower.
Contributing
All static content is managed with Hugo in the content dir. You can easily fix typos by modifying the markdown directly in GitHub.
How to Run it
First, install Hugo Extended ver 0.101.0 or greater.
git clone <this-repo>
npm install
npm start
Check it on on http://localhost:6969/.
Developing Components
Create a Svelte file in the app/components directory. It must have a custom element tag.
<svelte:options tag="hi-mom" />
<script>
export let greeting: string;
</script>
<h1>Hi Mom! {greeting}</h1>
Export the component from app/main.ts:
export * from './components/hi-mom.svelte';
Now use it in anywhere in your HTML or Markdown.
<hi-mom greeting="i made a web component"></hi-mom>
Note: A weird caveat with Svelte web components is that all styles must be encapsulated. You can use Tailwind, BUT only with @apply in the component. Global styles will not work.
Commands
npm start: Main dev server. Runs everything you need.npm run dev: Runs components in isolation. Servesapp/index.htmlas a playground for components.npm run hugo: Only runs static site.npm run build: Build for production
探索相关项目
加载中…