@@ -6,8 +6,8 @@ Certain build environments like the [Open Build Service](https://build.opensuse.
6
6
* it runs ` npm ` with any parameters and then shuts down
7
7
8
8
- [ Installation] ( #installation )
9
- - [From Release](#from-release)
10
- - [From Git](#from-git)
9
+ - [ From Release] ( #from-release )
10
+ - [ From Git] ( #from-git )
11
11
- [ Usage] ( #usage )
12
12
- [ Open Build Service] ( #open-build-service )
13
13
@@ -17,18 +17,32 @@ Certain build environments like the [Open Build Service](https://build.opensuse.
17
17
` npm install --production `
18
18
19
19
## From Git
20
- ` npm install `
21
- ` npm run build `
20
+ ```
21
+ npm install
22
+ npm run build
23
+ ```
22
24
23
25
At this point the application is in ` dist/ ` and can be used as from a tagged released version
24
26
25
27
# Usage
26
28
27
29
From the directory of an application where you want to run ` npm install ` ,
28
30
29
- NPM_TGZ = (list of all NPM tgz tarballs or directory containing them)
30
- node ${path_to_this_app}/dist ${NPM_TGZ} install ${npm_install_param}
31
+ ```
32
+ NM_TGZ = (list of all NPM tgz tarballs or directories containing them)
33
+ node $path_to_this_app/dist ${NPM_TGZ} $npm_params
34
+ ```
35
+ All parameters that are not directories or NPM tarballs are passed as
36
+ parameters to NPM.
37
+
38
+ When running under OBS with ` BuildRequires: local-npm-registry ` , where
39
+ all dependencies are provides are tarballs in the ` %_sourcedir ` , then
40
+ you can just do,
41
+
42
+ ```
43
+ local-npm-registry %{_sourcedir} install --also=dev
44
+ ```
31
45
32
46
# Open Build Service
33
47
34
- You can find this in ` devel:languages:javascript `
48
+ You can find this package in ` devel:languages:javascript `
0 commit comments