Skip to content

Outdated documentation about generating examples #1347

@relu91

Description

@relu91
          > Working with ES2021 does not seem to generate that ugly JS anymore, what do you think?

That is great! Once we move on with #1340 we can also remove the workflow described here

### Workflow
1. Run `npm run build`
2. Remove the following 3/4 lines in JS files of folder `dist/`
```
Object.defineProperty(exports, "__esModule", { value: true });
require("wot-typescript-definitions");
let WoT;
let WoTHelpers;
```
3. Copy the according JS file(s) to
- `<node-wot>/examples/scripts`
- `<node-wot>/examples/testthing`

Originally posted by @danielpeintner in #1215 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions