Package.json - llorsat/wonkajs GitHub Wiki

The file that define our project and that include the settings is the package.json, here you can read the attributes that can be declared on it:

settings.api

The api url base where you could connect your project

settings.i18n

Object that include the definition for i18n support, this attribute include others:

settings.i18n.languages

Array with language iso code, that would be supported.

settings.i18n.files

file extension where wonka will search for i18n strings.

settings.i18n.blacklist

directories where wonka wont search for i18n strings

settings.deploy

settings.deploy.folders

Array with folder names on project root that will be copied when deploy is generated, the folders allowed on project are "images", "fonts", "icons", the folders "stylesheets", "libraries", "root", "core" aren't necessary to add it, if you need to add another folder excluding them, just do it.

settings.session_engine

The engine that would manage the sessions, by default is "localStorage", but you can set the "sessionStorage" if you want.

settings.auth_module

The application that will have the user object that will be used for the session management.