atomic-design-systems
v1.0.2-0
Published
Lagardere Styleguide
Downloads
4
Readme
Styleguide Patternlab
JDD PM E1
Install the project
- Install Docker
- Install Docker Compose
- Install the Docker Development Stack
Launch Traefik at first
Build the project container before the first launch
make start
make build
Finally, update project assets :
npm install
Compile scss
npm run build
And then launch project
npm start
Now, the FrontEnd is accessible through :
- http://127.0.0.1:3000/?p=all
- http://dev.paris-match-styleguide.com
FrontEnd Linter
JS lint use ESLint with AirBnB coding style, and CSS Lint use stylelint with coding-standard
- Run
npm run csslint
orcsslint-fix
for local. - Run
npm run jslint
orjslint-fix
for local.
Create package
Package are automaticaly created when branch is merged on master
To create a test package :
- Run
npm run build
to compile scss files - Edit package version in the
package.json
of the project[versionId]-[taskId]
- Go to
packages/uikit-[projectName]
(packages/uikit-jdd, packages/uikit-pm, packages/uikit-e1) - Run
npm publish --tag=[tagName]
- Check in Gitlab if package is created (Deploy > Package Registry)
Defaults tag name
- Default
--tag=lastest
(automatic when merged onmaster
) - For release branch
--tag=next
or--tag=releaseName
- For test
--tag=demo-[id]
Upgrade package in projects
- In the project repo,
make bash
- Run
yarn upgrade @styleguide/uikit-[projectName]@[packageVersion]
(yarn upgrade @styleguide/[email protected]) - Build assets
make assets-build
Workflow
- Create a test package to test in the project
- Merge request in
master
orrelease
branch - Do not merge until the task is tested and validated
- Edit the package version to have the
lastest
that is in the package registery - Merge
- Upgrade the package version in the project and ask a code review to merge on
master
- Delete test/release package