mozilla / npm-lockdown

Lock down your npm dependencies by shasum.
Mozilla Public License 2.0
207 stars 30 forks source link

(solved) How to get npm-lockdown running on CircleCI #53

Open hakunin opened 8 years ago

hakunin commented 8 years ago

I had to do a couple of thing to make this run, first I had to apply the workaround for line endings:

// package.json
  "scripts": {
    "preinstall": "node ./node_modules/.bin/lockdown",
    //...

Then I had to install lockdown priori to npm install running on the code integration tool:

# circle.yaml
machine:
  #...
  post:
    - "cd <project directory> && npm i lockdown"

I haven't found any info on this elsewhere, hope this helps someone.

Leaving this open if the authors of this package want to get back to it and maybe include it in the docs, otherwise feel free to close.