Skip to content

Commit

Permalink
Merge pull request #81 from shimataro/develop
Browse files Browse the repository at this point in the history
version 1.0.0-rc.2
  • Loading branch information
shimataro committed Feb 10, 2021
2 parents 61b08de + c2bfa57 commit 49b52c9
Show file tree
Hide file tree
Showing 39 changed files with 18,155 additions and 32,250 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ rules: # https://eslint.org/docs/rules/
- error

# @typescript-eslint plugin
"@typescript-eslint/explicit-function-return-type": 'off'
"@typescript-eslint/no-use-before-define":
- error
- functions: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source codes
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
Expand Down
30 changes: 16 additions & 14 deletions .github/workflows/verify-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@ jobs:
fail-fast: false
steps:
- name: Checkout source codes
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Node.js for build
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs-build }}
- name: update npm
run: npm i -g npm
- name: Print versions
run: |
node -v
npm -v
- name: Install dependencies for plugin
run: npm ci
run: npm ci || npm i
- name: Build plugin
run: npm run build
- name: Install dependencies for example
run: npm ci --prefix ./examples/${{ matrix.example }}
run: npm ci || npm i
working-directory: ./examples/${{ matrix.example }}
- name: Build example
run: npm run build --prefix ./examples/${{ matrix.example }}
run: npm run build
working-directory: ./examples/${{ matrix.example }}
- name: Install Node.js for run
uses: actions/setup-node@v1
with:
Expand All @@ -56,7 +56,8 @@ jobs:
node -v
npm -v
- name: Run example
run: node ./examples/${{ matrix.example }}/dist/index.js
run: node ./dist/index.js
working-directory: ./examples/${{ matrix.example }}
examples-esm:
name: Build and run examples (ES Modules)
runs-on: ${{ matrix.os }}
Expand All @@ -81,25 +82,25 @@ jobs:
fail-fast: false
steps:
- name: Checkout source codes
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Node.js for build
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs-build }}
- name: update npm
run: npm i -g npm
- name: Print versions
run: |
node -v
npm -v
- name: Install dependencies for plugin
run: npm ci
run: npm ci || npm i
- name: Build plugin
run: npm run build
- name: Install dependencies for example
run: npm ci --prefix ./examples/${{ matrix.example }}
run: npm ci || npm i
working-directory: ./examples/${{ matrix.example }}
- name: Build example
run: npm run build --prefix ./examples/${{ matrix.example }}
run: npm run build
working-directory: ./examples/${{ matrix.example }}
- name: Install Node.js for run
uses: actions/setup-node@v1
with:
Expand All @@ -109,4 +110,5 @@ jobs:
node -v
npm -v
- name: Run example
run: node --experimental-modules ./examples/${{ matrix.example }}/dist/index.js
run: node --experimental-modules ./dist/index.js
working-directory: ./examples/${{ matrix.example }}
2 changes: 1 addition & 1 deletion .github/workflows/verify-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source codes
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-on-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout source codes
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Turn off auto-crlf
run: git config --global core.autocrlf false
- name: Checkout source codes
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
Expand Down
8 changes: 5 additions & 3 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
MD007:
MD007: # ul-indent
indent: 4
MD013:
MD013: # line-length
line_length: 255
MD024:
MD024: # no-duplicate-heading
siblings_only: true
MD029: # ol-prefix
style: one
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ node_modules/
.editorconfig
.eslintrc.yml
.markdownlint.yml
tsconfig.json

# temporary files
*~
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.0.0-rc.2] - 2021-02-10

### Added

* support dynamic imports (thanks [@rozzzly](https://github.com/rozzzly))

### Fixed

* badge URL

## [1.0.0-rc.1] - 2020-02-16

### Others
Expand Down Expand Up @@ -43,7 +53,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

* First release.

[Unreleased]: https://github.com/shimataro/babel-plugin-module-extension-resolver/compare/v1.0.0-rc.1...HEAD
[Unreleased]: https://github.com/shimataro/babel-plugin-module-extension-resolver/compare/v1.0.0-rc.2...HEAD
[1.0.0-rc.2]: https://github.com/shimataro/babel-plugin-module-extension-resolver/compare/v1.0.0-rc.1...v1.0.0-rc.2
[1.0.0-rc.1]: https://github.com/shimataro/babel-plugin-module-extension-resolver/compare/v0.3.0...v1.0.0-rc.1
[0.3.0]: https://github.com/shimataro/babel-plugin-module-extension-resolver/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/shimataro/babel-plugin-module-extension-resolver/compare/v0.1.1...v0.2.0
Expand Down
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ import "./dir/lib";
import "./dir";

export * from "./dir";

async function foo() {
await import("./dir/lib");
}
```

Run:
Expand All @@ -101,6 +105,10 @@ import "./dir/lib.mjs";
import "./dir/index.mjs";

export * from "./dir/index.mjs";

async function foo() {
await import("./dir/lib.mjs");
}
```

### TypeScript
Expand Down Expand Up @@ -212,13 +220,13 @@ extension to keep

See [CHANGELOG.md](CHANGELOG.md).

[image-build-windows]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/Windows/badge.svg?event=push&branch=v0
[image-build-windows]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/Windows/badge.svg?event=push&branch=v1
[link-build-windows]: https://github.com/shimataro/babel-plugin-module-extension-resolver
[image-build-macos]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/macOS/badge.svg?event=push&branch=v0
[image-build-macos]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/macOS/badge.svg?event=push&branch=v1
[link-build-macos]: https://github.com/shimataro/babel-plugin-module-extension-resolver
[image-build-linux]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/Linux/badge.svg?event=push&branch=v0
[image-build-linux]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/Linux/badge.svg?event=push&branch=v1
[link-build-linux]: https://github.com/shimataro/babel-plugin-module-extension-resolver
[image-examples-check]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/Examples%20check/badge.svg?event=push&branch=v0
[image-examples-check]: https://github.com/shimataro/babel-plugin-module-extension-resolver/workflows/Examples%20check/badge.svg?event=push&branch=v1
[link-examples-check]: https://github.com/shimataro/babel-plugin-module-extension-resolver
[image-release]: https://img.shields.io/github/release/shimataro/babel-plugin-module-extension-resolver.svg
[link-release]: https://github.com/shimataro/babel-plugin-module-extension-resolver/releases
Expand Down
Loading

0 comments on commit 49b52c9

Please sign in to comment.