diff --git a/.circleci/config.yml b/.circleci/config.yml index e621bc64e0..3f2ed2b266 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,7 @@ jobs: - node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }} - node-v1-{{ .Branch }}- - node-v1- - - run: npm install + - run: npm install --no-save - save_cache: paths: - ~/project/node_modules/ diff --git a/.squash.yml b/.squash.yml index 38eab92c41..e65ac61b9d 100644 --- a/.squash.yml +++ b/.squash.yml @@ -6,7 +6,7 @@ deployments: - RUN bash -c "curl -sL https://deb.nodesource.com/setup_8.x | bash -" - apt install -y nodejs - cd /code - - npm install + - npm install --no-save - npm run dist - pip install setuptools pip --upgrade --force-reinstall - pip install /code diff --git a/Makefile b/Makefile index 827bbb85c8..4ffa2dfb85 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ clean-pyc: develop: clean-pyc pip install -e .[testing,docs] - npm install && npm run build + npm install --no-save && npm run build lint: flake8 wagtail diff --git a/docs/contributing/css_guidelines.rst b/docs/contributing/css_guidelines.rst index 55315932a1..0fc10ad65c 100644 --- a/docs/contributing/css_guidelines.rst +++ b/docs/contributing/css_guidelines.rst @@ -14,7 +14,7 @@ run the following from the Wagtail repository root: .. code-block:: console - $ npm install + $ npm install --no-save To compile the assets, run: @@ -37,7 +37,7 @@ Linting SCSS Wagtail uses the `stylelint `_ linter. You'll need Node.js and npm on your development machine. -Ensure project dependencies are installed by running ``npm install`` +Ensure project dependencies are installed by running ``npm install --no-save`` Run the linter from the wagtail project root: diff --git a/docs/contributing/developing.rst b/docs/contributing/developing.rst index 44a4510618..812135947a 100644 --- a/docs/contributing/developing.rst +++ b/docs/contributing/developing.rst @@ -43,7 +43,7 @@ Install the tool chain for building static assets: .. code-block:: console - $ npm install + $ npm install --no-save Compile the assets: diff --git a/docs/contributing/javascript_guidelines.rst b/docs/contributing/javascript_guidelines.rst index 0e9fb31a38..6f0514c9af 100644 --- a/docs/contributing/javascript_guidelines.rst +++ b/docs/contributing/javascript_guidelines.rst @@ -15,7 +15,7 @@ Linting and formatting code Wagtail provides some tooling configuration to help check your code meets the styleguide. You'll need node.js and npm on your development machine. -Ensure project dependencies are installed by running ``npm install`` +Ensure project dependencies are installed by running ``npm install --no-save`` Linting code ------------