Skip to content

Commit d582637

Browse files
authored
Add gulp preview task as npm script (PR #42)
1 parent 410a8d6 commit d582637

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ To build the UI and preview it in a local web server, run the `preview` command:
156156

157157
$ gulp preview
158158

159+
[TIP]
160+
====
161+
Alternatively, you can use the following command:
162+
163+
$ npm start
164+
====
165+
159166
You'll see a URL listed in the output of this command:
160167

161168
....

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"type": "git",
88
"url": "https://github.com/asciidoctor/asciidoctor-docs-ui"
99
},
10+
"scripts": {
11+
"start": "gulp preview"
12+
},
1013
"engines": {
1114
"node": ">= 10.17.0"
1215
},

0 commit comments

Comments
 (0)