diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 00000000..e5b6d8d6 --- /dev/null +++ b/.changeset/README.md @@ -0,0 +1,8 @@ +# Changesets + +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets) + +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 00000000..ce8ca275 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "linked": [], + "access": "restricted", + "baseBranch": "master", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/actions/pnpm/action.yml b/.github/actions/pnpm/action.yml new file mode 100644 index 00000000..9df5db70 --- /dev/null +++ b/.github/actions/pnpm/action.yml @@ -0,0 +1,34 @@ +# From https://github.com/remirror/template/blob/4f8c5f5629a081217672a8cce1df085510f43913/.github/actions/pnpm/action.yml +name: 'pnpm installation' +description: 'Install and audit dependencies for pnpm' + +inputs: + cache: # id of input + description: 'The location of the pnpm cache' + required: true + default: '.pnpm-store' + version: # id of input + description: 'The version to use' + required: false + default: 6.10.0 + +runs: + using: 'composite' + steps: + - name: install pnpm + run: npm install pnpm@${{ inputs.version }} -g + shell: bash + + - name: setup pnpm config + run: pnpm config set store-dir ${{ inputs.cache }} + shell: bash + + - name: install dependencies + run: pnpm install + shell: bash + +## Usage +# - name: install and audit +# uses: ./.github/actions/pnpm +# with: +# cache: ${{ env.PNPM_CACHE_FOLDER }} diff --git a/.husky/pre-commit b/.husky/pre-commit index 1caa63a0..a4713192 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -4,9 +4,10 @@ npm run lint:staged npm run all npm run changelog +npm run changeset version git add api/ git add core/ git add **/README.md -git add CHANGELOG.md +git add **/CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 99b689ac..a82954b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.0.2 (2021-08-12) +## 0.0.2 (2021-08-13) ### Features diff --git a/api/alieza/CHANGELOG.md b/api/alieza/CHANGELOG.md new file mode 100644 index 00000000..5d86d0cc --- /dev/null +++ b/api/alieza/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/alieza + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/alieza/package.json b/api/alieza/package.json index e965577d..02ad77ec 100644 --- a/api/alieza/package.json +++ b/api/alieza/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/alieza", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Alieza design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -44,7 +44,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20" }, diff --git a/api/caillen/CHANGELOG.md b/api/caillen/CHANGELOG.md new file mode 100644 index 00000000..6548813a --- /dev/null +++ b/api/caillen/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/caillen + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/caillen/package.json b/api/caillen/package.json index 422781cb..ff713d3b 100644 --- a/api/caillen/package.json +++ b/api/caillen/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/caillen", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Caillen design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -49,7 +49,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap && npm run build:css" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20", "rollup": "^2.45.2" diff --git a/api/cenobie/CHANGELOG.md b/api/cenobie/CHANGELOG.md new file mode 100644 index 00000000..a550d63c --- /dev/null +++ b/api/cenobie/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/cenobie + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/cenobie/package.json b/api/cenobie/package.json index 5b9be186..b1e90bd0 100644 --- a/api/cenobie/package.json +++ b/api/cenobie/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/cenobie", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Cenobie design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -49,7 +49,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap && npm run build:css" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20", "rollup": "^2.45.2" diff --git a/api/domino/CHANGELOG.md b/api/domino/CHANGELOG.md new file mode 100644 index 00000000..66465fe2 --- /dev/null +++ b/api/domino/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/domino + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/domino/package.json b/api/domino/package.json index 715ec975..f588d357 100644 --- a/api/domino/package.json +++ b/api/domino/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/domino", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Domino design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -49,7 +49,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap && npm run build:css" }, "dependencies": { - "@weather-time/core": "0.0.1", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20", "rollup": "^2.45.2" diff --git a/api/jaydin/CHANGELOG.md b/api/jaydin/CHANGELOG.md new file mode 100644 index 00000000..64537f9c --- /dev/null +++ b/api/jaydin/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/jaydin + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/jaydin/package.json b/api/jaydin/package.json index 4387b9e0..414fac16 100644 --- a/api/jaydin/package.json +++ b/api/jaydin/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/jaydin", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Jaydin design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -49,7 +49,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap && npm run build:css" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20", "rollup": "^2.45.2" diff --git a/api/kilan/CHANGELOG.md b/api/kilan/CHANGELOG.md new file mode 100644 index 00000000..d7a1bd68 --- /dev/null +++ b/api/kilan/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/kilan + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/kilan/package.json b/api/kilan/package.json index 1e3aea5e..3ef5ea7b 100644 --- a/api/kilan/package.json +++ b/api/kilan/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/kilan", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Kilan design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -44,7 +44,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20" }, diff --git a/api/norene/CHANGELOG.md b/api/norene/CHANGELOG.md new file mode 100644 index 00000000..5928210b --- /dev/null +++ b/api/norene/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/norene + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/norene/package.json b/api/norene/package.json index 9428ca50..26e6c3c9 100644 --- a/api/norene/package.json +++ b/api/norene/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/norene", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Norene design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -49,7 +49,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap && npm run build:css" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20", "rollup": "^2.45.2" diff --git a/api/ocie/CHANGELOG.md b/api/ocie/CHANGELOG.md new file mode 100644 index 00000000..c8bd8525 --- /dev/null +++ b/api/ocie/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/ocie + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/ocie/package.json b/api/ocie/package.json index 66750501..f3ed1471 100644 --- a/api/ocie/package.json +++ b/api/ocie/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/ocie", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Ocie design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -49,7 +49,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap && npm run build:css" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20", "rollup": "^2.45.2" diff --git a/api/shaena/CHANGELOG.md b/api/shaena/CHANGELOG.md new file mode 100644 index 00000000..a7a6e317 --- /dev/null +++ b/api/shaena/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/shaena + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/shaena/package.json b/api/shaena/package.json index 2a27f18d..30428c05 100644 --- a/api/shaena/package.json +++ b/api/shaena/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/shaena", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Shaena design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -44,7 +44,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20" }, diff --git a/api/unity/CHANGELOG.md b/api/unity/CHANGELOG.md new file mode 100644 index 00000000..df777875 --- /dev/null +++ b/api/unity/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/unity + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/unity/package.json b/api/unity/package.json index 581c7e19..f3fb7bd9 100644 --- a/api/unity/package.json +++ b/api/unity/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/unity", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Unity design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -44,7 +44,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20" }, diff --git a/api/zylla/CHANGELOG.md b/api/zylla/CHANGELOG.md new file mode 100644 index 00000000..5fde747f --- /dev/null +++ b/api/zylla/CHANGELOG.md @@ -0,0 +1,8 @@ +# @weather-time/zylla + +## 1.0.0 + +### Major Changes + +- Initial weather-sprites monorepo release +- Updates on project dependencies diff --git a/api/zylla/package.json b/api/zylla/package.json index d7c1ec92..440d16d2 100644 --- a/api/zylla/package.json +++ b/api/zylla/package.json @@ -1,6 +1,6 @@ { "name": "@weather-time/zylla", - "version": "0.0.0", + "version": "1.0.0", "description": "Styled Weather sprites (Zylla design)", "license": "GPL-3.0", "main": "dist/index.js", @@ -47,7 +47,7 @@ "all": "npm run format:all && npm run lint:all && npm run pretty && npm run bootstrap" }, "dependencies": { - "@weather-time/core": "0.0.2", + "@weather-time/core": "^0.0.2", "env-cmd": "^10.1.0", "lodash": "^4.17.20", "rollup": "^2.45.2" diff --git a/lerna.json b/lerna.json index 04ca214a..a3faeda9 100644 --- a/lerna.json +++ b/lerna.json @@ -26,5 +26,6 @@ "exact": true, "message": "chore(release): publish" } - } + }, + "ignoreChanges": ["**/CHANGELOG.md", "**/tests/**", "lerna.json", "package.json", "README.md"] } diff --git a/package.json b/package.json index 863779ec..f7f12ba5 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,9 @@ "lint:staged": "lint-staged --no-stash --allow-empty", "lint:style": "stylelint api/**/styles.css --config .stylelintrc.json --fix", "validate:commit": "validate-commit-msg", + "changeset": "changeset", + "changeset:publish": "changeset publish", + "syncpack": "syncpack list-mismatches", "pretty": "pretty-quick --staged --pattern '!test/tests/lint/**'", "license:report": "yarn licenses list > license_report.txt", "yarn-check": "yarn check --integrity || (echo '=> Please run `$ yarn bootstrap`' && exit 1)", @@ -31,6 +34,9 @@ "commit": "npx git-cz", "cm": "npm run commit --", "cz": "npm run commit --", + "update:deps": "npm update -i -r --latest", + "preinstall": "only-allow npm", + "setup": "npm install", "lerna:deps": "npm run bootstrap && lerna run --parallel --stream deps", "lerna:build": "npm run bootstrap && lerna run --parallel --stream all", "lerna:test": "npm run bootstrap && lerna run --parallel --stream test:all", @@ -58,6 +64,8 @@ "lodash": "^4.17.20" }, "devDependencies": { + "@changesets/changelog-github": "^0.4.0", + "@changesets/cli": "^2.16.0", "@commitlint/cli": "^12.1.4", "@commitlint/config-conventional": "^12.1.4", "@commitlint/config-lerna-scopes": "^12.1.4", @@ -97,6 +105,7 @@ "license-checker": "^25.0.1", "lint-staged": "^10.1.6", "markdown-link-check": "^3.8.6", + "only-allow": "^1.0.0", "plop": "^2.7.4", "prettier": "^2.1.2", "pretty-quick": "^3.1.0", @@ -114,9 +123,10 @@ "stylelint-prettier": "^1.2.0", "stylelint-scss": "^3.18.0", "stylelint-selector-bem-pattern": "^2.1.0", + "syncpack": "^5.8.15", "ts-jest": "^27.0.2", "ts-node": ">=9.0.0", - "typescript": "^4.1.3", + "typescript": "^4.2.3", "validate-commit-msg": "^2.14.0" }, "repository": {