Skip to content
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

Use Asset Modules plus upgrade to npm 7 #165

Merged
merged 3 commits into from
Aug 16, 2021
Merged

Conversation

Pytal
Copy link
Contributor

@Pytal Pytal commented Aug 5, 2021

Use Asset Modules introduced in webpack 5 and upgrade to npm 7

Docs https://webpack.js.org/guides/asset-modules/

Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal added the enhancement New feature or request label Aug 5, 2021
@Pytal Pytal self-assigned this Aug 5, 2021
Copy link
Contributor

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

@raimund-schluessler
Copy link
Contributor

Do we need to specify the engines in package.json now that we use "lockfileVersion": 2,?


	"engines": {
		"node": ">=14.0.0",
		"npm": ">=7.0.0"
	},

@skjnldsv
Copy link
Contributor

skjnldsv commented Aug 6, 2021

Would be nice @raimund-schluessler 🚀

- Use backwards-compatible lockfile version 2, docs https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json#lockfileversion
- Require npm >=7.0.0 in package engines

Signed-off-by: Christopher Ng <chrng8@gmail.com>
- Introduced in webpack v5 https://webpack.js.org/guides/asset-modules/

Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal changed the title Use Asset Modules Use Asset Modules plus upgrade to npm 7 Aug 6, 2021
@Pytal
Copy link
Contributor Author

Pytal commented Aug 6, 2021

Do we need to specify the engines in package.json now that we use "lockfileVersion": 2,?

It's backwards compatible but I've added it for consistency across the nextcloud ecosystem :)

@Pytal Pytal requested a review from skjnldsv August 6, 2021 19:44
@artonge
Copy link
Contributor

artonge commented Aug 16, 2021

@Pytal @skjnldsv should we merge this ?

@skjnldsv skjnldsv merged commit 948e4a2 into master Aug 16, 2021
@skjnldsv skjnldsv deleted the feat/asset-modules branch August 16, 2021 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants