Skip to content

Commit

Permalink
refactor(#72): add justfile & add release commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Rummelsberger committed Feb 21, 2023
1 parent 924173b commit bf4f5cf
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
12 changes: 4 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ install:
# Build tokens then run stencil & storybook in watch mode
dev:
cd {{ tokenFarm }} && npm run build
cd {{ stencil }} && npm run build -- --watch &
npm run storybook -- --watch
cd {{ stencil }} && npm run build -- --watch & npm run storybook -- --watch

update-core integration:
cd {{ integration }} && npm i "@maibornwolff/mwui-stencil@latest"
Expand All @@ -21,17 +20,14 @@ build integration:
cd {{ integration }} && npm run build

publish versionType:
#!/usr/bin/env bash
x=$(release-it {{ versionType }} --release-version)
echo "version" $x
# release-it {{ versionType }} --dry-run
# just publish-integrations {{ versionType }}
release-it {{ versionType }} --dry-run
just publish-integrations {{ versionType }}

publish-integration integration versionType:
just update-core {{ integration }}
just build {{ integration }}

git add . && git commit -m "chore: build integration {{ integration }}"
git add . && git commit -m "chore: build {{ integration }} integration"
cd {{ integration }} && release-it {{ integration }} --dry-run --ci

publish-integrations versionType:
Expand Down
3 changes: 3 additions & 0 deletions mwui-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
"karma-jasmine-html-reporter": "~2.0.0",
"ng-packagr": "^15.1.2",
"typescript": "~4.9.5"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions mwui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@
"node_modules",
"dist"
]
},
"publishConfig": {
"access": "public"
}
}
5 changes: 4 additions & 1 deletion mwui-stencil/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,8 @@
"design",
"system"
],
"author": "Martin Prinz"
"author": "Martin Prinz",
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions mwui-token-farm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
"style-dictionary": "^3.7.0",
"token-transformer": "^0.0.29",
"ts-node": "^10.9.1"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
"typescript": "^4.8.2"
},
"publishConfig": {
"access": "public"
},
"license": "MIT"
}

0 comments on commit bf4f5cf

Please sign in to comment.