Igor Savin
800c3db6b2
Remove dependency
2026-03-20 23:12:25 +01:00
Igor Savin
be945bb7bd
Address comments
2026-03-20 23:12:25 +01:00
Igor Savin
824e3789c8
Cleanup
2026-03-20 23:12:25 +01:00
Igor Savin
f1421eb2ab
Remove grunt, add s3 publishing tests
2026-03-20 23:12:25 +01:00
Igor Savin
b5ad730473
Improve error handling
2026-03-19 22:05:55 +01:00
Igor Savin
ff02463429
Make CLI ESM for compatibility with new yargs
2026-03-19 22:05:55 +01:00
Igor Savin
1b321a8bef
add tstyche tests
2026-03-19 22:05:55 +01:00
Igor Savin
92e842f82e
update dependencies
2026-03-19 22:05:55 +01:00
Jakob Linskeseder
6f1de2025e
Explicitly set region for AWS S3 publishing
...
Fixes the following error:
`Error: Region is missing`
2026-03-18 21:29:06 +01:00
Jakob Linskeseder
d025292e06
Migrate AWS SDK for JavaScript v2 APIs to v3
...
This was cherry-picked from https://github.com/handlebars-lang/handlebars.js/pull/2020 .
2026-03-18 20:46:45 +01:00
Jakob Linskeseder
71350d90ec
Don't fail tests if Git is not available
...
I need this because I run Node inside a
minimal container for security reasons.
2026-03-18 20:46:45 +01:00
Igor Savin
bf93bafeca
Modernize benchmarks ( #2132 )
...
* Introduce benchmarks
2026-03-17 23:43:46 +01:00
Igor Savin
70b8f1145d
feat: migrate to RSPack ( #2131 )
...
* Migrate to RSPack
* Add tests to CI, address coverage
* fix: Restore AWS sdk
* add simple serve
2026-03-14 23:08:19 +01:00
Igor Savin
2f68d9425b
Migrate to oxlint and oxfmt v2 ( #2130 )
...
* Migrate to oxlint and oxfmt
* Address review comments
2026-03-10 17:27:44 +01:00
Igor Savin
d65683434d
Convert tests to vitest ( #2127 )
...
* Convert tests to vitest
* fix git tests
* Cleanup
* Convert ignore comments
* address code review comments
2026-03-02 21:33:52 +01:00
Jakob Linskeseder
e534a911f3
Upgrade prettier to v2
...
Prettier v2 has the following breaking changes:
* enforces spaces between `function` and params
* enforces trailing commas by default
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
f6ff3bf52b
Upgrade to ECMAScript 2020
...
This is needed in order to use `globalThis`, see #1894 .
It also made it possible to remove some old polyfills and fallbacks.
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
903ca504b5
Remove unused parser tests
...
Parser tests are not used anymore, since the parser is
now living in a separate package.
2022-10-14 13:56:17 +02:00
Jakob Linskeseder
30bd78d457
Enable IDE code-highlighting for bin-file
...
By adding the `.js`-extension to the bin-file, IDEs will
know that js code-highlighting should be applied to the
file, which makes it easier for devs to read the code.
2022-01-02 19:19:00 +01:00
Jakob Linskeseder
82c613244a
Merge branch '4.x' into merge-4.x
2021-12-29 23:10:11 +01:00
Jakob Linskeseder
715f4af179
Remove redundant task-part in task-tests-folder
...
Second part of reorganizing and cleaning up test-folders.
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
3bd0fa8b32
Move bench-folder in tests-folder
...
First part of reorganizing and cleaning up test-folders.
2021-12-29 21:35:16 +01:00
Chris Garrett
19bdace85a
[FEAT] Extract the Handlebars parser ( #1713 )
...
Extracts the parser to `@handlebars/parser`, where it can be shared
between different implementations. This means that e.g. Glimmer/Ember
will be able to iterate on new features without forcing Handlebars to
adopt them immediately, and vice versa. All implementors will be able to
absorb changes as it makes sense for them.
2021-02-15 08:56:25 +01:00
Hannah Wolfe
a39bfa5fe3
tests: added failing test for issue #1673
...
- demonstrates the regression
2020-04-03 21:03:29 +01:00
Hannah Wolfe
4671c4b383
Use tmp directory for files written during tests
...
- Add spec/tmp directory with .gitkeep file to indicate the folder is intentional
- Add the folder contents to .gitignore
- Use this folder to output the sourcemap file during bin tests. This file is a sideeffect of the main test
2020-04-01 18:04:14 +01:00
DeeDeeG
e46baa1fe2
tasks/test-bin.js: Delete duplicate test
...
Per comment by @ErisDS on the GitHub PR:
https://github.com/wycats/handlebars.js/pull/1666#issuecomment-606805248
2020-04-01 17:25:35 +01:00
Aori Nevo
80c4516fda
chore: add unit tests for cli options ( #1666 )
...
- adds full unit tests for all cli options
- demonstrates that nothing changes between minimist and yargs except a minor order change in the --help text
- proves b9c4b253e works the same as before
Co-authored-by: fabb <fabb@users.noreply.github.com >
2020-03-31 16:54:11 +01:00
Nils Knappmeier
ad63f5189f
chore: add missing "await" in aws-s3 publishing code
...
closes #1644
2020-01-21 21:52:23 +01:00
Nils Knappmeier
187d611e8c
test: add path to nodeJs when running test:bin
...
- this allows the test to be run in a debugger
without the complete PATH
2020-01-08 23:17:23 +01:00
Nils Knappmeier
d337f40d0e
test: show diff when test:bin fails
2020-01-08 23:17:23 +01:00
Nils Knappmeier
14b621caf5
test/style: remove or hide unused code in git.js, add tests
2019-12-14 18:41:06 +01:00
Nils Knappmeier
1ec1737d24
test/style: refactor remaining grunt tasks to use promises instead of callbacks
2019-12-14 18:41:06 +01:00
Nils Knappmeier
1ebce2b53c
test/style: use nyc instead of istanbul, npm audit fix
2019-12-14 18:41:06 +01:00
Nils Knappmeier
3a5b65e02b
test/style: refactor parser task
2019-12-14 18:41:06 +01:00
Nils Knappmeier
dde108e283
test/style: refactor test-task to make it more readable
2019-12-14 18:41:06 +01:00
Nils Knappmeier
dc5495216d
chore: change eslint-rules for tasks/
...
- use es2017 rules as NodeJS supports it today
- add "prefer-const"
2019-12-14 18:41:06 +01:00
Nils Knappmeier
e97685e989
style: reformat all files using prettier
2019-12-03 22:37:15 +01:00
Nils Knappmeier
c02b05fa81
fix: use !== 0 instead of != 0
2019-11-15 16:38:28 +01:00
Nils Knappmeier
048f2ce7d2
refactor: replace "async" with "neo-async"
...
The main reason is that neo-async takes a lot less space due to the missing lodash-dependency.
The other is speed.
closes #1431
2019-02-18 19:26:38 +01:00
Nils Knappmeier
bacd473fe6
chore: fix components/handlebars package.json and auto-update on release
2019-01-02 01:07:05 +01:00
Nils Knappmeier
5b76f041b3
Fix build on Windows
...
Closes #1233
- Handle path-separators properly. Use "path.sep" instead of "/".
Or use "require.resolve()" if possible
- Use "execFile" instead of "exec" to run the Handlebars executable.
This prevents problems due to (missing) shell escaping.
- Use explicit call to "node" in order to run the executable on Windows.
- Add "appveyor"-CI in order to run regular tests on Windows.
2017-08-23 22:29:30 +02:00
Luiz Américo
cc554a5813
Fix build in windows
...
(cherry picked from commit 275ab37 )
2017-05-15 00:11:59 +02:00
Nils Knappmeier
2e21e2bc9a
Run integration test with node handlebars -a ... on Windows
...
Fixes #1233
NodeJS files cannot be executed directly on Windows.
2017-05-14 23:37:24 +02:00
Nils Knappmeier
6e6269fcd7
Use istanbul/lib/cli.js instead of node_modules/.bin/istanbul
...
Fixes #1331
Due to the way, "bin"-files are distributed into the node_modules/.bin
directory on Windows, the task "test:cov" did not work on Windows.
This commit uses the node-script directly.
2017-05-14 14:43:14 +02:00
Nils Knappmeier
7378f854c3
Publish valid semver task independently of the branch
2017-05-13 00:57:46 +02:00
kpdecker
c21118d04b
Include tests for minimized artifacts
2015-11-19 22:53:31 -06:00
kpdecker
2d9a5151e8
Add source map flag for istanbul fork
2015-09-02 21:20:03 -05:00
kpdecker
454d20e3b2
Remove keen code
...
This hasn’t been running and is horribly out of date.
2015-09-02 11:40:35 -05:00
kpdecker
324d615726
Enforce 100% code coverage
2015-08-03 17:49:47 -05:00
kpdecker
9b1f9c7e44
Style updates
2015-08-03 17:03:37 -05:00