diff --git a/docs/explanation/extensions/expressjs-framework.rst b/docs/explanation/extensions/expressjs-framework.rst index ab5c327ff..e7f56d614 100644 --- a/docs/explanation/extensions/expressjs-framework.rst +++ b/docs/explanation/extensions/expressjs-framework.rst @@ -35,10 +35,12 @@ Bare base and Node from Ubuntu packages stage-packages: - npm -In this case, the ``npm`` package is installed in a separate ``expressjs-framework/runtime`` part. -This is due to ``expressjs-framework/install-app > stage-packages`` part only being able to install -slices rather than packages as a design choice of Rockcraft. See the comment -https://github.com/canonical/rockcraft/issues/785#issuecomment-2572990545 for more explanation. +In this case, the ``npm`` package is installed in a separate +``expressjs-framework/runtime`` part. This is due to +``expressjs-framework/install-app > stage-packages`` part only being able to +install slices rather than packages as a design choice of Rockcraft. See the +[issue comment](https://github.com/canonical/rockcraft/issues/785#issuecomment\ +-2572990545) for more explanation. Bare base and Node from NPM plugin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -57,9 +59,9 @@ Bare base and Node from NPM plugin - coreutils_bins - nodejs_bins -In this case, the ``expressjs-framework/install-app > build-packages`` part is empty. The -application is is installed using Node and NPM installed by the NPM plugin. The application is run -using the NPM installed by the NPM plugin. +In this case, the ``expressjs-framework/install-app > build-packages`` part is +empty. The application is is installed using Node and NPM installed by the NPM +plugin. The application is run using the NPM installed by the NPM plugin. 24.04 base and Node from Ubuntu packages ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -81,9 +83,10 @@ using the NPM installed by the NPM plugin. stage-packages: - npm -In this case, the ``expressjs-framework/install-app > stage-packages`` part does not include the -``bash_bins`` and ``coreutils_bins`` slices as they are already included in the Ubuntu 24.04 base. -The application is built and installed using Node and NPM from the Ubuntu packages. +In this case, the ``expressjs-framework/install-app > stage-packages`` part does +not include the ``bash_bins`` and ``coreutils_bins`` slices as they are already +included in the Ubuntu 24.04 base. The application is built and installed using +Node and NPM from the Ubuntu packages. 24.04 base and Node from NPM plugin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -97,4 +100,5 @@ The application is built and installed using Node and NPM from the Ubuntu packag npm-include-node: true npm-node-version: 20.12 -In this case, the application is installed and run via Node and NPM installed by the NPM plugin. +In this case, the application is installed and run via Node and NPM installed by +the NPM plugin. diff --git a/docs/reference/extensions/expressjs-framework.rst b/docs/reference/extensions/expressjs-framework.rst index 77db41b6d..b41395d49 100644 --- a/docs/reference/extensions/expressjs-framework.rst +++ b/docs/reference/extensions/expressjs-framework.rst @@ -38,7 +38,9 @@ example: npm-include-node: true npm-node-version: 20.12.2 -For more examples of npm-node-version options, see: https://documentation.ubuntu.com/rockcraft/en/1.5.3/common/craft-parts/reference/plugins/npm_plugin/#examples +For more examples of npm-node-version options, see: https://documentation.\ +ubuntu.com/rockcraft/en/1.5.3/common/craft-parts/reference/plugins/npm_plugin/\ +#examples If you don't customise the version of node, it will be installed from the Ubuntu package repository. diff --git a/docs/tutorial/expressjs.rst b/docs/tutorial/expressjs.rst index 98ec7a05c..06fb241eb 100644 --- a/docs/tutorial/expressjs.rst +++ b/docs/tutorial/expressjs.rst @@ -14,9 +14,9 @@ Setup .. important:: - Before we go any further, for this tutorial we'll need the most recent version - of Rockcraft on the edge channel. Run ``sudo snap refresh rockcraft --channel - latest/edge`` to switch to it. + Before we go any further, for this tutorial we'll need the most recent + version of Rockcraft on the edge channel. Run ``sudo snap refresh rockcraft + --channel latest/edge`` to switch to it. Finally, create a new directory for this tutorial and go inside it: