Skip to content

Commit

Permalink
ci: clean up build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Sep 3, 2024
1 parent aa8a9a2 commit 3a54e6c
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 54 deletions.
23 changes: 1 addition & 22 deletions packages/epo-react-lib/.clean-publish
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
{
"packageManager": "yarn",
"tempDir": "tempPublish",
"files": [
"vite.config.ts",
"tsconfig.json",
"tsconfig.node.json",
"jest.config.ts",
"jest-setup.ts",
"babel.config.cjs",
".jest-test-results.json",
".gitignore",
".env.*",
"__mocks__",
".out",
".storybook",
"src",
"storybook-static",
"publish",
"postcss.config.ts",
"release.config.mjs",
".prettierignore"
]
"packageManager": "yarn"
}
3 changes: 1 addition & 2 deletions packages/epo-react-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@
"fix-js": "prettier --write \"**/*.{js,jsx}\" && eslint -c .eslintrc.js \"**/*.{js,jsx,ts,tsx}\" --fix",
"lint-js": "prettier --check \"**/*.{js,jsx}\" & eslint -c .eslintrc.js \"**/*.{js,jsx,ts,tsx}\"",
"prebuild": "rm -fr tempPublish",
"publish-clean": "yarn test && yarn build && clean-publish",
"publish-beta": "yarn build && clean-publish --tag beta",
"publish-local": "yarn build && clean-publish --without-publish",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"build-storybook:production": "yarn build-storybook -o ../../storybook-static",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --max-workers=2",
"test:generate-output": "yarn test --json --outputFile=.jest-test-results.json || true",
"release": "yarn build && semantic-release -e semantic-release-monorepo --debug"
"release": "yarn build && clean-publish --without-publish && semantic-release -e semantic-release-monorepo --debug"
},
"files": [
"CHANGELOG.md",
Expand Down
12 changes: 11 additions & 1 deletion packages/epo-react-lib/release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ const release = {
],
},
],
["@semantic-release/github"],
[
"@semantic-release/github",
{
assets: [
{
path: ["dist/**", "package.json", "README.md"],
name: "epo-react-lib",
},
],
},
],
["@semantic-release/npm"],
],
};
Expand Down
23 changes: 1 addition & 22 deletions packages/epo-widget-lib/.clean-publish
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
{
"packageManager": "yarn",
"tempDir": "tempPublish",
"files": [
"vite.config.ts",
"tsconfig.json",
"tsconfig.node.json",
"jest.config.ts",
"jest-setup.ts",
"babel.config.cjs",
".jest-test-results.json",
".gitignore",
".env.*",
"__mocks__",
".out",
".storybook",
"src",
"storybook-static",
"publish",
"postcss.config.ts",
"release.config.mjs",
".prettierignore"
]
"packageManager": "yarn"
}
38 changes: 38 additions & 0 deletions packages/epo-widget-lib/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# env
.env.*

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*


# testing

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Source
__mocks__
node_modules/
dist/
dist-ssr
*.local
storybook-static/
tempPublish/
public/
src/

.out/*
14 changes: 7 additions & 7 deletions packages/epo-widget-lib/release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const release = {
[
"@semantic-release/github",
{
assets: [{ path: "tempPublish/**", label: "Package" }],
},
],
[
"@semantic-release/npm",
{
pkgRoot: "tempPublish",
assets: [
{
path: ["dist/**", "package.json", "README.md"],
name: "epo-widget-lib",
},
],
},
],
["@semantic-release/npm"],
],
};

Expand Down

0 comments on commit 3a54e6c

Please sign in to comment.