Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Better makefile #467

Merged
merged 5 commits into from
Aug 31, 2015
Merged

Better makefile #467

merged 5 commits into from
Aug 31, 2015

Conversation

erikrose
Copy link
Contributor

f? I haven't tested the JS yet.

Makefile is now sane. You can run "make" with impunity.

  • It will no longer run npm install if it doesn't need to, so it will be fast and not hit the network.
  • It will rebuild the nunjucks templates if necessary and leave them alone otherwise. You don't need to call make templates manually anymore (though it continues to exist so the deploy process can call it and not bother compiling the clang plugin).
  • make clean now removes the installed node modules.

Also upgrade nunjucks to 2.0 and npm-lockdown to 0.0.6.

Also also remove Grunt, so we only need 5MB of node modules rather than 30MB.

@erikrose
Copy link
Contributor Author

(Confirmed: nunjucks is broken atm. Working on it.)

You can now run "make" with impunity.

* It will no longer run `npm install` if it doesn't need to, so it will be fast and not hit the network.
* It will rebuild the nunjucks templates if necessary and leave them alone otherwise. You don't need to call `make templates` manually anymore (though it continues to exist so the deploy process can call it and not bother compiling the clang plugin).
* `make clean` now removes the installed node modules.

Move the client-side templates into a nunjucks folder so we can find them all with a glob. The "partial" folder didn't have a well-defined semantic.
…de to nunjucks 2.0.

We never used any of that gadgetry. We can reintroduce the pieces we need when we get around to a JS test harness. Until then, we can enjoy lighter-weight installs.

WTF: Why no shasums for certain packages?
@erikrose erikrose merged commit 0d77d1e into mozilla:master Aug 31, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant