From f001bd421a7f9b0f28303db5b3382a04bd202b9e Mon Sep 17 00:00:00 2001 From: "BFT\\a.rogalskii" Date: Sat, 3 Jul 2021 09:57:21 +0300 Subject: [PATCH] Added info on workflows Updates on github-actions --- lerna.json | 3 +++ package.json | 12 +++++++----- plopfile.js | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 plopfile.js diff --git a/lerna.json b/lerna.json index a74c1d53..085c16a6 100644 --- a/lerna.json +++ b/lerna.json @@ -12,9 +12,12 @@ }, "publish": { "npmClient": "npm", + "bump": "patch", + "conventionalCommits": true, "forcePublish": true, "skipGit": true, "allowBranch": ["main", "master"], + "message": "chore(release): 🤖 publish package", "registry": "https://registry.npmjs.org/" }, "version": { diff --git a/package.json b/package.json index 9f3f3d7c..9f11649b 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "semantic-release": "semantic-release", "gitlog": "node ./scripts/changelog.js", "ls": "git ls-files", + "plop": "plop", "lerna:deps": "lerna bootstrap && lerna run --parallel --stream deps", "lerna:build": "lerna bootstrap && lerna run --parallel --stream all", "lerna:test": "lerna bootstrap && lerna run --parallel --stream test:all", @@ -73,18 +74,15 @@ "eslint-plugin-unicorn": "^33.0.1", "husky": "^5.0.8", "jest": "^27.0.4", - "jest-cli": "27.0.4", "jest-circus": "^27.0.4", + "jest-cli": "27.0.4", "jest-emotion": "^11.0.0", "jsonlint": "^1.6.3", "lerna": "^2.2.0", "license-checker": "^25.0.1", "lint-staged": "^10.1.6", "markdown-link-check": "^3.8.6", - "stylelint": "~13.13.1", - "stylelint-config-standard": "~22.0.0", - "stylelint-order": "^4.0.0", - "stylelint-scss": "^3.18.0", + "plop": "^2.7.4", "prettier": "^2.1.2", "pretty-quick": "^3.1.0", "remark-cli": "^9.0.0", @@ -93,6 +91,10 @@ "remark-preset-davidtheclark": "^0.12.0", "remark-validate-links": "^10.0.2", "semantic-release": ">=17.2.3", + "stylelint": "~13.13.1", + "stylelint-config-standard": "~22.0.0", + "stylelint-order": "^4.0.0", + "stylelint-scss": "^3.18.0", "ts-jest": "^27.0.2", "ts-node": ">=9.0.0", "typescript": "^4.1.3", diff --git a/plopfile.js b/plopfile.js new file mode 100644 index 00000000..39d636b4 --- /dev/null +++ b/plopfile.js @@ -0,0 +1,50 @@ +module.exports = function (plop) { + // Add new js trigger + plop.setGenerator(`js-trigger`, { + description: `This sets up the basic files for a new package.`, + prompts: [ + { + type: `input`, + name: `name`, + message: `name of new package`, + }, + { + type: `input`, + name: `author`, + message: `Your name/email for putting in the package.json of the new package`, + }, + ], + actions: (data) => [ + { + type: `addMany`, + destination: `packages/actionsflow-trigger-{{snakeCase name}}`, + templateFiles: "**/*", + base: `plop-templates/js-trigger`, + }, + ], + }); + // Add new js trigger + plop.setGenerator(`ts-trigger`, { + description: `This sets up the basic files for a new package.`, + prompts: [ + { + type: `input`, + name: `name`, + message: `name of new package`, + }, + { + type: `input`, + name: `author`, + message: `Your name/email for putting in the package.json of the new package`, + }, + ], + actions: (data) => [ + { + type: `addMany`, + destination: `packages/actionsflow-trigger-{{snakeCase name}}`, + templateFiles: "**/*", + base: `plop-templates/ts-trigger`, + }, + ], + }); +};