Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb9da31f

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [Frontend] Remove other occurrences of "yarn" Remove yarn commands in front-end docs
2 parentsf1937bb +81080a8 commitb9da31f

File tree

13 files changed

+24
-100
lines changed

13 files changed

+24
-100
lines changed

‎.doctor-rst.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ rules:
6565
valid_use_statements:~
6666
versionadded_directive_should_have_version:~
6767
yaml_instead_of_yml_suffix:~
68-
yarn_dev_option_at_the_end:~
6968

7069
# master
7170
versionadded_directive_major_version:

‎frontend/asset_mapper.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ This will force the AssetMapper component to re-calculate the content of all fil
10441044
Run Security Audits on Your Dependencies
10451045
----------------------------------------
10461046

1047-
Similar to ``npm`` and ``yarn``, the AssetMapper component comes bundled with a
1047+
Similar to ``npm``, the AssetMapper component comes bundled with a
10481048
command that checks security vulnerabilities in the dependencies of your application:
10491049

10501050
..code-block::terminal

‎frontend/create_ux_bundle.rst‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,11 @@ In this case, the file located at ``[assets directory]/dist/controller.js`` will
110110
},
111111
};
112112
113-
3. Runeither``npm install`` or ``yarn install`` to install the new dependencies.
113+
3. Run ``npm install`` to install the new dependencies.
114114

115115
4. Write your Stimulus controller with TypeScript in ``src/controller.ts``.
116116

117-
5. Run ``npm run build`` or ``yarn run build`` to transpile your TypeScript
118-
controller into JavaScript.
117+
5. Run ``npm run build`` to transpile your TypeScript controller into JavaScript.
119118

120119
To use your controller in a template (e.g. one defined in your bundle) you can use it like this:
121120

‎frontend/encore/advanced-config.rst‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ prefer to build configs separately, pass the ``--config-name`` option:
105105

106106
..code-block::terminal
107107
108-
# if you use the Yarn package manager
109-
$ yarn encore dev --config-name firstConfig
110-
111-
# if you use the npm package manager
112108
$ npm run dev -- --config-name firstConfig
113109
114110
Next, define the output directories of each build:

‎frontend/encore/bootstrap.rst‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ First, to be able to customize things further, we'll install ``bootstrap``:
77

88
..code-block::terminal
99
10-
# if you use the Yarn package manager
11-
$ yarn add bootstrap --dev
12-
13-
# if you use the npm package manager
1410
$ npm install bootstrap --save-dev
1511
1612
Importing Bootstrap Styles
@@ -46,11 +42,6 @@ used in your application:
4642

4743
..code-block::terminal
4844
49-
# if you use the Yarn package manager
50-
# (jQuery is only required in versions prior to Bootstrap 5)
51-
$ yarn add jquery @popperjs/core --dev
52-
53-
# if you use the npm package manager
5445
# (jQuery is only required in versions prior to Bootstrap 5)
5546
$ npm install jquery @popperjs/core --save-dev
5647

‎frontend/encore/dev-server.rst‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
Using webpack-dev-server and HMR
22
================================
33

4-
While developing, instead of using ``yarn encore dev --watch``, you can use the
4+
While developing, instead of using ``npx encore dev --watch``, you can use the
55
`webpack-dev-server`_:
66

77
..code-block::terminal
88
9-
# if you use the Yarn package manager
10-
$ yarn encore dev-server
11-
12-
# if you use the npm package manager
139
$ npm run dev-server
1410
1511
This builds and serves the front-end assets from a new server. This server runs at
@@ -30,10 +26,6 @@ You can set these options via command line options:
3026

3127
..code-block::terminal
3228
33-
# if you use the Yarn package manager
34-
$ yarn encore dev-server --port 9000
35-
36-
# if you use the npm package manager
3729
$ npm run dev-server -- --port 9000
3830
3931
You can also set these options using the ``Encore.configureDevServerOptions()``
@@ -90,10 +82,6 @@ server SSL certificate:
9082

9183
..code-block::terminal
9284
93-
# if you use the Yarn package manager
94-
$ NODE_OPTIONS=--openssl-legacy-provider yarn encore dev-server
95-
96-
# if you use the npm package manager
9785
$ NODE_OPTIONS=--openssl-legacy-provider npm run dev-server
9886
9987
CORS Issues

‎frontend/encore/faq.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ and the built files. Your ``.gitignore`` file should include:
5353
# whatever path you're passing to Encore.setOutputPath()
5454
/public/build
5555
56-
You *should* commit all of your source asset files, ``package.json`` and ``yarn.lock`` or ``package-lock.json``.
56+
You *should* commit all of your source asset files, ``package.json`` and ``package-lock.json``.
5757

5858
My App Lives under a Subdirectory
5959
---------------------------------
@@ -105,8 +105,8 @@ file script tag is rendered automatically.
105105
This dependency was not found: some-module in ./path/to/file.js
106106
---------------------------------------------------------------
107107

