-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Convert to ESM (#1699) v11 release
feat: Convert to ESM v11 release chore: improve logging when generating a Hubot BREAKING CHANGE: v11 release BREAKING CHANGE: Convert to ESM
- Loading branch information
1 parent
7fa3841
commit 31639b3
Showing
46 changed files
with
328 additions
and
513 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
#!/usr/bin/env coffee | ||
#!/usr/bin/env node | ||
|
||
# While all other files have been converted to JavaScript via https://github.com/github/hubot/pull/1347, | ||
# we left the `bin/hubot` file to remain in CoffeeScript in order prevent | ||
# breaking existing 3rd party adapters of which some are still written in | ||
# CoffeeScript themselves. We will deprecate and eventually remove this file | ||
# in a future version of hubot | ||
|
||
require './hubot.js' | ||
import('./Hubot.mjs').then(async ({ default: robot }) => {}) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
'use strict' | ||
|
||
import User from './src/User.mjs' | ||
import Brain from './src/Brain.mjs' | ||
import Robot from './src/Robot.mjs' | ||
import Adapter from './src/Adapter.mjs' | ||
import Response from './src/Response.mjs' | ||
import Middleware from './src/Middleware.mjs' | ||
import { Listener, TextListener } from './src/Listener.mjs' | ||
import { TextMessage, EnterMessage, LeaveMessage, TopicMessage, CatchAllMessage, Message } from './src/Message.mjs' | ||
import { DataStore, DataStoreUnavailable } from './src/DataStore.mjs' | ||
|
||
const loadBot = (adapter, enableHttpd, name, alias) => new Robot(adapter, enableHttpd, name, alias) | ||
export { | ||
Adapter, | ||
User, | ||
Brain, | ||
Robot, | ||
Response, | ||
Listener, | ||
TextListener, | ||
Message, | ||
TextMessage, | ||
EnterMessage, | ||
LeaveMessage, | ||
TopicMessage, | ||
CatchAllMessage, | ||
DataStore, | ||
DataStoreUnavailable, | ||
Middleware, | ||
loadBot | ||
} | ||
|
||
export default { | ||
Adapter, | ||
User, | ||
Brain, | ||
Robot, | ||
Response, | ||
Listener, | ||
TextListener, | ||
Message, | ||
TextMessage, | ||
EnterMessage, | ||
LeaveMessage, | ||
TopicMessage, | ||
CatchAllMessage, | ||
DataStore, | ||
DataStoreUnavailable, | ||
Middleware, | ||
loadBot | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.