diff --git a/.cspell.json b/.cspell.json index 9767be1..d52b788 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json", - "version": "0.1", + "version": "0.2", "language": "en", "allowCompoundWords": true, "words": [ diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 8d10af2..0301a18 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -11,21 +11,10 @@ jobs: uses: actions/checkout@v2 - name: Use Node.js 14.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '14' - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2.1.3 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: 'yarn' - run: yarn - run: yarn build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09fc653..9cd4462 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,21 +12,10 @@ jobs: uses: actions/checkout@v2 - name: Use Node.js 14.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '14' - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2.1.3 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: 'yarn' - run: yarn --frozen-lockfile - run: yarn build diff --git a/.gitignore b/.gitignore index fa930af..78ebc1a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* +.pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json @@ -54,6 +55,9 @@ web_modules/ # Optional eslint cache .eslintcache +# Optional stylelint cache +.stylelintcache + # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ @@ -69,10 +73,14 @@ web_modules/ # Yarn Integrity file .yarn-integrity -# dotenv environment variables file +# dotenv environment variable files .env .env.build .env.test +.env.development.local +.env.test.local +.env.production.local +.env.local # parcel-bundler cache (https://parceljs.org/) .cache @@ -95,6 +103,13 @@ dist # vuepress build output .vuepress/dist +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + # Serverless directories .serverless/ diff --git a/.prettierignore b/.prettierignore index 54e454f..2d7f8e0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -41,6 +41,7 @@ logs *.log # Linter +.browserslistrc .editorconfig .eslintignore .markdownlintignore diff --git a/.releaserc b/.releaserc index 62a0c03..2f5138f 100644 --- a/.releaserc +++ b/.releaserc @@ -1,11 +1,62 @@ { "branches": ["master", "next"], "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", + [ + "@semantic-release/commit-analyzer", + { + "preset": "angular", + "releaseRules": [ + { "type": "docs", "release": "patch" }, + { "type": "build", "scope": "deps", "release": "minor" }, + { "type": "refactor", "release": "patch" }, + { "type": "style", "release": "patch" } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { "type": "feat", "section": "Features" }, + { "type": "feature", "section": "Features" }, + { "type": "fix", "section": "Bug Fixes" }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { "type": "revert", "section": "Reverts" }, + { + "type": "docs", + "section": "Documentation", + "hidden": true + }, + { + "type": "style", + "section": "Styles", + "hidden": true + }, + { + "type": "chore", + "section": "Miscellaneous Chores", + "hidden": true + }, + { "type": "refactor", "section": "Code Refactoring" }, + { "type": "test", "section": "Tests", "hidden": true }, + { + "type": "build", + "section": "Build System", + "hidden": true + }, + { "type": "ci", "section": "CI", "hidden": true } + ] + } + } + ], [ "@semantic-release/changelog", - { "changelogTitle": "# Typescript Library Changelog." } + { "changelogTitle": "# `@culur/prettier-config` changelog." } ], [ "@semantic-release/exec", diff --git a/CHANGELOG.md b/CHANGELOG.md index 879124f..c083989 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Typescript Library Changelog. +# `@culur/prettier-config` changelog. # [0.2.0](https://github.com/culur/prettier-config/compare/v0.1.0...v0.2.0) (2021-06-22) diff --git a/README.md b/README.md index c7b44c3..eea67d7 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,19 @@ copy "node_modules\@culur\prettier-config\.prettierignore" ".prettierignore" It will copy the `.prettierignore` from `@culur/prettier-config` to your project root folder. +### Scripts + +Some commonly used scripts in `package.json`. + +```json +{ + "scripts": { + "fix:prettier": "prettier ** --write", + "test:prettier": "prettier ** --list-different" + } +} +``` + ## Related - [Prettier](https://github.com/prettier/prettier) - an opinionated code formatter.