-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
340 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,24 +15,6 @@ Ubuntu base and Node combinations | |
In this section of the document, we will discuss the possible combinations of | ||
Ubuntu bases and possible usages of NPM plugin. | ||
|
||
24.04 base and Node from NPM plugin | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The following example uses the Ubuntu 24.04 base and Node from the NPM plugin. | ||
|
||
.. code-block:: yaml | ||
base: [email protected] | ||
extensions: | ||
- expressjs-framework | ||
parts: | ||
expressjs-framework/install-app: | ||
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. | ||
|
||
24.04 base and Node from Ubuntu packages | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
|
@@ -43,9 +25,6 @@ The following example uses the Ubuntu 24.04 base and Node from Ubuntu packages. | |
base: [email protected] | ||
extensions: | ||
- expressjs-framework | ||
parts: | ||
expressjs-framework/install-app: | ||
npm-include-node: false | ||
In this case, the application is installed and run via Node and NPM installed by | ||
the Ubuntu packages. The NPM and Node versions are determined by the versions of | ||
|
@@ -55,24 +34,23 @@ the corressponding Ubuntu base from the chilsel-slices repository. This | |
blob/ubuntu-24.04/slices/nodejs.yaml) is an example of the NodeJS version | ||
shipped with the Ubuntu 24.04 base. | ||
|
||
Bare base and Node from NPM plugin | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
24.04 base and Node from NPM plugin | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The following example uses the bare base and Node from the NPM plugin. | ||
The following example uses the Ubuntu 24.04 base and Node from the NPM plugin. | ||
|
||
.. code-block:: yaml | ||
base: bare | ||
build-base: [email protected] | ||
base: [email protected] | ||
extensions: | ||
- expressjs-framework | ||
parts: | ||
expressjs-framework/install-app: | ||
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. For different possible inputs for npm-node-version, refer to the | ||
[NPM plugin documentation](https://documentation.ubuntu.com/rockcraft/en/\ | ||
latest/common/craft-parts/reference/plugins/npm_plugin). | ||
the NPM plugin. | ||
|
||
Bare base and Node from Ubuntu packages | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
@@ -83,9 +61,6 @@ The following example uses the bare base and Node from Ubuntu packages. | |
base: bare | ||
build-base: [email protected] | ||
parts: | ||
expressjs-framework/install-app: | ||
npm-include-node: false | ||
In this case, the application is installed and run via Node and NPM installed by | ||
the Ubuntu packages. The NPM and Node versions are determined by the versions of | ||
|
@@ -98,3 +73,22 @@ shipped with the Ubuntu 24.04 base. | |
See the NPM version shipped with the corressponding Ubuntu base from the Ubuntu | ||
packages archive from the [Ubuntu packages search](https://packages.ubuntu.com/\ | ||
search?suite=default§ion=all&arch=any&keywords=npm&searchon=names) | ||
|
||
Bare base and Node from NPM plugin | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The following example uses the bare base and Node from the NPM plugin. | ||
|
||
.. code-block:: yaml | ||
base: bare | ||
build-base: [email protected] | ||
parts: | ||
expressjs-framework/install-app: | ||
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. For different possible inputs for npm-node-version, refer to the | ||
[NPM plugin documentation](https://documentation.ubuntu.com/rockcraft/en/\ | ||
latest/common/craft-parts/reference/plugins/npm_plugin). |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ name: {{name}} | |
# see {{versioned_url}}/explanation/bases/ | ||
# for more information about bases and using 'bare' bases for chiselled rocks | ||
base: [email protected] # as an alternative, a 'bare' base can be used | ||
build-base: [email protected] # build-base is required when the base is bare | ||
version: '0.1' # just for humans. Semantic versioning is recommended | ||
summary: A summary of your ExpresssJS application # 79 char long summary | ||
description: | | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
tests/spread/rockcraft/extension-expressjs/app/package.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.