GithubHelp home page GithubHelp logo

chenxiok99 / svelte-vite-webapp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 76 KB

基于Svelte + Vite搭建的多页面应用,适合用于C端活动页

JavaScript 28.01% Shell 1.10% TypeScript 21.31% Svelte 31.35% HTML 16.62% Less 1.61%

svelte-vite-webapp's Introduction

svelte-vite-webapp

简介

基于Svelte + Vite搭建的多页面应用,适合用于C端活动页

相关文档

svelte: https://www.sveltejs.cn/

vite: https://vitejs.bootcss.com/

开发环境配置

vscode开发需要在vscode插件市场搜索安装Svelte for VS Code、Svelte 3 Snippets

工作区setting.json添加如下设置

"[svelte]": {
  "editor.defaultFormatter": "svelte.svelte-vscode"
},

本项目需要在nodejs16.x上启动,首先安装nvm

nvm install v16.18.1

nvm use v16.18.1

启动

yarn

打开指定页面 注意:这里的${pageName}为pages目录下文件夹名称

npm run start --serve=${pageName}

创建页面 注意:这里的${pageName}为你自己命名的页面名称

npm run create-page ${pageName}

提交代码

提交代码请用npm run commit命令,规范提交,按步骤填写commit信息

svelte-vite-webapp's People

Contributors

chenxiok99 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.