You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tar -xf $ASCIIDOCTOR_RB/pkg/asciidoctor-*.gem -C packages/core/build --include data.tar.gz
111
110
tar -xzf packages/core/build/data.tar.gz -C packages/core/build/asciidoctor
112
111
----
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.
114
113
* To actually use your local source you'll need to force recompile by:
115
114
+
116
115
----
117
-
npm run clean:core --prefix packages/core
116
+
npm run clean:core -w packages/core
118
117
----
119
118
120
119
==== Using "quick" mode
121
120
122
121
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`:
123
122
124
-
$ npm run build:quick --prefix packages/core
123
+
$ npm run build:quick -w packages/core
125
124
126
125
This task will run only the tests against a Node.js environment.
127
126
128
127
=== Building and running the examples
129
128
130
129
To build the examples, simply run the npm `examples` task from the root of the project:
131
130
132
-
$ npm run examples --prefix packages/core
131
+
$ npm run examples -w packages/core
133
132
134
133
This command produces 3 examples in the [path]_packages/core/build/examples_ directory:
135
134
@@ -142,7 +141,7 @@ The Ruby script `userguide_test.rb` includes:
142
141
* `asciidoctor_example.html` demonstrates how to convert a file using the include directive and insert the result in the HTML page
143
142
144
143
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`
146
145
147
146
Once the server is listening, you can point your browser at:
148
147
@@ -162,7 +161,7 @@ Currently, you can run benchmark against 3 JavaScript environment:
162
161
163
162
The following command will run benchmark against Node.js:
164
163
165
-
$ npm run benchmark node --prefix packages/core
164
+
$ npm run benchmark node -w packages/core
166
165
167
166
Once `packages/core/build/benchmark` is initialized, you can run benchmark again (without building the project):
0 commit comments