0.1.1-16 • Published 7 years ago
umeboshi-config-jamstack v0.1.1-16
umeboshi-config-jamstack
Umeboshi config to render JAMstack-like websites
Install
With npm:
npm install --save-dev umeboshi-config-jamstackOr yarn:
yarn add umeboshi-config-jamstack -DUsage
Add the config to umeboshi.config.js file in your project's root folder.
Note: add the config after all other configurations!
module.exports = {
extends: {
'umeboshi-config': {},
// ... other configurations...
'umeboshi-config-jamstack': {}
}
};Configuration options
port: Port at which the server-side rendering server will run. Defaults to9000. If the port is unavailable it will search the next available port.
module.exports = {
extends: {
'umeboshi-config': {},
// ... other configurations...
'umeboshi-config-jamstack': {
//listen on port 8080
port: 8080
}
}
};Usage
In some scenarios you would want your application to work differently whether you're rendering in the client or on the server.
To that end, the config exposes a global __SERVER__ variable which is true on server and false on the client.
Eslint configuration
To prevent undefined variable error in Eslint just add the following lines to your project's eslintrc.json file
{
"globals": {
"__SERVER__": true
}
}1.0.0-rc.2
7 years ago
1.0.0-rc.1
7 years ago
1.0.0-rc.0
7 years ago
0.1.1-16
7 years ago
0.1.1-15
7 years ago
0.1.1-14
7 years ago
0.1.1-13
8 years ago
0.1.1-12
8 years ago
0.1.1-11
8 years ago
0.1.1-10
8 years ago
0.1.1-9
8 years ago
0.1.1-8
8 years ago
0.1.1-7
8 years ago