Skip to content

Update packages to latest and align on NodeJS v18 and v20 and add missing ones #21

@bokjo

Description

@bokjo

Describe the feature

Some packages in the boilerplate are hardcoded to an exact version that should be the case!

Is there a specific reason to run rollup v2?
Updating all packages to the latest and running them against NodeJS v20

fails due to import { terser } from 'rollup-plugin-terser'; package... suggestion: updating to package import terser from '@rollup/plugin-terser'; solves the issue

update to rollup from v2 to v3: (to make it work)

Lerna:
After update to the latest version the useWorkspaces config is not needed (inferred from package.json which already has the workspaces setup done!) => https://github.com/vuestorefront/integration-boilerplate/blob/main/lerna.json#L2C4-L2C17

Missing stuff:
Add NCU and check and update package scripts

"update:check": "ncu && lerna run update:check --stream",
 "update:update": "ncu -u && lerna run update:update --stream"

Extra not needed deps?
What is the need for react and react-dom to be part of this boilerplate? https://github.com/vuestorefront/integration-boilerplate/blob/main/package.json#L47

Missing stuff from this boilerplate but that is added to the playground/app presume with a different template

  • playground/app/sdk.config.ts imports import { initSDK, buildModule } from '@vue-storefront/sdk'; but the @vue-storefront/sdk package is not part of the package.json dependencies! (p.s don't know why it works with yarn tho, but not with npm)

Docs setup assumes you have yarn installed as it is hardcoded in the scripts, please change this one if you have already chosen to use npm as the package manager!
ref: https://github.com/vuestorefront/integration-boilerplate/blob/main/docs/package.json#L10

.husly is present in the boilerplate but husky package is not installed and prepare husky install script is missing!
.husky/commit-msg assumes commitlint is present, which is not!

ESLint present in the boilerplate repo but not installed (removed) when generating the integration?

p.s I might have missed something!

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions