1.0.2-0 • Published 2 years ago
atomic-design-systems v1.0.2-0
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 startmake build
Finally, update project assets :
npm installCompile scss
npm run buildAnd then launch project
npm startNow, the FrontEnd is accessible through :
FrontEnd Linter
JS lint use ESLint with AirBnB coding style, and CSS Lint use stylelint with coding-standard
- Run
npm run csslintorcsslint-fixfor local. - Run
npm run jslintorjslint-fixfor local.
Create package
Package are automaticaly created when branch is merged on master
To create a test package :
- Run
npm run buildto compile scss files - Edit package version in the
package.jsonof 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=nextor--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/uikit-jdd@4.2.0) - Build assets
make assets-build
Workflow
- Create a test package to test in the project
- Merge request in
masterorreleasebranch - Do not merge until the task is tested and validated
- Edit the package version to have the
lastestthat 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
1.0.2-0
2 years ago