• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

HackYourFutureBelgium/starter-github-api-home-page

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

HackYourFutureBelgium/starter-github-api-home-page

开源软件地址:

https://github.com/HackYourFutureBelgium/starter-github-api-home-page

开源编程语言:

JavaScript 99.1%

开源软件介绍:

if you change the name of your repository, you will need to change the .repoName property in ./client/config.js

JavaScript Quiz


Repo Setup

  • Give each member write access to the repo
  • Turn on GitHub Pages and put a link to your website in the repo's description
    • Configure it to build from the gh-pages branch
  • in the Branches section of your repo's settings make sure:
    • The repository requires a review before pull requests can be merged.
    • The master/main branch must "Require status checks to pass before merging"
    • The master/main branch must "Require require branches to be up to date before merging"

Local Setup

So you're ready to start coding? If you haven't cloned this repository already you should, and then ...

  1. Clone this repository:
  2. Navigate to this repository in your local computer
    • $ cd this-repository
  3. Install the project's development dependencies - you will need these for the code quality automation:
    • $ npm install

Local Development

This is a static website that only uses HTML, CSS and JavaScript, so you can run it any static server like liveStudy http-server or study-lenses. But the best way to run it is:

  • npm run dev

This will launch a development server that will update the website in your browser each time you make a change in your code. The development server uses vite.js which is faster and more helpful liveServer. Vite will only reload the files that you change, and will display clear error messages in the browser when something goes wrong in creation phase.


Continuous Integration

This repository comes with 5 CI scripts. You can run the same checks locally to make sure you have no errors before pushing, this will make everything easier for you and your reviewer. If the checks pass locally then they should pass when you push:

  • Linting JavaScript
    • npm run lint:js -- ./path/to/file.js: lint one file at a time by passing the path to that file
    • npm run lint:js:ci: lint all of the JavaScript in /src. This is the same command that is run in GitHub so if it works locally it should pass the checks when you push.
  • Linting CSS
    • npm run lint:css -- ./path/to/file.css: lint one file at a time by passing the path to that file
    • npm run lint:css:ci: lint all of the CSS in /public. This is the same command that is run in GitHub so if it works locally it should pass the checks when you push.
  • Testing
    • npm run test -- ./path/to/file.spec.js: test one .spec.js file at a time
    • npm run test:ci: test all .spec.js files at once. This is the same command that is run in GitHub so if it works locally it should pass the checks when you push.
  • Documenting
    • npm run document: render the documentation before pushing to make sure there are no errors.
  • Building and Deploying
    • npm run build: this will build your source code into minified and bundled code for deployment.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap