Skip to content

Commit

Permalink
Try release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed May 15, 2024
1 parent ccc43d5 commit a30b574
Show file tree
Hide file tree
Showing 7 changed files with 1,453 additions and 22 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"lint": "turbo lint",
"lint:fix": "turbo lint:fix",
"build": "turbo run build",
"release": "turbo release --concurrency=1",
"dev": "turbo run dev",
"test": "turbo run test",
"type-check": "turbo run type-check",
"prettier": "prettier",
"start:prod": "sh ./scripts/build_startbuild.sh",
"prepare": "husky install"
},
"internalPaths": [
"@edw/next-drupal"
],
"workspaces": [
"packages/*"
"packages/next-drupal",
"packages/base",
"packages/drupal"
],
"resolutions": {
"utf-8-validate": "^5.0.2"
Expand Down
1 change: 1 addition & 0 deletions packages/next-drupal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
36 changes: 36 additions & 0 deletions packages/next-drupal/.release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const version = '${version}'
const packageName = process.env.npm_package_name
const scope = packageName.split('/')[1]

module.exports = {
plugins: {
'@release-it/conventional-changelog': {
path: '.',
infile: 'CHANGELOG.md',
preset: 'conventionalcommits',
gitRawCommitsOpts: {
path: '.',
},
},
},
git: {
push: true,
tagName: `${packageName}-v${version}`,
pushRepo: '[email protected]:b12k/monorepo-semantic-release.git',
commitsPath: '.',
commitMessage: `feat(${scope}): released version v${version} [no ci]`,
requireCommits: true,
requireCommitsFail: false,
},
npm: {
publish: false,
versionArgs: ['--workspaces false'],
},
github: {
release: true,
releaseName: `${packageName}-v${version}`,
},
hooks: {
'before:git:release': ['mvm-update', 'git add --all'],
},
}
29 changes: 16 additions & 13 deletions packages/next-drupal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "Generic Design System Components for Eaudeweb websites",
"author": "Tiberiu Ichim",
"license": "GPL",
"main": "src/index.ts",
"types": "src/index.ts",
"main": "dist/src/index.ts",
"types": "dist/types/index.ts",
"scripts": {
"build": "tsc --build",
"release": "release-it --ci",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"generate:component": "turbo gen react-component",
"test": "jest",
"test:write": "jest -u",
"test:watch": "jest --watch",
Expand All @@ -25,41 +26,43 @@
"antd": "^5.16.5",
"classnames": "^2.5.1",
"dom-serializer": "^2.0.0",
"drupal-jsonapi-params": "^2.3.1",
"friendly-challenge": "^0.9.15",
"html-react-parser": "^5.1.10",
"isomorphic-dompurify": "^2.7.0",
"jsona": "^1.12.1",
"lodash": "^4.17.21",
"next": "^13.5.6",
"next-auth": "4.24.7",
"next-drupal": "^1.6.0",
"pdfjs-dist": "3.4.120",
"yup": "^1.4.0",
"drupal-jsonapi-params": "^2.3.1",
"jsona": "^1.12.1",
"ts-pattern": "^5.1.1"
"ts-pattern": "^5.1.1",
"yup": "^1.4.0"
},
"devDependencies": {
"@csstools/postcss-global-data": "^2.1.1",
"@release-it/conventional-changelog": "^8.0.1",
"@testing-library/dom": "^10.0.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^15.0.5",
"@turbo/gen": "^1.13.3",
"@types/lodash": "^4.17.1",
"@types/lodash.chunk": "^4.2.9",
"@types/node": "^20.12.7",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"eslint-config-custom": "workspace:*",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"postcss": "^8.4.38",
"postcss-preset-env": "^9.5.9",
"sass": "^1.75.0",
"typescript": "5.4.5",
"@types/lodash.chunk": "^4.2.9",
"jest-environment-jsdom": "^29.7.0",
"lodash.chunk": "^4.2.0",
"postcss": "^8.4.38",
"postcss-preset-env": "^9.5.9",
"rc-tree-select": "^5.20.0",
"react": "^18.3.1",
"tsconfig": "workspace:*"
"release-it": "^17.2.1",
"sass": "^1.75.0",
"tsconfig": "workspace:*",
"typescript": "5.4.5"
}
}
2 changes: 2 additions & 0 deletions packages/next-drupal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"extends": "tsconfig/react-library.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"declarationDir": "dist",
"paths": {
"@edw/next-drupal": ["./src"],
"@edw/next-drupal/*": ["./src/*"]
Expand Down
4 changes: 3 additions & 1 deletion packages/tsconfig/react-library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"declaration": true,
"declarationMap": true,
"module": "nodenext",
"moduleResolution": "nodenext"
"moduleResolution": "nodenext",
"sourceMap": true,
"noEmit": false
}
}
Loading

0 comments on commit a30b574

Please sign in to comment.