-
Notifications
You must be signed in to change notification settings - Fork 0
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
Release automation #2
Comments
Same for apps releases on https://github.com/nextcloud-releases/ |
I took the liberty of creating a gist to track all our NPM Packages. https://gist.github.com/vinicius73/555d739de02a431fc8a2a33aa4e5cb69 The idea is to improve every package with better docs and a standard release process. For the build process
About ESMESM (EcmaScript Modules) are largely compatible with node and browsers. It allows tree shaking and modern tooling like Vite, Skypack and Parcel. It is a big step of JavaScript ecosystem and there are some incompatibilities between CJS and ESM but we can handle it using rollup and adjusting our "main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"files": [
"dist/"
], It keeps every old-style package manager, node version, and bundler working without any issue. About DocsIt is very important to make sure we have a good doc with good references about some parts of Nextcloud usage and development. Packages with poor About NPM and GPRNowadays we have NPM and GPR (Github Package Registry) as public options to store and distribute javascripr packages. The idea is improving the security and resilience of the JS ecosystem. Also, we can publish in gitlab too. |
I created a nice config with typescript, esm, esnext, vue for rollup in https://github.com/nextcloud/nextcloud-upload/blob/master/rollup.config.js Feel free to take inspiration on this. It works great and also generates typings. |
@susnux I guess we could all move to the vite config?
|
Not sure how that is related? Yes I would recommend to use vite for bundling and recommend our shared config - also to get some feedback on how to improve there. But not sure how this is connected to automated releases? |
In my head that was: unifying the config will help having the same release process |
It would be nice to have the changeling generation and npm releases handled through GitHub actions or at least have some docs on which steps to take. This showed up to be an issue when trying to release
@nextcloud/moment
but is the same for other npm packages we have in our organisation. Only@nextcloud/vue
seems to be automated/documented currently.The text was updated successfully, but these errors were encountered: