GithubHelp home page GithubHelp logo

panda74 / bookmark-web Goto Github PK

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

您的定制化导航网站——根据浏览器书签生成导航页面

JavaScript 26.23% HTML 2.28% TypeScript 69.39% CSS 2.11%
ant-design react tailwindcss typescript vite

bookmark-web's Introduction

Bookmark-Web📑

介绍

​ Bookmark-Web基于React18、TypeScript、Vite5、Ant-Design、TailwindCSS开发的将浏览器书签转成导航页面的网站。

开发

  • 统一包管理器pnpm
//设置了preinstall钩子校验,其他包管理器npm、yarn下载会报错
pnpm i
pnpm dev
//在git pre-commit钩子里执行lint-staged,每次git commit前会对暂存区的指定代码进行eslint语法校验,prettiter自动格式化
"lint-staged": {
		"src/**/*.{ts,tsx}": [
			"pnpm lint",
			"prettier --write --ignore-unknown"
		]
	},
//在git commit-msg钩子里执行commitlint进行commit message格式校验,格式规范可以参考阮一峰老师的文章(https://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html)

rules: {
		'type-enum': [
			2,
			'always',
			[
				'feat',
				'fix',
				'docs',
				'style',
				'refactor',
				'perf',
				'test',
				'chore',
				'revert',
				'build',
				'ci',
			],
		],
		'type-case': [0],
		'type-empty': [0],
		'scope-empty': [0],
		'scope-case': [0],
		'subject-full-stop': [0, 'never'],
		'subject-case': [0, 'never'],
		'header-max-length': [0, 'always', 72],
	},
//在package.json 添加 config 指定commitizen使用cz-git进行git commit提示(终端输入cz触发commit提示)
  "config": {
    "commitizen": {
      "path": "node_modules/cz-git"
    }
  }

未完待续...

bookmark-web's People

Contributors

panda74 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.