Skip to content

Commit

Permalink
Merge pull request #2 from achraf-mer/extra-npm
Browse files Browse the repository at this point in the history
Create extra-npm.yaml
  • Loading branch information
achraf-mer authored Jul 25, 2024
2 parents 46282e6 + 80cf514 commit be8f18f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions extra-npm.yaml
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

0 comments on commit be8f18f

Please sign in to comment.