Skip to content

Commit d6aab50

Browse files
1 parent 71a643b commit d6aab50

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

.github/workflows/build-upstream.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
npm ci
21-
npm ci --prefix packages/core
21+
npm ci -w packages/core
2222
- name: Lint, build and test
2323
env:
2424
ASCIIDOCTOR_CORE_VERSION: main
2525
run: |
2626
npm run lint
2727
npm run test
28-
npm run travis --prefix packages/core
28+
npm run travis -w packages/core

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ jobs:
5050
- name: Install dependencies
5151
run: |
5252
npm ci
53-
npm ci --prefix packages/core
53+
npm ci -w packages/core
5454
- name: Lint, build and test
5555
env:
5656
ASCIIDOCTOR_CORE_VERSION: ${{ matrix.asciidoctor-core-version }}
5757
run: |
5858
npm run lint
5959
npm run test
60-
npm run travis --prefix packages/core
60+
npm run travis -w packages/core
6161
build-windows:
6262
needs: activate
6363
runs-on: windows-latest
@@ -76,7 +76,7 @@ jobs:
7676
- name: Install dependencies
7777
run: |
7878
npm ci
79-
npm ci --prefix packages/core
79+
npm ci -w packages/core
8080
- name: Build
8181
env:
8282
ASCIIDOCTOR_CORE_VERSION: ${{ matrix.asciidoctor-core-version }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
npm ci
24-
npm ci --prefix packages/core
24+
npm ci -w packages/core
2525
- name: Lint, build and test
2626
env:
2727
ASCIIDOCTOR_CORE_VERSION: v2.0.20
2828
run: |
2929
npm run lint
3030
npm run test
31-
npm run travis --prefix packages/core
31+
npm run travis -w packages/core
3232
publish:
3333
if: github.repository_owner == 'asciidoctor'
3434
needs: build
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install dependencies
4848
run: |
4949
npm ci
50-
npm ci --prefix packages/core
50+
npm ci -w packages/core
5151
# package and publish
5252
- name: Package
5353
env:

CONTRIBUTING-CODE.adoc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Start by cloning the source from GitHub:
3838
Next, run npm's `install` command:
3939

4040
$ npm i
41-
$ npm i --prefix packages/core
4241

4342
You're now ready to build Asciidoctor.js.
4443

@@ -52,10 +51,10 @@ This section describes how to build Asciidoctor.js from source, execute the test
5251

5352
To build Asciidoctor.js, simply run the npm `build` script from the root of the project:
5453

55-
$ npm run build --prefix packages/core
54+
$ npm run build -w packages/core
5655

5756
WARNING: The build system does not automate updating the dependency on ruby asciidoctor.
58-
If there is any chance the asciidoctor.js copy of the asciidoctor ruby code is out of date, run `npm clean --prefix packages/core`.
57+
If there is any chance the asciidoctor.js copy of the asciidoctor ruby code is out of date, run `npm clean -w packages/core`.
5958

6059
NOTE: The build task will make some minor code changes on Asciidoctor Ruby code.
6160
As you may know, {uri-mdn-string}[strings are immutable] in JavaScript, so we need to replace the `gsub!` and `sub!` methods.
@@ -78,7 +77,7 @@ If you want to build against a release of Asciidoctor, you will need to define t
7877

7978
For instance to build against Asciidoctor (Ruby) v2.0.10 use:
8079

81-
$ ASCIIDOCTOR_CORE_VERSION=v2.0.10 npm run build --prefix packages/core
80+
$ ASCIIDOCTOR_CORE_VERSION=v2.0.10 npm run build -w packages/core
8281

8382
==== Building against a local copy of Ruby Asciidoctor
8483

@@ -110,26 +109,26 @@ mkdir packages/core/build/asciidoctor
110109
tar -xf $ASCIIDOCTOR_RB/pkg/asciidoctor-*.gem -C packages/core/build --include data.tar.gz
111110
tar -xzf packages/core/build/data.tar.gz -C packages/core/build/asciidoctor
112111
----
113-
* For all of these, `touch packages/core/build/asciidoctor.tar.gz` will prevent `npm build --prefix packages/core` from overwriting your copy with a downloaded one.
112+
* For all of these, `touch packages/core/build/asciidoctor.tar.gz` will prevent `npm build -w packages/core` from overwriting your copy with a downloaded one.
114113
* To actually use your local source you'll need to force recompile by:
115114
+
116115
----
117-
npm run clean:core --prefix packages/core
116+
npm run clean:core -w packages/core
118117
----
119118

120119
==== Using "quick" mode
121120

122121
By default the build will run the whole tests suite but if you want to quickly iterate on your code, we recommend to use the task `build:quick`:
123122

124-
$ npm run build:quick --prefix packages/core
123+
$ npm run build:quick -w packages/core
125124

126125
This task will run only the tests against a Node.js environment.
127126

128127
=== Building and running the examples
129128

130129
To build the examples, simply run the npm `examples` task from the root of the project:
131130

132-
$ npm run examples --prefix packages/core
131+
$ npm run examples -w packages/core
133132

134133
This command produces 3 examples in the [path]_packages/core/build/examples_ directory:
135134

@@ -142,7 +141,7 @@ The Ruby script `userguide_test.rb` includes:
142141
* `asciidoctor_example.html` demonstrates how to convert a file using the include directive and insert the result in the HTML page
143142

144143
In order to visualize the result, a local http server must be started within the root of this project otherwise you will have a cross origin issue which prevents to load some resources and render the HTML.
145-
For this purpose, you can run the following command to start a HTTP server locally: `npm run server --prefix packages/core`
144+
For this purpose, you can run the following command to start a HTTP server locally: `npm run server -w packages/core`
146145

147146
Once the server is listening, you can point your browser at:
148147

@@ -162,7 +161,7 @@ Currently, you can run benchmark against 3 JavaScript environment:
162161

163162
The following command will run benchmark against Node.js:
164163

165-
$ npm run benchmark node --prefix packages/core
164+
$ npm run benchmark node -w packages/core
166165

167166
Once `packages/core/build/benchmark` is initialized, you can run benchmark again (without building the project):
168167

0 commit comments

Comments
 (0)