2.12.6 β€’ Published 2 years ago

@property-pass/ui v2.12.6

Weekly downloads
33
License
MIT
Repository
-
Last release
2 years ago

Property Pass UI

npm version

The property pass UI is a web interface build in React, the goal of the application is to facility the developers (or external parties) of Property Pass with control, flexibility and above all speed to add new functionality.

πŸš€ Quick start

Clone the project

Clone the property pass client repository via SSH

$ git clone git@ssh.dev.azure.com:v3/Axiom0147/Axiom/property-pass-ui

Traverse into directory

cd property-pass-ui

Install dependencies/modules

yarn install

Start the project

yarn start

If everything is correct your project will launch at http://localhost:6006/

🧐 What's inside?

A quick look at the top-level files and directories you will find in our project

.
β”œβ”€β”€ node_modules
β”œβ”€β”€ public
β”œβ”€β”€ src
    β”œβ”€β”€ assets
    β”œβ”€β”€ (*) components
        β”œβ”€β”€ *.stories.tsx
        β”œβ”€β”€ *.styles.tsx
        β”œβ”€β”€ *.tsx
    β”œβ”€β”€ GlobalStyle.ts
β”œβ”€β”€ .gitignore
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
└── README.md
  1. /node_modules: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.

  2. /public: This directory contains all of the static files to be served, required for the build.

  3. /src: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. src is a convention for β€œsource code”.

    • /assets: The assets that the componetns use.
    • /*/*.tsx: The component
      • /*/*.stories.tsx: The component their story
      • /*/*.styles.tsx: The component their style
    • /*/GlobalStyle.ts: The global CSS style file provided by styled components.
  4. .gitignore: This file tells git which files it should not track / not maintain a version history for.

  5. yarn.lock (See package.json below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You won’t change this file directly).

  6. package.json: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.

  7. README.md: A text file containing useful reference information about your project.

πŸ€– Available Scripts

In the project directory, you can run the following commands:

yarn commit

Prompts commitizen CLI to adhere to the convetional commit defaults.

yarn build

Builds the app for production to the build folder.

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

yarn lint

Runs ESlint over the whole project.

yarn pretty

Runs Prettieer over the whole project.

yarn start

Runs the app in the development mode.

A new tab will open and launch http://localhost:6006/ so you can view it in your browser.

yarn storybook:build

Build a static version of our storybook instance.

yarn check

Pretty, lint and build.

yarn clean

Remove the build directory.

yarn release

Utilize semantic-release to generate a changelog, tag the build version and deploy to NPM.

yarn release:dry

Do a DRY-RUN semantic-release, this is a sandboxed run, nothing is released.

πŸŽ“ Frequently asked questions

What should my new component look like?

The UI/UX designers of Property Pass will create new components; Always check with them. They also set the guidelines, spacing, fonts and other tokens.

Align often

It's good to have meetings often to counter and challenge each-other, not everything what can be designed is easy to build.

Where's my design?

In the JIRA tickets there would be either a screenshot attached or a URL to Zeplin, our design system exploring tool.

πŸ’« Deploying/Azure Devops

In the file azure-pipelines.yml you'll find our pipeline configration, paired with the variables that you'll mange over here you can let your pipeline automate everything you want to. THese are the steps that are currenlty included.

  • Create .npmrc
  • Authenticate private NPM modules
  • Install Node.js
  • Clean install NPM modules
  • Run build
  • Deploy to chromatic
  • Generate changelog, tag version and release

βš™οΈ Technical decisions

This list reflects all the technical decisions that have been made around certain topics.

OptionDecision
Static Site Generation-
Server Side Rendering-
Base packageCreate React App / Storybook
GraphQL client-
State management-
Code formatterPrettier
LinterESlint
Static Type CheckingTypeScript
Localization-
Routing-
Bundler/buildWebpack
CompilerBabel
CSS-in-JSStyled components
Unit/Integration TestingJest / React Testing Library
E2E testing-
Visual testingSnapshot testing
DistributionChromatic
Commit templateConventional Commits
Preferred Component Design PatternFunctional Compound Components (https://kentcdodds.com/blog/compound-components-with-react-hooks/)
Document Head Manager-
DatesDate fns
Package ManagerYarn
Task runnerYarn Scripts
2.11.0

2 years ago

2.11.1

2 years ago

2.12.0

2 years ago

2.12.5

2 years ago

2.12.6

2 years ago

2.12.3

2 years ago

2.12.4

2 years ago

2.12.1

2 years ago

2.12.2

2 years ago

2.10.1

2 years ago

2.10.2

2 years ago

2.10.0

2 years ago

2.9.2

2 years ago

2.9.1

2 years ago

2.9.4

2 years ago

2.9.3

2 years ago

2.9.6

2 years ago

2.9.5

2 years ago

2.9.7

2 years ago

2.8.1

2 years ago

2.8.0

2 years ago

2.7.0

2 years ago

2.8.3

2 years ago

2.8.2

2 years ago

2.8.4

2 years ago

2.9.0

2 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.3

3 years ago

2.4.5

3 years ago

2.4.4

3 years ago

2.4.6

3 years ago

2.4.1

3 years ago

2.4.2

3 years ago

2.4.0

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.3

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.18.0

3 years ago

1.17.6

3 years ago

1.17.7

3 years ago

1.16.3

3 years ago

1.17.2

3 years ago

1.17.5

3 years ago

1.17.4

3 years ago

1.17.3

3 years ago

1.14.1

3 years ago

1.14.0

3 years ago

1.16.2

3 years ago

1.16.1

3 years ago

1.16.0

3 years ago

1.14.2

3 years ago

1.15.0

3 years ago

1.15.3

3 years ago

1.15.2

3 years ago

1.15.1

3 years ago

1.13.0

3 years ago

1.12.2

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.9.0

3 years ago

1.10.0

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

0.0.33

3 years ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.19

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago