generated from esm-bundle/autopublish-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2daf32
commit c7216a5
Showing
6 changed files
with
64 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
# autopublish-template | ||
# chai | ||
|
||
[![npm version](https://img.shields.io/npm/v/@esm-bundle/autopublish-template.svg?style=flat)](https://www.npmjs.com/package/@esm-bundle/autopublish-template) [![build status](https://travis-ci.com/esm-bundle/autopublish-template.svg?branch=master)](https://travis-ci.com/esm-bundle/autopublish-template) [![](https://data.jsdelivr.com/v1/package/npm/@esm-bundle/autopublish-template/badge)](https://www.jsdelivr.com/package/npm/@esm-bundle/autopublish-template) | ||
[![npm version](https://img.shields.io/npm/v/@esm-bundle/chai.svg?style=flat)](https://www.npmjs.com/package/@esm-bundle/chai) [![build status](https://travis-ci.com/esm-bundle/chai.svg?branch=master)](https://travis-ci.com/esm-bundle/chai) [![](https://data.jsdelivr.com/v1/package/npm/@esm-bundle/chai/badge)](https://www.jsdelivr.com/package/npm/@esm-bundle/chai) | ||
|
||
["What is this" blog post](https://medium.com/@joeldenning/an-esm-bundle-for-any-npm-package-5f850db0e04d) | ||
|
||
[Instructions for creating a new esm-bundle repo](https://github.com/esm-bundle/new-repo-instructions) | ||
|
||
A repo that tests automatic detection of upstream publishes and the publishing of `@esm-bundle` versions of them. | ||
|
||
Upstream repo at https://github.com/joeldenning/autopublish-template. | ||
Upstream repo at https://www.npmjs.com/package/chai. | ||
|
||
## JS Delivr | ||
|
||
https://cdn.jsdelivr.net/npm/@esm-bundle/autopublish-template/esm/index.js | ||
https://cdn.jsdelivr.net/npm/@esm-bundle/chai/esm/chai.js | ||
|
||
https://cdn.jsdelivr.net/npm/@esm-bundle/autopublish-template/system/index.js | ||
https://cdn.jsdelivr.net/npm/@esm-bundle/chai/system/chai.js | ||
|
||
## Unpkg | ||
|
||
https://unpkg.com/@esm-bundle/autopublish-template/esm/index.js | ||
https://unpkg.com/@esm-bundle/chai/esm/chai.js | ||
|
||
https://unpkg.com/@esm-bundle/autopublish-template/system/index.js | ||
https://unpkg.com/@esm-bundle/chai/system/chai.js | ||
|
||
## Npm | ||
|
||
```sh | ||
npm install --save autopublish-template@npm:@esm-bundle/autopublish-template | ||
npm install --save chai@npm:@esm-bundle/chai | ||
``` | ||
|
||
## Yarn | ||
|
||
```sh | ||
yarn add autopublish-template@npm:@esm-bundle/autopublish-template | ||
yarn add chai@npm:@esm-bundle/chai | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
describe("@esm-bundle/autopublish-template", () => { | ||
describe("@esm-bundle/chai", () => { | ||
it("can load the ESM bundle", () => { | ||
return import("/base/esm/index.js"); | ||
return import("/base/esm/chai.js"); | ||
}); | ||
|
||
it("can load the System.register bundle", () => { | ||
return System.import("/base/system/index.js"); | ||
return System.import("/base/system/chai.js"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
describe("@esm-bundle/autopublish-template", () => { | ||
describe("@esm-bundle/chai", () => { | ||
it("can load the esm bundle without dying", () => { | ||
return import("../esm/index.js"); | ||
return import("../esm/chai.js"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters