зеркало из https://github.com/mozilla/normandy.git
Update docs, use apt-get for yarn
This commit is contained in:
Родитель
2b87bcc545
Коммит
a7d7342070
|
@ -28,7 +28,7 @@ Installation
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
npm install
|
||||
yarn install
|
||||
npm run build
|
||||
|
||||
Once you've finished these steps, you should be ready to build an XPI or copy
|
||||
|
|
|
@ -12,7 +12,7 @@ install and build the latest dependencies:
|
|||
.. code-block:: bash
|
||||
|
||||
cd recipe-client-addon
|
||||
npm install
|
||||
yarn install
|
||||
npm run build
|
||||
|
||||
This will create a ``vendor`` directory containing a ``.js`` for each
|
||||
|
@ -32,7 +32,7 @@ To add a dependency:
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
npm install --save ajv@5.2.2
|
||||
yarn add --save ajv@5.2.2
|
||||
|
||||
Version numbers in ``package.json`` must be set to an exact match to avoid
|
||||
bugs from downloading newer versions of libraries that we haven't tested
|
||||
|
@ -149,7 +149,7 @@ installed within to get the eslint plugins we rely on:
|
|||
.. code-block:: bash
|
||||
|
||||
cd recipe-client-addon
|
||||
npm install
|
||||
yarn install
|
||||
./node_modules/.bin/eslint .
|
||||
|
||||
.. _eslint: http://eslint.org/
|
||||
|
|
|
@ -67,7 +67,7 @@ Installation
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
npm install
|
||||
yarn install
|
||||
npm run build
|
||||
|
||||
6. Create a Postgres database for Normandy. By default it is assumed to be named
|
||||
|
|
|
@ -35,7 +35,7 @@ steps, as they don't affect your setup if nothing has changed:
|
|||
|
||||
# Install new dependencies or update existing ones.
|
||||
pip install -r requirements/default.txt -c requirements/constraints.txt
|
||||
npm install
|
||||
yarn install
|
||||
|
||||
# Run database migrations.
|
||||
python manage.py migrate
|
||||
|
|
|
@ -11,7 +11,11 @@ RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
|
|||
echo 'deb https://deb.nodesource.com/node_8.x jessie main' > /etc/apt/sources.list.d/nodesource.list && \
|
||||
echo 'deb-src https://deb.nodesource.com/node_8.x jessie main' >> /etc/apt/sources.list.d/nodesource.list && \
|
||||
apt-get update && apt-get install -y nodejs
|
||||
RUN npm install -g npm@5 && npm install -g yarn@1.0.0
|
||||
RUN npm install -g npm@5
|
||||
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
RUN apt-get update && apt-get install yarn
|
||||
|
||||
COPY ./requirements /app/requirements
|
||||
COPY ./package.json /app/package.json
|
||||
|
|
Загрузка…
Ссылка в новой задаче