Skip to content

Commit

Permalink
Merge pull request #1187 from kethinov/0.21.2
Browse files Browse the repository at this point in the history
0.21.2
  • Loading branch information
kethinov authored Aug 9, 2022
2 parents e24c752 + b2247c5 commit b9443a8
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 85 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

- Put your changes here...

## 0.21.2

- Fixed bug where the config auditor would complain about the `makeBuildArtifacts` param being set to string.
- Static site generator will now run the HTML validator against rendered templates in dev mode only.
- Various dependencies updated.

## 0.21.1

- Static site generator can now be supplied models by file instead of by configuration. If model data is not supplied by configuration, Roosevelt will try to automatically load a model from a JS file with the same name alongside the template if it exists instead.
Expand Down
76 changes: 38 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -767,48 +767,48 @@ Resolves to:
]
```
- Webpack bundle example declaring one bundle only used in `dev` mode:
```json
[
{
"env": "dev",
"config": {
"entry": "${js.sourcePath}/main.js",
"output": {
"path": "${publicFolder}/js",
"filename": "bundle.js"
}
- Webpack bundle example declaring one bundle only used in `dev` mode:
```json
[
{
"env": "dev",
"config": {
"entry": "${js.sourcePath}/main.js",
"output": {
"path": "${publicFolder}/js",
"filename": "bundle.js"
}
}
]
```
- Webpack bundle example declaring multiple bundles:
```json
[
{
"config": {
"entry": "${js.sourcePath}/main.js",
"output": {
"path": "${publicFolder}/js",
"filename": "bundle.js"
}
}
]
```
- Webpack bundle example declaring multiple bundles:
```json
[
{
"config": {
"entry": "${js.sourcePath}/main.js",
"output": {
"path": "${publicFolder}/js",
"filename": "bundle.js"
}
},
{
"config": {
"entry": "${js.sourcePath}/moreStuff.js",
"output": {
"path": "${publicFolder}/js",
"filename": "bundle2.js"
}
}
},
{
"config": {
"entry": "${js.sourcePath}/moreStuff.js",
"output": {
"path": "${publicFolder}/js",
"filename": "bundle2.js"
}
},
etc...
]
```
}
},
etc...
]
```
- Default: *[Object]*
Expand Down
2 changes: 1 addition & 1 deletion lib/scripts/configAuditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function configAudit (appDir) {
checkTypes(userParam, key, ['null', 'string'])
break
case 'makeBuildArtifacts':
checkTypes(userParam, key, ['boolean'])
checkTypes(userParam, key, ['boolean', 'string'])
break
case 'https': {
checkTypes(userParam, key, ['boolean', 'object'])
Expand Down
5 changes: 0 additions & 5 deletions lib/sourceParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,6 @@ module.exports = (params, app, appSchema) => {
// configure logger with params
const logger = new Logger(params.logging)

// if we're using Roosevelt as a static site generator, then we're always in dev mode
if (params.makeBuildArtifacts === 'staticsOnly') {
params.mode = 'development'
}

// set mode specific overrides
if (params.mode === 'production' || params.mode === 'production-proxy') {
process.env.NODE_ENV = 'production'
Expand Down
80 changes: 40 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/rooseveltframework/roosevelt/graphs/contributors"
}
],
"version": "0.21.1",
"version": "0.21.2",
"files": [
"defaultErrorPages",
"lib",
Expand Down

0 comments on commit b9443a8

Please sign in to comment.