Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jancborchardt/bbae63687e6e46c6e56ac23c9a6cdaf4 to your computer and use it in GitHub Desktop.
Save jancborchardt/bbae63687e6e46c6e56ac23c9a6cdaf4 to your computer and use it in GitHub Desktop.
Unifying Nextcloud app update process

Nextcloud app update process

Steps for developers are always different, we should unify this. It seems like npm ci && npm run build is favored, as that can be used for initial setup, and then npm run build (or watch) can be used for changes.

TODO:

  • Tasks?
  • serverinfo: git pull ? (NO INSTALL INSTRUCTIONS)
  • Activity
  • files_pdfviewer (needs part in readme)
  • files_rightclick
  • files_videoplayer (part in readme needs update)

Internal apps

JS is checked in. When you do local changes:

  • core, search: npm ci && MODULE=core npm run build
  • settings: npm ci && MODULE=settings npm run build
  • accessibility: npm ci && MODULE=accessibility npm run build
  • dashboard: npm ci && MODULE=dashboard npm run build
  • status: npm ci && MODULE=user_status npm run build
  • weather: npm ci && MODULE=weather_status npm run build

Shipped apps where builds are committed

firstrunwizard, notifications, photos, privacy, recommendations, text, viewer → All need readme updates!

# To update
git pull

# When you make changes
npm ci && npm run build

Vue

calendar, contacts, spreed, forms, integration_github, integration_gitlab, integration_mastodon, integration_zammad, integration_reddit

git pull && npm ci && npm run build

Vue + Composer

mail, deck, social, notes, bookmarks, news, integration_discourse

git pull && composer install && npm ci && npm run build

Custom:

  • maps: git pull && make (or make dev)
  • logreader: git stash && git pull && make (part in readme a bit outdated, custom via webpack does not use npm)

Developer survey on what they use:

  • @juliushaertl: npm ci && npm run build. maybe composer install
  • @blizzz: npm ci && npm run build
  • @skjnldsv: npm ci && npm run watch
  • @ChristophWurst: krankerl up
  • @GretaD: make initially. npm run build after changes
  • @georgehrke: make. make build-js if package.json wasnt changed
  • @nickvergessen: make. For others make dev-setup. And for even worse make dev-setup && make build-js
  • @ma12-co: make dev-setup && make build-js. Or make watch-js for changes
  • @rullzer: composer install && npm ci && npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment