-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently using using my fork: https://github.com/jbboehr/handlebars.js/tree/remove-equals-4.x Awaiting PR: handlebars-lang/handlebars.js#1683 * Rewrote everything in TypeScript * Switched the license to `AGPL-3.0-or-later`. The specification data is still licensed under the `MIT` license, as it is extracted from `handlebars.js` * `description` now includes all `describe($description, ...)` from the handlebars test suite * `exception` can now be either `true`, a string, or a regex. * `message` used to be the exception message, but will now be any extra message noted in the handlebars.js test suite * `options` was renamed to `runtimeOptions` to differentiate from `compileOptions` * Using a new version format `104.7.6` which is: `(myMajor * 100 + handlebarsMajor) + '.' + (myMinor * 100 + handlebarsMinor) + '.' + (myPatch * 100 + handlebarsPatch)` * `number` is now included in tests (besides the first implied `00`) that have multiple cases * `compat` is removed in favor of `compileOptions.compat` * `globalPartials`, `globalDecorators`, and `globalHelpers` are now removed and merged into `partials`, `decorators`, and `helpers` instead Closes #7
- Loading branch information
Showing
55 changed files
with
7,606 additions
and
3,479 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
/dist/ | ||
/handlebars.js/ | ||
/patch/ | ||
/spec/ |
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,65 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript" | ||
], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"modules": true | ||
} | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"import" | ||
], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
|
||
"import/extensions": [ | ||
"error", | ||
"ignorePackages", | ||
{ | ||
"js": "never", | ||
"mjs": "never", | ||
"jsx": "never", | ||
"ts": "never", | ||
"tsx": "never" | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-prototype-builtins": "off", | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": "off" | ||
} | ||
} |
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,6 @@ | ||
* text=auto eol=lf | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitmodules export-ignore | ||
.travis.yml export-ignore | ||
dist linguist-generated=true |
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,3 +1,4 @@ | ||
*~ | ||
/node_modules/ | ||
/tmp/ | ||
/vendor/ |
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,3 +1,3 @@ | ||
[submodule "handlebars.js"] | ||
path = handlebars.js | ||
url = https://github.com/wycats/handlebars.js.git | ||
url = https://github.com/jbboehr/handlebars.js.git |
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,26 @@ | ||
# Changelog | ||
|
||
All Notable changes to `handlebars-spec` will be documented in this file. | ||
|
||
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. | ||
|
||
## [Unreleased] | ||
|
||
### Changed | ||
- Rewrote everything in TypeScript | ||
- Switched the license to `AGPL-3.0-or-later`. The specification data is still licensed under the `MIT` license, as it is extracted from `handlebars.js` | ||
- `description` now includes all `describe($description, ...)` from the handlebars test suite | ||
- `exception` can now be either `true`, a string, or a regex. | ||
- `message` used to be the exception message, but will now be any extra message noted in the handlebars.js test suite | ||
- `options` was renamed to `runtimeOptions` to differentiate from `compileOptions` | ||
- Using a new version format `104.7.6` which is: `(myMajor * 100 + handlebarsMajor) + '.' + (myMinor * 100 + handlebarsMinor) + '.' + (myPatch * 100 + handlebarsPatch)` | ||
|
||
### Added | ||
- `number` is now included in tests (besides the first implied `00`) that have multiple cases | ||
|
||
### Removed | ||
- `compat` is removed in favor of `compileOptions.compat` | ||
- `globalPartials`, `globalDecorators`, and `globalHelpers` are now removed and merged into | ||
`partials`, `decorators`, and `helpers` instead | ||
|
||
[Unreleased]: https://github.com/jbboehr/handlebars.c/compare/v4.0.5-p1...HEAD |
Oops, something went wrong.