项目作者: kevinydhan

项目描述 :
Personal developer portfolio
高级语言: TypeScript
项目地址: git://github.com/kevinydhan/portfolio.git
创建时间: 2020-01-31T18:12:00Z
项目社区:https://github.com/kevinydhan/portfolio

开源协议:MIT License

下载


Portfolio

Netlify Status
CircleCI

File Structure

Below is an explanation of the file structure:

  1. src
  2. components <- React components
  3. context <- React context objects and providers
  4. fragments <- GraphQL fragments
  5. pages <- Website's pages, each file equates to a new route in the production website
  6. queries <- GraphQL queries
  7. sections <- React section components
  8. theme <- Styled components-related objects
  9. typings <- TypeScript definitions

Diving to more specific conventions, each React component should be structured as such:

  1. src
  2. components
  3. Navigation <- Folder containing component-specific files
  4. Navigation.d.ts <- Component-specific TypeScript definitions
  5. Navigation.query.ts <- Component-specific GraphQL query
  6. Navigation.styles.ts <- Component-specific styles
  7. Navigation.tsx <- React component