Skip to content

chinanf-boy/try-svelte-my-new-project-templete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

嘘🤫 - 寻找可共享的组件模板?去这里 - >sveltejs /组件模版


svelte app

这是一个项目模板svelte应用. 它住在https://github.com/sveltejs/template.

使用degit基于模板创建新项目

npm install -g degit # you only need to do this once

degit sveltejs/template svelte-app
cd svelte-app

请注意,您需要拥有Node.js安装.

Get started

安装依赖关系...

cd svelte-app
npm install

...然后开始rollup:

npm run dev

导航本地主机: 5000. 您应该会看到您的应用正在运行,

src中编辑组件文件,保存它,并重新加载页面以查看您的更改.

Deploying to the web

With now

安装now, 如果你还没有:

npm install -g now

然后,从您的项目文件夹中:

now

作为替代,使用 now 桌面客户端, 只需将解压缩的项目文件夹拖到任务栏图标即可.

With surge

安装surge, 如果你还没有:

npm install -g surge

然后,从项目文件夹中:

npm run build
surge public

About

try:svelte with degit templete

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published