Skip to content

Commit 35ea8e6

Browse files
authored
Merge pull request #1774 from handlebars-lang/merge-4.x
Merge branch 4.x into master
2 parents 4da5882 + a98b01c commit 35ea8e6

File tree

103 files changed

+19216
-985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+19216
-985
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ indent_size = 2
55
insert_final_newline = true
66
trim_trailing_whitespace = true
77

8+
[*.yml]
9+
indent_size = 2
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*.sublime-project
55
*.sublime-workspace
66
npm-debug.log
7-
sauce_connect.log*
87
.idea
98
yarn-error.log
109
node_modules
@@ -14,7 +13,7 @@ node_modules
1413
# Generated files
1514
/coverage/
1615
/dist/
17-
/integration-testing/*/dist/
16+
/tests/integration/*/dist/
1817

1918
# Third-party or files that must remain unchanged
2019
/spec/expected/

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
open-pull-requests-limit: 0
6+
schedule:
7+
interval: weekly
8+
allow:
9+
- dependency-type: production

.github/workflows/ci.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: {}
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: 'ubuntu-latest'
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: '16'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
test:
29+
name: Test (Node)
30+
runs-on: ${{ matrix.operating-system }}
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
operating-system: ['ubuntu-latest', 'windows-latest']
35+
# https://nodejs.org/en/about/releases/
36+
node-version: ['10', '12', '14', '16', '17']
37+
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v2
41+
with:
42+
submodules: true
43+
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v2
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
49+
- name: Install dependencies
50+
run: npm ci
51+
52+
- name: Test
53+
run: npm run test
54+
55+
- name: Test (Integration)
56+
# https://github.com/webpack/webpack/issues/14532
57+
if: ${{ matrix.node-version != '17' }}
58+
run: |
59+
cd ./tests/integration/rollup-test && ./test.sh && cd -
60+
cd ./tests/integration/webpack-babel-test && ./test.sh && cd -
61+
cd ./tests/integration/webpack-test && ./test.sh && cd -
62+
63+
browser:
64+
name: Test (Browser)
65+
runs-on: 'ubuntu-latest'
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v2
69+
with:
70+
submodules: true
71+
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v2
74+
with:
75+
node-version: '16'
76+
77+
- name: Install dependencies
78+
run: npm ci
79+
80+
- name: Install Playwright
81+
run: |
82+
npx playwright install-deps
83+
npx playwright install
84+
85+
- name: Build
86+
run: npx grunt prepare
87+
88+
- name: Test
89+
run: npm run test:browser

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*.sublime-project
55
*.sublime-workspace
66
npm-debug.log
7-
sauce_connect.log*
87
.idea
98
/yarn-error.log
109
/yarn.lock
@@ -15,5 +14,5 @@ node_modules
1514
# Generated files
1615
/coverage/
1716
/dist/
18-
/integration-testing/*/dist/
17+
/tests/integration/*/dist/
1918
/spec/tmp/*

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ node_modules
1414
# Generated files
1515
/coverage/
1616
/dist/
17-
/integration-testing/*/dist/
17+
/tests/integration/*/dist/
1818

1919
# Third-party or files that must remain unchanged
2020
/spec/expected/

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,22 @@ Please don't open issues for security issues. Instead, file a report at https://
66

77
## Reporting Issues
88

9-
Please see our [FAQ](https://github.com/wycats/handlebars.js/blob/master/FAQ.md) for common issues that people run into.
9+
Please see our [FAQ](https://github.com/handlebars-lang/handlebars.js/blob/master/FAQ.md) for common issues that people run into.
1010

1111
Should you run into other issues with the project, please don't hesitate to let us know by filing an [issue][issue]!
1212

1313
In general we are going to ask for an **example** of the problem failing, which can be as simple as a jsfiddle/jsbin/etc. We've put together a jsfiddle **[template][jsfiddle]** to ease this. (We will keep this link up to date as new releases occur, so feel free to check back here).
1414

1515
Pull requests containing only failing tests demonstrating the issue are welcomed and this also helps ensure that your issue won't regress in the future once it's fixed.
1616

17-
Documentation issues on the handlebarsjs.com site should be reported on [handlebars-site](https://github.com/wycats/handlebars-site).
17+
Documentation issues on the [handlebarsjs.com](https://handlebarsjs.com) site should be reported on [handlebars-lang/docs](https://github.com/handlebars-lang/docs).
1818

1919
## Branches
2020

2121
- The branch `4.x` contains the currently released version. Bugfixes should be made in this branch.
2222
- The branch `master` contains the next version. A release date is not yet specified. Maintainers
2323
should merge the branch `4.x` into the master branch regularly.
24-
25-
* The branch `3.x` comtains the legacy version `3.x`. Bugfixes are applied seperately (if needed). The branch will not
24+
- The branch `3.x` contains the legacy version `3.x`. Bugfixes are applied separately (if needed). The branch will not
2625
be merged with any of the other branches.
2726

2827
## Pull Requests
@@ -56,7 +55,7 @@ You can also run our set of benchmarks with `grunt bench`.
5655
The `grunt dev` implements watching for tests and allows for in browser testing at `http://localhost:9999/spec/`.
5756

5857
If you notice any problems, please report them to the GitHub issue tracker at
59-
[http://github.com/wycats/handlebars.js/issues](http://github.com/wycats/handlebars.js/issues).
58+
[http://github.com/handlebars-lang/handlebars.js/issues](http://github.com/handlebars-lang/handlebars.js/issues).
6059

6160
## Running Tests
6261

@@ -87,38 +86,35 @@ We do linting and formatting in two phases:
8786

8887
- Committed files are linted and formatted in a pre-commit hook. In this stage eslint-errors are forbidden,
8988
while warnings are allowed.
90-
- The travis-ci job also lints all files and checks if they are formatted correctly. In this stage, warnings
89+
- The GitHub CI job also lints all files and checks if they are formatted correctly. In this stage, warnings
9190
are forbidden.
9291

93-
You can use the following scripts to make sure that the travis-job does not fail:
92+
You can use the following scripts to make sure that the CI job does not fail:
9493

9594
- **npm run lint** will run `eslint` and fail on warnings
9695
- **npm run format** will run `prettier` on all files
97-
- **npm run check-before-pull-request** will perform all most checks that travis does in its build-job, excluding the "integration-test".
96+
- **npm run check-before-pull-request** will perform all most checks that our CI job does in its build-job, excluding the "integration-test".
9897
- **npm run integration-test** will run integration tests (using old NodeJS versions and integrations with webpack, babel and so on)
9998
These tests only work on a Linux-machine with `nvm` installed (for running tests in multiple versions of NodeJS).
10099

101100
## Releasing the latest version
102101

103102
Before attempting the release Handlebars, please make sure that you have the following authorizations:
104103

105-
- Push-access to `wycats/handlebars.js`
104+
- Push-access to `handlebars-lang/handlebars.js`
106105
- Publishing rights on npmjs.com for the `handlebars` package
107106
- Publishing rights on gemfury for the `handlebars-source` package
108107
- Push-access to the repo for legacy package managers: `components/handlebars`
109108
- Push-access to the production-repo of the handlebars site: `handlebars-lang/handlebarsjs.com-github-pages`
110109

111110
_When releasing a previous version of Handlebars, please look into the CONTRIBUNG.md in the corresponding branch._
112111

113-
Handlebars utilizes the [release yeoman generator][generator-release] to perform most release tasks.
114-
115112
A full release may be completed with the following:
116113

117114
```
118115
npm ci
119-
yo release
116+
npx grunt
120117
npm publish
121-
yo release:publish components handlebars.js dist/components/
122118
123119
cd dist/components/
124120
gem build handlebars-source.gemspec
@@ -135,13 +131,13 @@ in those places still point to the latest version
135131

136132
When everything is OK, the **handlebars site** needs to be updated.
137133

138-
Go to the master branch of the repo [handlebars-lang/handlebarsjs.com-github-pages](https://github.com/handlebars-lang/handlebarsjs.com-github-pages/tree/master)
134+
Go to the master branch of the repo [handlebars-lang/docs](https://github.com/handlebars-lang/docs/tree/master)
139135
and make a minimal change to the README. This will invoke a github-action that redeploys
140136
the site, fetching the latest version-number from the npm-registry.
141137
(note that the default-branch of this repo is not the master and regular changes are done
142138
in the `handlebars-lang/docs`-repo).
143139

144140
[generator-release]: https://github.com/walmartlabs/generator-release
145-
[pull-request]: https://github.com/wycats/handlebars.js/pull/new/master
146-
[issue]: https://github.com/wycats/handlebars.js/issues/new
141+
[pull-request]: https://github.com/handlebars-lang/handlebars.js/pull/new/master
142+
[issue]: https://github.com/handlebars-lang/handlebars.js/issues/new
147143
[jsfiddle]: https://jsfiddle.net/4nbwjaqz/4/

FAQ.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## How can I file a bug report:
44

5-
See our guidelines on [reporting issues](https://github.com/wycats/handlebars.js/blob/master/CONTRIBUTING.md#reporting-issues).
5+
See our guidelines on [reporting issues](https://github.com/handlebars-lang/handlebars.js/blob/master/CONTRIBUTING.md#reporting-issues).
66

77
## Why isn't my Mustache template working?
88

9-
Handlebars deviates from Mustache slightly on a few behaviors. These variations are documented in our [readme](https://github.com/wycats/handlebars.js#differences-between-handlebarsjs-and-mustache).
9+
Handlebars deviates from Mustache slightly on a few behaviors. These variations are documented in our [readme](https://github.com/handlebars-lang/handlebars.js#differences-between-handlebarsjs-and-mustache).
1010

1111
## Why is it slower when compiling?
1212

@@ -36,16 +36,18 @@
3636
```sh
3737
handlebars --version
3838
```
39+
3940
If using the integrated precompiler and
4041

4142
```javascript
4243
console.log(Handlebars.VERSION);
4344
```
45+
4446
On the client side.
4547

4648
We include the built client libraries in the npm package for those who want to be certain that they are using the same client libraries as the compiler.
4749

48-
Should these match, please file an issue with us, per our [issue filing guidelines](https://github.com/wycats/handlebars.js/blob/master/CONTRIBUTING.md#reporting-issues).
50+
Should these match, please file an issue with us, per our [issue filing guidelines](https://github.com/handlebars-lang/handlebars.js/blob/master/CONTRIBUTING.md#reporting-issues).
4951

5052
## How do I load the runtime library when using AMD?
5153

0 commit comments

Comments
 (0)