craft ci
Remove node_modules and install exactly what craft.lock records.
text
craft ci [OPTIONS]Options
| Option | Does |
|---|---|
--ignore-scripts | Run no lifecycle scripts |
Plus the global options.
Behaviour
- Checks that
craft.lockexists and matchespackage.json, failing before any download otherwise:texterror: craft.lock is out of date with package.json: ms (not in craft.lock); run `craft install` to update it - Removes
node_modules. - Installs from the lockfile alone, with no registry metadata requests, taking tarballs from the global store when it has them.
- Runs the install scripts of trusted dependencies and the project's own
preinstall,install,postinstallandprepare.
craft.lock is never rewritten. To install from the lockfile without removing node_modules first, use craft install --frozen-lockfile.
See Continuous integration for complete CI setups.
