Skip to content

Commit 79ceb04

Browse files
committed
Added prettier config and dev README
1 parent 20b8f1a commit 79ceb04

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,16 +308,40 @@ nvm install
308308

309309
Install dependencies:
310310

311-
```
311+
```bash
312+
nvm use
312313
npm install
313314
```
314315

315-
Run dev server:
316+
Build artifacts in `dist` directory:
317+
318+
```bash
319+
# This will create files in the `dist` directory
320+
npm run build
321+
```
316322

323+
Add an `index.html` file to your `dist` directory
324+
325+
```html
326+
<html>
327+
<head>
328+
<script src="elastic_app_search.umd.js"></script>
329+
</head>
330+
<body>
331+
332+
</body>
333+
</html>
317334
```
335+
336+
Run dev server:
337+
338+
```bash
339+
# This will serve files in the `dist` directory
318340
npm run dev
319341
```
320342

343+
Navigate to http://127.0.0.1:8080 and execute JavaScript commands through the browser Dev Console.
344+
321345
### Build
322346

323347
```

prettier.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
trailingComma: "none",
3+
arrowParens: "avoid"
4+
};

0 commit comments

Comments
 (0)