Install node libraries during deploy #24
Open
amras
wants to merge 1 commits from
node-support into main
pull from: node-support
merge into: :main
:main
:anubis-support
:node-support
:staging-subdomain
:coop-site-badger
:update-badger
:fail-deploy-on-invalid-version
:54624241bd
:b8bd53d0d0
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze (Born Deleuze)
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
hex (Josh Dukes)
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1 (p4u1)
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting (stevensting)
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/parasol-static-site#24
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This change checks if "package.json" exists.
If so, it installs node and runs npm install.
abra.shabra recipe lint parasol-static-site --chaoson the PR's branch and fixed the warnings.Not adding a version tag because I'm creating two pull requests asynchronously. Suggest the version is bumped after maintainer makes a call to merge one or both.
Description
I'm running a site with tailwindcss. According to hugo's docs this requires installing npm and tailwind on the build server.
Hugo generated a
package.jsonwhen I did the builds locally, so I added that to the repo (and gitignored package-lock and node-modules). Just in case, I also checked and hugo does not createpackage.jsonif you're not using node. So this seems like a good discriminator: if the file exists, the site requires node libraries installed on the host. If the file doesn't exist, node can be omitted.To make this work with parasol, I had to add a line to deploy.sh, to pull nodejs and run
npm installjust before building with hugo.Potential concerns about my approach
Feel free to give feedback on these:
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.