-
Notifications
You must be signed in to change notification settings - Fork 61
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
ECMAScript support #212
Open
Siilwyn
wants to merge
7
commits into
zspecza:master
Choose a base branch
from
Siilwyn:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
ECMAScript support #212
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
68adc67
Set ECMAScript module fields and entry point
Siilwyn bf03905
Use `npm ci` to speed up first time installation
Siilwyn 53867a3
Only clear output directory content
Siilwyn a68b0f3
Only build ECMAScript, drop Node.js 10 support
Siilwyn 7d5e7f0
Replace deprecated lifecycle script 'prerelease' with 'prepare'
Siilwyn 946fcbf
Replace directory imports with full file paths
Siilwyn c0ce012
Document upcoming release in installation section
Siilwyn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
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,3 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
root: true, | ||
extends: ['eslint:recommended', 'plugin:prettier/recommended'], | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ logs | |
npm-debug.log* | ||
|
||
dist | ||
lib | ||
es | ||
.DS_Store | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ node_js: | |
- 14 | ||
- 13 | ||
- 12 | ||
- 10 | ||
script: | ||
- npm test | ||
after_script: | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 +1 @@ | ||
export default from './TemplateTag'; | ||
export default from './TemplateTag.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 +1 @@ | ||
export default from '../html'; | ||
export default from '../html/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './commaLists'; | ||
export default from './commaLists.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './commaListsAnd'; | ||
export default from './commaListsAnd.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './commaListsOr'; | ||
export default from './commaListsOr.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './createTag'; | ||
export default from './createTag.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './html'; | ||
export default from './html.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,4 +1,4 @@ | ||
import createTag from '../createTag'; | ||
import createTag from '../createTag/index.js'; | ||
|
||
const id = createTag(); | ||
|
||
|
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 +1 @@ | ||
export default from './id'; | ||
export default from './id.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,34 +1,34 @@ | ||
// core | ||
export createTag from './createTag'; | ||
export createTag from './createTag/index.js'; | ||
|
||
// transformers | ||
export inlineArrayTransformer from './inlineArrayTransformer'; | ||
export removeNonPrintingValuesTransformer from './removeNonPrintingValuesTransformer'; | ||
export replaceResultTransformer from './replaceResultTransformer'; | ||
export replaceStringTransformer from './replaceStringTransformer'; | ||
export replaceSubstitutionTransformer from './replaceSubstitutionTransformer'; | ||
export splitStringTransformer from './splitStringTransformer'; | ||
export stripIndentTransformer from './stripIndentTransformer'; | ||
export trimResultTransformer from './trimResultTransformer'; | ||
export inlineArrayTransformer from './inlineArrayTransformer/index.js'; | ||
export removeNonPrintingValuesTransformer from './removeNonPrintingValuesTransformer/index.js'; | ||
export replaceResultTransformer from './replaceResultTransformer/index.js'; | ||
export replaceStringTransformer from './replaceStringTransformer/index.js'; | ||
export replaceSubstitutionTransformer from './replaceSubstitutionTransformer/index.js'; | ||
export splitStringTransformer from './splitStringTransformer/index.js'; | ||
export stripIndentTransformer from './stripIndentTransformer/index.js'; | ||
export trimResultTransformer from './trimResultTransformer/index.js'; | ||
|
||
// tags | ||
export codeBlock from './codeBlock'; | ||
export commaLists from './commaLists'; | ||
export commaListsAnd from './commaListsAnd'; | ||
export commaListsOr from './commaListsOr'; | ||
export html from './html'; | ||
export id from './id'; | ||
export inlineLists from './inlineLists'; | ||
export oneLine from './oneLine'; | ||
export oneLineCommaLists from './oneLineCommaLists'; | ||
export oneLineCommaListsAnd from './oneLineCommaListsAnd'; | ||
export oneLineCommaListsOr from './oneLineCommaListsOr'; | ||
export oneLineInlineLists from './oneLineInlineLists'; | ||
export oneLineTrim from './oneLineTrim'; | ||
export safeHtml from './safeHtml'; | ||
export source from './source'; | ||
export stripIndent from './stripIndent'; | ||
export stripIndents from './stripIndents'; | ||
export codeBlock from './codeBlock/index.js'; | ||
export commaLists from './commaLists/index.js'; | ||
export commaListsAnd from './commaListsAnd/index.js'; | ||
export commaListsOr from './commaListsOr/index.js'; | ||
export html from './html/index.js'; | ||
export id from './id/index.js'; | ||
export inlineLists from './inlineLists/index.js'; | ||
export oneLine from './oneLine/index.js'; | ||
export oneLineCommaLists from './oneLineCommaLists/index.js'; | ||
export oneLineCommaListsAnd from './oneLineCommaListsAnd/index.js'; | ||
export oneLineCommaListsOr from './oneLineCommaListsOr/index.js'; | ||
export oneLineInlineLists from './oneLineInlineLists/index.js'; | ||
export oneLineTrim from './oneLineTrim/index.js'; | ||
export safeHtml from './safeHtml/index.js'; | ||
export source from './source/index.js'; | ||
export stripIndent from './stripIndent/index.js'; | ||
export stripIndents from './stripIndents/index.js'; | ||
|
||
// deprecated | ||
export TemplateTag from './TemplateTag'; | ||
export TemplateTag from './TemplateTag/index.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 +1 @@ | ||
export default from './inlineArrayTransformer'; | ||
export default from './inlineArrayTransformer.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './inlineLists'; | ||
export default from './inlineLists.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './oneLine'; | ||
export default from './oneLine.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './oneLineCommaLists'; | ||
export default from './oneLineCommaLists.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './oneLineCommaListsAnd'; | ||
export default from './oneLineCommaListsAnd.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './oneLineCommaListsOr'; | ||
export default from './oneLineCommaListsOr.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default from './oneLineInlineLists'; | ||
export default from './oneLineInlineLists.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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't quite figure out how to include linting the CommonJS root files without ESLint throwing an error, hope this is okay.