Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Curation] Add package.json file to curated branch #647

Merged
merged 1 commit into from
Jun 28, 2022
Merged

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Jun 27, 2022

This should allow users to install the curated branch of Webref directly from npm and then import it from code (see #641):

npm install "https://github.com/w3c/webref.git#curated"
import webref from 'webref/ed' assert { type: 'json' };

Note that we don't currently update the overall version of the Webref package (it stays at 0.0.1) and don't provide the JS logic (listAll) that exists in the released @webref/xxx packages (that logic is in the curated branch but not in the ed folder).

This should allow users to install the curated branch of Webref directly from
npm and then import it from code (see #641):

```
npm install "https://github.com/w3c/webref.git#curated"
```

```js
import webref from 'webref/ed' assert { type: 'json' };
```

Note that we don't currently update the overall version of the Webref package
(it stays at `0.0.1`) and don't provide the JS logic (`listAll`) that exists
in the released `@webref/xxx` packages (that logic is in the `curated` branch
but not in the `ed` folder).
@tidoust tidoust merged commit d501906 into main Jun 28, 2022
@tidoust tidoust deleted the add-packagejson branch June 28, 2022 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants