forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from achraf-mer/extra-npm
Create extra-npm.yaml
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package: | ||
name: extra-npm | ||
version: 1.0 | ||
epoch: 0 | ||
description: "util npm packages" | ||
|
||
dependencies: | ||
runtime: | ||
- nodejs | ||
- npm | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- wolfi-base | ||
- nodejs | ||
- npm | ||
|
||
pipeline: | ||
- runs: | | ||
npm install -g marked@latest playwright@latest | ||
- runs: | | ||
mkdir -p "${{targets.destdir}}/usr/bin" | ||
mkdir -p "${{targets.destdir}}/usr/share/man" | ||
mkdir -p "${{targets.destdir}}/usr/lib/node_modules" | ||
cp -R -a /usr/local/share/man/man1 "${{targets.destdir}}/usr/share/man/man1" | ||
cp -R -a /usr/local/bin/* "${{targets.destdir}}/usr/bin/" | ||
cp -R -a /usr/local/lib/node_modules/marked "${{targets.destdir}}/usr/lib/node_modules/marked" | ||
cp -R -a /usr/local/lib/node_modules/playwright "${{targets.destdir}}/usr/lib/node_modules/playwright" | ||
test: | ||
pipeline: | ||
- name: Verify can use marked | ||
runs: | | ||
marked --version || exit 1 | ||
- name: Verify can use playwright | ||
runs: | | ||
playwright --version || exit 1 |