forked from washingtonpost/wpds-ui-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (38 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
experimental-version:
npx lerna version prerelease --force-publish --preid=alpha --sign-git-tag=alpha
experimental-publish:
npx lerna publish from-package --dist-tag alpha
main-publish:
npx lerna publish from-package --yes --no-git-reset --no-verify-access
main-version:
npx lerna version --conventional-commits --yes --force-publish --create-release github
# create experimental release
experimental-release:
make experimental-version
npm run turbo:build:force
make experimental-publish
# checkout any uncommitted changes
boop-checkout:
git checkout .
# create main release
main-release:
make main-version
npm run turbo:build:ui:force
make boop-checkout
make main-publish
npm install
npm run format
# create commands for plop templates
new-component:
npx plop --plopfile ./scripts/componentPlopfile.js
new-component-with-subcomponents:
npx plop --plopfile ./scripts/componentWithSubcomponentsPlopfile.js
validate:
npm run lint:check
npm run format:check
npm run test
v2-migrate-component:
node scripts/move-component-to-new-dir.js $(componentName)
npx storybook@latest migrate csf-2-to-3 --glob="./packages/kit/src/$(componentName)/*.stories.tsx"
npx jscodeshift ./packages/kit/src/$(componentName) -t ./scripts/transform-wpds-imports.js --extensions=tsx
npx react-codemod update-react-imports ./packages/kit/src