grunt-onesky-output
v0.1.2
Published
Pull translation from onesky
Downloads
5
Readme
grunt-onesky
Pull translation from Onesky
Getting Started
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-onesky-output --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-onesky-output');
The "onesky" task
Overview
In your project's Gruntfile, add a section named oneskoutput
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
oneskyoutput: {
oneskyoutput: {
default_options: {
}
},
},
});
Default Options
default_options.platformId
Type: String
Your Onesky plattformId
default_options.lang
Type: String
Onesky language like 'de_DE' to pull, if empty all languages will be pulled
default_options.path
Type: String
Default value: './tmp/lang'
A string value that is as the path where to store the language file.
Onesky Authentication
In order to be able to authenticate you need a file called 'onesky.json' with you onesky privatekey and publickey Don't forget to add 'onesky.json' to .gitignore in order to not expose your onesky account.
{
"publickey": "Your Onesky publickey",
"privatekey": "Your Onesky privatekey"
}
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
###0.1.0
- First release ###0.1.1
- Adjust single qoutes in key's ###0.1.2
- Remove unecessary console logging's