Skip to content

Commit

Permalink
feat(build): build JSX templates/scripts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed May 10, 2019
1 parent 450dfd0 commit 2692b49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/yargs-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function commonArgs(yargs) {
})
.positional('files', {
describe: 'The template files to compile',
default: ['src/**/*.htl', 'src/**/*.js', 'cgi-bin/**/*.js'],
default: ['src/**/*.htl', 'src/**/*.js', 'src/**/*.jsx', 'cgi-bin/**/*.js'],
array: true,
type: 'string',
})
Expand Down
2 changes: 1 addition & 1 deletion test/testBuildCli.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('hlx build', () => {
sinon.assert.calledWith(mockBuild.withCacheEnabled, false);
sinon.assert.calledWith(mockBuild.withMinifyEnabled, false);
sinon.assert.calledWith(mockBuild.withTargetDir, '.hlx/build');
sinon.assert.calledWith(mockBuild.withFiles, ['src/**/*.htl', 'src/**/*.js', 'cgi-bin/**/*.js']);
sinon.assert.calledWith(mockBuild.withFiles, ['src/**/*.htl', 'src/**/*.js', 'src/**/*.jsx', 'cgi-bin/**/*.js']);
sinon.assert.calledOnce(mockBuild.run);
});

Expand Down
2 changes: 1 addition & 1 deletion test/testUpCli.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('hlx up', () => {
sinon.assert.calledWith(mockUp.withMinifyEnabled, false);
sinon.assert.calledWith(mockUp.withSaveConfig, false);
sinon.assert.calledWith(mockUp.withTargetDir, '.hlx/build');
sinon.assert.calledWith(mockUp.withFiles, ['src/**/*.htl', 'src/**/*.js', 'cgi-bin/**/*.js']);
sinon.assert.calledWith(mockUp.withFiles, ['src/**/*.htl', 'src/**/*.js', 'src/**/*.jsx', 'cgi-bin/**/*.js']);
sinon.assert.calledWith(mockUp.withOverrideHost, undefined);
sinon.assert.calledWith(mockUp.withLocalRepo, []);
sinon.assert.calledOnce(mockUp.run);
Expand Down

0 comments on commit 2692b49

Please sign in to comment.