This is a design system for implementing mordarn applications like single page applications and static pages
CheckList
- Organized: Fixed Code Structure
- No Specificity Issue
- Atomic Design Principles
- Easy to understand (Comments, Variables)
- Fully Customizable / Themeble
- Reusable Across Teams / Project
-
- Create a folder name as scss for scss
- Inside Of Scss folder create 'src' folder
- inside src folder create 'base, atoms, foundation, molecules, organisms, templetes, pages,)
- root of scss folder create a global.scss
-
- inside of src folder run
yarn init -y
- Add SCSS package
yanr add scss
- Inside src fulder create build file inside of scripts folder and create function for compilation for all inside src .scss file to inside lib folder .css file.
- inside of src folder run
-
- Move root scss folder into
packages
folder - change
scss/package.json
"name": "@ds.e/scss"
- In The root
yarn init -y
to initialize package - change namespace
package.json
"name": "@ds.e/core"
for core - Install
yarn add lerna
for monoripo - Run
yarn add lerna
to create lerna configration json file - Add in
lerna.json
"packages": ["packages/*"]
to intrigate the packages to lerna and also add"npmClient": "yarn"' for use yarn as npm client and
"stream": true` to generate log - Change
package.json
workspace to"workspaces": { "packages": [ "packages/*" ] }
to add onather packages and"private":true
for private the package - delete all node modules folder and then run
yarn
at root and you can checkyarn build
to sure all build are working. - Add
"build": "yarn lerna run build"
to use lerna build system
- Move root scss folder into
-
- run
yarn init -y
to initialize and set namespace"name": "@ds.e/react"
- Install
yarn add -D react typescript @types/react
for react Project - create
tsconfig.json
insidereact
folder for configration - inside of
src
folder create aindex.ts
and foldersatoms, foundation, molecules
- Create a atom like Button and exports into
- Install
yarn add In ract -D rollup rollup-pulgin-typescript2
to complieation - Create a file root of react
rollup.config.js
- run
-
- Inside of playgrounds
yarn create vite
react Project - And import one atom inside of
app.tsx
and go live first react atom working after....
- Inside of playgrounds
-
- Install
yarn add -D nodemon
inside ofpackage/scss
for resterting server changes & inside of package json add script"dev":"nodemon --watch src --exec yarn build -e scss"
- Install
- run
yarn init -y
to initialize and set namespace"name": "@ds.e/react"