-
Notifications
You must be signed in to change notification settings - Fork 2.1k
IN-4062 Consolidate engineering-toolkit #7107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
4965e4b
chore(repository setup): repo setup
maciejrybaniec d025d88
chore(circular deps action): dpdm action
maciejrybaniec 599b47a
chore(update actions dir): update dir
maciejrybaniec d7374d8
chore(move action file): action file move
maciejrybaniec b3a32fc
chore(additional eslint rules): configured additional eslint rules
maciejrybaniec d60ab88
chore: 🤖 enhance eslint config
maciejrybaniec ea3e5e3
docs: ✏️ update docs for npm packages
maciejrybaniec 3f294df
chore: 🤖 eslint config update
maciejrybaniec 69e4f9d
Delete .DS_Store
maciejrybaniec 068c60c
Delete .DS_Store
maciejrybaniec cfb42a7
feat: 🎸 eslint rules for vue and react
maciejrybaniec b92145e
Merge branch 'main' of github.com:vuestorefront/engineering-toolkit
maciejrybaniec d0b16ef
feat: 🎸 prettier eslint + json eslint
maciejrybaniec 8d7b3d5
fix: 🐛 eslint rules fixes
maciejrybaniec c58f92b
chore: 🤖 test github workflow
maciejrybaniec 57b991e
chore: 🤖 gh action test
maciejrybaniec e1ea8e5
chore: 🤖 fix dpdm
maciejrybaniec fdbb75e
fix: 🐛 dependency circular
maciejrybaniec 8035fea
chore: 🤖 log info
maciejrybaniec 04c8ad8
chore: 🤖 action
maciejrybaniec e3eebc1
chore: 🤖 test github action
maciejrybaniec c9e5d79
chore: 🤖 github actions
maciejrybaniec e8e4cbf
chore: 🤖 deps licenses checker action
maciejrybaniec 2cbd9e3
chore: 🤖 fix process cwd path
maciejrybaniec cc1dfc5
chore: 🤖 add param to license check
maciejrybaniec e37f8eb
chore: 🤖 check licenses
maciejrybaniec 7ca9bf8
chore: 🤖 check licenses
maciejrybaniec d4c94be
chore: 🤖 summary format
maciejrybaniec 1a9e6ea
chore: 🤖 update license checker
maciejrybaniec 6d4a789
docs: ✏️ update readme file
maciejrybaniec 37ccac2
chore: 🤖 github action circular deps
maciejrybaniec d0cc101
chore: 🤖 warning instead of error
maciejrybaniec e5e66a4
chore: 🤖 update licenses
maciejrybaniec 71607cd
feat: 🎸 update allowed licenses
maciejrybaniec 9e20bbe
feat: 🎸 update license checker
maciejrybaniec 9e34493
feat: 🎸 change license checker
maciejrybaniec 0720267
docs: ✏️ Update docs for GH Actions
maciejrybaniec f681abd
Merge pull request #1 from vuestorefront/docs/gh-actions
maciejrybaniec b3881fe
chore: 🤖 configure repository tools
maciejrybaniec a628ef5
docs: ✏️ update readme
maciejrybaniec e5dad8d
Add WTFPL to licenses
WojtekTheWebDev 0270caa
Merge pull request #2 from vuestorefront/feat/add-WTFPL-license
maciejrybaniec d93b736
feat: 🎸 build license-checker
maciejrybaniec 1f12174
chore: 🤖 update .gitignore
maciejrybaniec 3699014
chore: 🤖 update build
maciejrybaniec cd9e47a
chore: 🤖 build
maciejrybaniec 243851f
docs(eslint): new eslint config depends on prettier peerDependency
sethidden cd1b26a
Merge pull request #6 from vuestorefront/sethidden-patch-1
sethidden aa995ab
feat: add rollup config package (#7)
WojtekTheWebDev 69d6471
chore: update rollup-config package setup
WojtekTheWebDev 4b7415d
feat: add GPL-2.0 license (#9)
WojtekTheWebDev 69f241d
chore: build check-licenses (#10)
WojtekTheWebDev b9e671e
feat: add integrations team packages (#8)
WojtekTheWebDev ff17909
chore: remove gpl license from allowed list
WojtekTheWebDev 36f0b34
ci!: remove gpl license from allowed list
sethidden a9cf301
feat: eslint for integrations (#13)
WojtekTheWebDev d3b72c5
feat: integrations-eslint consisten return warn
WojtekTheWebDev ccf44b4
feat: integrations-eslint default param last warn
WojtekTheWebDev 6be22db
chore: integrations-eslint disable no-return-await
WojtekTheWebDev d6f2fa0
fix: off instead of none
WojtekTheWebDev ac2cd8a
chore: integrations-eslint no-throw-literal
WojtekTheWebDev 60c1081
feat: add eslint-config vue3
Szymon-dziewonski 9f952cd
Merge pull request #14 from vuestorefront/feat--add-vue3-eslint-config
Szymon-dziewonski 640ca68
chore: update prettier-config
Szymon-dziewonski 7f7e45d
Merge pull request #15 from vuestorefront/chore--update-prettier-config
Szymon-dziewonski b924d45
chore: no-explicit-any off in integrations eslint
WojtekTheWebDev a39a369
chore: bump version
WojtekTheWebDev e9b2721
chore: bump version
WojtekTheWebDev a98b80d
chore: eslint-config version bump
WojtekTheWebDev 9751500
chore(eslint-config): add missing src files for package exports
lukasborawski 086d438
edit readme to add solution to a problem that I've come across
sethidden 0a03963
chore: update integrations eslint rules
WojtekTheWebDev 242fed9
chore: update integrations eslint rules
WojtekTheWebDev 32808cc
chore: update integrations eslint rules - no empty and dynamic requires
WojtekTheWebDev 0c86a6e
chore: update integrations eslint rules - no var requires
WojtekTheWebDev 6bdb451
chore: update rollup config package 0.0.2 -> 0.0.3
mirouse a95cea9
Merge pull request #17 from vuestorefront/chore/update-rollup-config-…
bartoszherba 7940c24
add rules from magento migration
sethidden a342191
bump version (#18)
sethidden 325a171
chore: change target to es2020 for integrations (#19)
WojtekTheWebDev b47520c
warn instead of error on ban-types
sethidden 2adad81
refactor: removed engines limiting
Fifciu 6c384a3
Merge pull request #22 from vuestorefront/refactor/removed-engines-li…
Fifciu 392a658
fix: prepublishOnly script
Fifciu 7534562
Merge pull request #23 from vuestorefront/fix/prepublish-only
Fifciu 43ff5f8
Temporarily ignore qrcode-terminal due to wrong SPDX id
sethidden 63e1194
Add changesets (#26)
sethidden 23bdd05
add node-version so that CD action can run (#27)
sethidden e8ab2a2
chore(in-3337): turn off rules related to await and for loops (#28)
lsliwaradioluz 40c0a67
ci: release (#29)
github-actions[bot] 4748e03
fix: possible to use typescript constructor assignement
Fifciu a1c8132
chore: added changeset
Fifciu 0b946db
Merge pull request #30 from vuestorefront/fix/no-useless-constructor-…
Fifciu ba06b77
Add CODEOWNERS (#32)
sethidden 437a83d
ci: release
github-actions[bot] 9a45c4c
Merge pull request #31 from vuestorefront/changeset-release/main
Fifciu c0bf079
fix: unlocked TypeScript class methods overloading
Fifciu 932dafa
chore: added changelog
Fifciu f98e8c3
Merge pull request #33 from vuestorefront/Fifciu-patch-1
Fifciu c6628f1
ci: release
github-actions[bot] 2e6848d
Merge pull request #34 from vuestorefront/changeset-release/main
Fifciu 29262bd
IN-3365 Generate server/index.d.t.s \w typedefs for index.server.ts (…
sethidden c86767f
chore: add changeset (#37)
WojtekTheWebDev 4969778
ci: release (#38)
github-actions[bot] 185d1d5
feat: update husky pre-commit script to include ggshield (#39)
mwisniewskiVSF 4df936f
Add type declaration file to jest config (#40)
WojtekTheWebDev df042e0
ci: release (#41)
github-actions[bot] e0119d1
fix: issue with unexpected token on json files (#42)
WojtekTheWebDev f8cd8bb
ci: release (#43)
github-actions[bot] 3ef25da
Update README.MD
skirianov 0934374
Alokai refactor (#44)
Olbix b6b96c0
Use Node 20 to run our actions
sethidden 5d063a4
Add api-extractor and api-documented to dependencies (#45)
WojtekTheWebDev adc9638
ci: release (#46)
github-actions[bot] fabe87c
Warn on no-empty-interface-rule (#47)
WojtekTheWebDev 554dd05
ci: release (#48)
github-actions[bot] 2dd2bd7
Merge vuestorefront/engineering-toolkit into vuestorefront/vue-storef…
sethidden 91fecce
Move packages from engineering-toolkit folder to root
sethidden dcbbbb7
Update homepage URLs
sethidden cd5706b
Use a license-checker version that builds on Node 16
sethidden f3e2549
Remove eslint-plugin-no-unsanitized
sethidden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@vue-storefront/eslint-config": patch | ||
| --- | ||
|
|
||
| [REMOVED] Plugin "eslint-plugin-no-unsanitized" was removed due to a license that was noncompliant with our Open Source Guidelines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "*{.js,.ts}": ["eslint"] | ||
| "*{.js,.ts}": ["eslint --fix"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| This folder contains GitHub Actions commonly used in some of our repositories. | ||
|
|
||
| You can use them in your workflows as such: | ||
|
|
||
| ```yaml | ||
| - name: Check licenses 🧪 | ||
| uses: vuestorefront/vue-storefront/actions/check-licenses@main | ||
| with: | ||
| projectPath: ${{ github.workspace }} | ||
| ``` | ||
| If you're looking for Alokai code meant for users (you), see the `packages/*` folder | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| lib | ||
| dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| extends: ["@vue-storefront/eslint-config"], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Ignore artifacts: | ||
| build | ||
| dist | ||
| lib | ||
| coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # @vue-storefront/check-licenses | ||
|
|
||
| > This action analyses software licenses for used dependencies in the project | ||
|
|
||
|
|
||
| ## Inputs | ||
|
|
||
| ### `projectPath` | ||
|
|
||
| **Required** The path to the project root directory | ||
|
|
||
| ## Example usage | ||
|
|
||
| ```yaml | ||
| uses: vuestorefront/vue-storefront/actions/check-licenses@main | ||
| with: | ||
| projectPath: ${{ github.workspace }} | ||
| ``` | ||
|
|
||
| ### Deployment | ||
|
|
||
| 1. Run `build` command to create GitHub actions distribution | ||
| 2. Update `package.json` version property | ||
| 3. Commit `dist` directory | ||
| 4. Create Git tag and push changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: Check licenses | ||
| description: Analyses software licenses of dependencies used in the project | ||
| inputs: | ||
| projectPath: | ||
| description: The path to the project root directory | ||
| required: true | ||
| runs: | ||
| using: "node20" | ||
| main: "dist/index.js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default { | ||
| "*.{js,ts}": ["eslint --fix", "prettier --write"], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "name": "@vue-storefront/check-licenses", | ||
| "version": "1.0.7", | ||
| "private": true, | ||
| "homepage": "https://github.com/vuestorefront/vue-storefront/actions/check-licenses", | ||
| "main": "lib/index.js", | ||
| "prettier": "@vue-storefront/prettier-config", | ||
| "contributors": [ | ||
| { | ||
| "name": "Maciej Rybaniec", | ||
| "email": "mrybaniec@vuestorefront.io" | ||
| } | ||
| ], | ||
| "scripts": { | ||
| "format": "prettier --write .", | ||
| "package": "ncc build --license licenses.txt --no-source-map-register", | ||
| "compile": "tsc", | ||
| "lint": "eslint --fix .", | ||
| "build": "yarn compile && yarn package" | ||
| }, | ||
| "keywords": [ | ||
| "license-checker" | ||
| ], | ||
| "dependencies": { | ||
| "@actions/core": "^1.10.0", | ||
| "@actions/github": "^5.1.1", | ||
| "license-checker-rseidelsohn": "^3.3.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@vercel/ncc": "^0.36.1" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /* eslint-disable unicorn/prefer-top-level-await */ | ||
| import * as core from '@actions/core'; | ||
| import checker from 'license-checker-rseidelsohn'; | ||
|
|
||
| import { ALLOWED_LICENSES } from './licenses'; | ||
| import { EXCLUDE_NPM_PACKAGES } from './npmPackages'; | ||
|
|
||
| async function run(): Promise<void> { | ||
| const projectPath = core.getInput('projectPath'); | ||
| try { | ||
| core.info(`Checking licenses: --projectPath ${projectPath}`); | ||
| checker.init( | ||
| { | ||
| start: projectPath, | ||
| summary: true, | ||
| excludePackagesStartingWith: EXCLUDE_NPM_PACKAGES.join(';'), | ||
| onlyAllow: ALLOWED_LICENSES.join(';'), | ||
| }, | ||
| (error, packages) => { | ||
| // @ts-expect-error: the library definition is wrong | ||
| core.info(checker.asSummary(packages)); | ||
| if (error) { | ||
| core.setFailed(error.message); | ||
| } | ||
| }, | ||
| ); | ||
| } catch (error) { | ||
| core.setFailed(error.message); | ||
| } | ||
| } | ||
|
|
||
| run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| export const ALLOWED_LICENSES = [ | ||
| 'Artistic-2.0', | ||
| 'Apache-2.0', | ||
| // https://github.com/gtanner/qrcode-terminal/pull/45#issuecomment-1661985667 | ||
| // Invalid non-SPDX identifier used by qrcode-terminal | ||
| 'Apache 2.0', | ||
| 'BSD-2-Clause', | ||
| 'BSD-3-Clause', | ||
| 'BSD*', | ||
| 'Boost', | ||
| 'BlueOak-1.0.0', | ||
| 'CC-BY-3.0', | ||
| 'CC0-1.0', | ||
| 'CNRI', | ||
| 'Custom: http://www.commonjs.org/', | ||
| 'Custom: https://docs.vuestorefront.io/', | ||
| 'Custom: https://nuxtjs.org', | ||
| 'CC-BY-4.0', | ||
| 'ISC', | ||
| 'MIT', | ||
| 'Miros', | ||
| 'Multics', | ||
| 'Naumen', | ||
| 'NTP', | ||
| 'UNKNOWN', | ||
| 'Unicode', | ||
| 'Unlicense', | ||
| 'UNLICENSED', | ||
| 'Universal', | ||
| 'Lucent', | ||
| 'LGPL-3.0', | ||
| 'Open', | ||
| '0BSD', | ||
| 'OBSD', | ||
| 'PostgreSQ', | ||
| 'Public Domain', | ||
| 'Python-2.0', | ||
| 'Zope', | ||
| 'WTFPL', | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const EXCLUDE_NPM_PACKAGES = ['webpack', '@types', '@babel', 'k6']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/tsconfig", | ||
| "compilerOptions": { | ||
| "target": "esnext", | ||
| "module": "commonjs", | ||
| "outDir": "./lib", | ||
| "rootDir": "./src", | ||
| "noImplicitAny": true, | ||
| "esModuleInterop": true | ||
| }, | ||
| "exclude": ["node_modules", "**/*.test.ts"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| lib | ||
| dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| extends: ["@vue-storefront/eslint-config"], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Ignore artifacts: | ||
| build | ||
| dist | ||
| lib | ||
| coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # @vue-storefront/circular-dependencies | ||
|
|
||
| > This action detects circular dependencies in the project | ||
|
|
||
| ## Inputs | ||
|
|
||
| ### `filesPath` | ||
|
|
||
| **Required** The path to project files that will be used during analysis | ||
|
|
||
| ## Example usage | ||
|
|
||
| ```yaml | ||
| uses: vuestorefront/vue-storefront/actions/circular-dependencies@main | ||
| with: | ||
| filesPath: 'packages/**/*.{ts,vue}' | ||
| ``` | ||
|
|
||
| ### Deployment | ||
|
|
||
| 1. Run `build` command to create GitHub actions distribution | ||
| 2. Update `package.json` version property | ||
| 3. Commit `dist` directory | ||
| 4. Create Git tag and push changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: Circular dependencies | ||
| description: Static circular dependency analyzer | ||
| inputs: | ||
| filesPath: | ||
| description: The path to project files that will be used during analysis | ||
| required: true | ||
| runs: | ||
| using: "node20" | ||
| main: "dist/index.js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default { | ||
| "*.{js,ts}": ["eslint --fix", "prettier --write"], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "name": "@vue-storefront/circular-dependencies", | ||
| "version": "1.0.6", | ||
| "private": true, | ||
| "homepage": "https://github.com/vuestorefront/vue-storefront/actions/circular-dependencies", | ||
| "main": "lib/index.js", | ||
| "prettier": "@vue-storefront/prettier-config", | ||
| "contributors": [ | ||
| { | ||
| "name": "Maciej Rybaniec", | ||
| "email": "mrybaniec@vuestorefront.io" | ||
| } | ||
| ], | ||
| "scripts": { | ||
| "format": "prettier --write .", | ||
| "package": "ncc build --license licenses.txt --no-source-map-register", | ||
| "compile": "tsc", | ||
| "lint": "eslint --fix .", | ||
| "build": "yarn compile && yarn package" | ||
| }, | ||
| "keywords": [ | ||
| "circular-dependency", | ||
| "dpdm" | ||
| ], | ||
| "dependencies": { | ||
| "@actions/core": "^1.10.0", | ||
| "@actions/github": "^5.1.1", | ||
| "dpdm": "^3.13.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@vercel/ncc": "^0.36.1", | ||
| "typescript": "^5.0.3" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /* eslint-disable unicorn/prefer-top-level-await */ | ||
| import * as core from '@actions/core'; | ||
| import { parseDependencyTree, parseCircular, prettyCircular } from 'dpdm'; | ||
|
|
||
| async function run(): Promise<void> { | ||
| try { | ||
| const filesPath = core.getInput('filesPath'); | ||
| const tree = await parseDependencyTree(filesPath, {}); | ||
| const circulars = parseCircular(tree); | ||
|
|
||
| if (circulars.length > 0) { | ||
| core.warning(`Detected ${circulars.length} circular dependencies between the files`); | ||
| core.info(prettyCircular(circulars)); | ||
| } else { | ||
| core.info('No circular dependencies'); | ||
| } | ||
| } catch (error) { | ||
| core.setFailed(error.message); | ||
| } | ||
| } | ||
|
|
||
| run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/tsconfig", | ||
| "compilerOptions": { | ||
| "target": "esnext", | ||
| "module": "commonjs", | ||
| "outDir": "./lib", | ||
| "rootDir": "./src", | ||
| "noImplicitAny": true, | ||
| "esModuleInterop": true | ||
| }, | ||
| "exclude": ["node_modules", "**/*.test.ts"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| This folder contains configuration for tools commonly used across our repositories. If you're looking for Alokai code meant for users (you), see the `packages/*` folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # @vue-storefront/api-extractor-config | ||
|
|
||
| ## 0.0.5 | ||
|
|
||
| ### Patch Changes | ||
|
|
||
| - d606385: Add api-documenter and api-extrator to dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # @vue-storefront/api-extractor-config | ||
|
|
||
| > Common API Extractor configuration for Alokai Integrations | ||
|
|
||
| ## Usage | ||
|
|
||
| ### Install | ||
|
|
||
| ```bash | ||
| yarn add -D @vue-storefront/api-extractor-config | ||
| ``` | ||
|
|
||
| ### Package configuration | ||
|
|
||
| First, you need a configuration file in your package root: | ||
|
|
||
| ```json | ||
| { | ||
| "extends": "@vue-storefront/api-extractor-config", | ||
| "mainEntryPointFilePath": "./lib/api-extractor-data.d.ts", | ||
| "projectFolder": ".", | ||
| "compiler": { | ||
| "tsconfigFilePath": "<projectFolder>/tsconfig.json" | ||
| }, | ||
| "dtsRollup": { | ||
| "untrimmedFilePath": "./lib/<unscopedPackageName>.d.ts" | ||
| }, | ||
| "docModel": { | ||
| "apiJsonFilePath": "<projectFolder>/../../docs/reference/api/<unscopedPackageName>.api.json" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| This configuration assumes, that you have also a file `src/api-extractor-data.ts` in your project that exports the API definitions: | ||
|
|
||
| ```ts | ||
| /** | ||
| * Package documentation description. | ||
| * | ||
| * @packageDocumentation | ||
| */ | ||
|
|
||
| export * from "./types"; | ||
| // etc... | ||
| ``` | ||
|
|
||
| `mainEntryPointFilePath` points to `lib`, so you need to build your package before running API Extractor. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new file that points people to the packages/* directory in case they mistakenly open the engineering-toolkit or the actions/* folder instead of going to packages/*