108-
Usually, after you install a package viayarn ornpm, you can require / import
109-
it to use it. For example, after running ``yarn add respond.js`` or ``npm install respond.js``,
108+
Usually, after you install a package via npm, you can require / import
109+
it to use it. For example, after running ``npm install respond.js``,
110110
you try to require that module:
111111

112112
..code-block::javascript
@@ -151,7 +151,7 @@ productive (for example by resolving aliases). However, you may face this error:
151151
calling Encore directly.
152152
153153
It fails because the Encore Runtime Environment is only configured when you are
154-
running it (e.g. when executing ``yarn encore dev``). Fix this issue calling to
154+
running it (e.g. when executing ``npx encore dev``). Fix this issue calling to
155155
``Encore.isRuntimeEnvironmentConfigured()`` and
156156
``Encore.configureRuntimeEnvironment()`` methods:
157157

‎frontend/encore/installation.rst‎

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
Installing Encore
22
=================
33

4-
First, make sure you `install Node.js`_. Optionally you can also install the
5-
`Yarn package manager`_. In the next sections you will always see the commands
6-
for both ``npm`` and ``yarn``, but you only need to run one of them.
7-
8-
The following instructions depend on whether you are installing Encore in a
9-
Symfony application or not.
4+
First, make sure you `install Node.js`_. Then, follow the instructions below,
5+
which depend on whether you are installing Encore in a Symfony application or not.
106

117
Installing Encore in Symfony Applications
128
-----------------------------------------
@@ -17,11 +13,6 @@ project:
1713
..code-block::terminal
1814
1915
$ composer require symfony/webpack-encore-bundle
20-
21-
# if you use the Yarn package manager
22-
$ yarn install
23-
24-
# if you use the npm package manager
2516
$ npm install
2617
2718
If you are using:ref:`Symfony Flex<symfony-flex>`, this will install and enable
@@ -36,24 +27,19 @@ and files by yourself following the instructions shown in the next section.
3627
Installing Encore in non Symfony Applications
3728
---------------------------------------------
3829

39-
Install Encore into your project viaYarn:
30+
Install Encore into your project vianpm:
4031

4132
..code-block::terminal
4233
43-
# if you use the Yarn package manager
44-
$ yarn add @symfony/webpack-encore --dev
45-
46-
# if you use the npm package manager
4734
$ npm install @symfony/webpack-encore --save-dev
4835
4936
This command creates (or modifies) a ``package.json`` file and downloads
50-
dependencies into a ``node_modules/`` directory. Yarn also creates/updates a
51-
``yarn.lock`` (called ``package-lock.json`` if you use npm).
37+
dependencies into a ``node_modules/`` directory.
5238

5339
..tip::
5440

55-
You *should* commit ``package.json`` and ``yarn.lock`` (or ``package-lock.json``
56-
if using npm)to version control, but ignore ``node_modules/``.
41+
You *should* commit ``package.json`` and ``package-lock.json``
42+
to version control, but ignore ``node_modules/``.
5743

5844
Creating the webpack.config.js File
5945
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -223,5 +209,4 @@ on which features of Encore you have enabled.
223209
:doc:`split chunks</frontend/encore/split-chunks>`.
224210

225211
.. _`install Node.js`:https://nodejs.org/en/download/
226-
.. _`Yarn package manager`:https://yarnpkg.com/getting-started/install
227212
.. _`WebpackEncoreBundle`:https://github.com/symfony/webpack-encore-bundle

‎frontend/encore/postcss.rst‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ Next, download any plugins you want, like ``autoprefixer``:
2323

2424
..code-block::terminal
2525
26-
# if you use the Yarn package manager
27-
$ yarn add autoprefixer --dev
28-
29-
# if you use the npm package manager
3026
$ npm install autoprefixer --save-dev
3127
3228
Next, create a ``postcss.config.js`` file at the root of your project:
@@ -36,7 +32,7 @@ Next, create a ``postcss.config.js`` file at the root of your project:
3632
module.exports= {
3733
plugins: {
3834
// include whatever plugins you want
39-
// but make sure you install these viayarn ornpm!
35+
// but make sure you install these via npm!
4036
4137
// add browserslist config to package.json (see below)
4238
autoprefixer: {}

‎frontend/encore/reactjs.rst‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ Enabling React.js with Webpack Encore
99
..tip::
1010

1111
Check out live demos of Symfony UX React component at `https://ux.symfony.com/react`_!
12-
13-
Using React? First add some dependencies withYarn:
12+
13+
Using React? First add some dependencies withnpm:
1414

1515
..code-block::terminal
1616
17-
# if you use the Yarn package manager
18-
$ yarn add react react-dom prop-types
19-
20-
# if you use the npm package manager
2117
$ npm install react react-dom prop-types --save
2218
2319
Enable react in your ``webpack.config.js``:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp