PX2EM is a conversion tool which allows you to calculate the em sizes from pixels. Unlike any other pixel to em conversion tool, PX2EM allows you to convert a list of pixels at one time, and save your inputs for re-visit.
- Convert pixels to rem by providing base font size
- Store inputs for re-visiting users
- Copy to clipboard by clicking on the data cell
Below shows some basic setup steps.
This project is developed using Node.js 12. The version is already specified in the .nvmrc
file. Suggest to run nvm use
when you enter the project folder.
Install yarn packages in project root folder first using yarn install
.
Run yarn start
in project root folder.
Run yarn run build
in project root folder.
Run yarn test
in the project root folder.
Run yarn storybook
in project root folder.
Run yarn build-storybook
in project root folder. Output can be found at docs/storybook
.
Run yarn esdoc
in project root folder. Output can be found at docs/esdoc
.
Below shows some available configuration options.
To add or edit Webpack alias, the following files must be modified in order to have ESLint, Jest and Storybook to work correctly.
- Modify the
import/resolver.node.alias.map
node in.eslintrc
- Modify
config.resolve.alias
inconfig-overrides.js
- Modify
jest.moduleNameMapper
inpackage.json
- Modify
config.resolve.alias
in.storybook/main.js
The REACT_APP_APP_HOST
and PUBLIC_URL
are located in .env
and .env.development
files.
The REACT_APP_GTM_ID
are located in .env
and .env.development
files.