Skip to content

Instantly share code, notes, and snippets.

@artyomtrityak
Created June 13, 2014 10:56
Show Gist options
  • Save artyomtrityak/ad75e4c83e0e1d372c96 to your computer and use it in GitHub Desktop.
Save artyomtrityak/ad75e4c83e0e1d372c96 to your computer and use it in GitHub Desktop.
requirejs:
options:
baseUrl: '.'
appDir: 'public/app'
mainConfigFile: 'public/app/config.js'
waitSeconds: 60
optimize: 'uglify2'
removeCombined: true
preserveLicenseComments: false
useStrict: true
modules: [
name: 'config'
exclude: ['json!properties']
]
en:
options:
dir: 'app_builds/en'
ru:
options:
dir: 'app_builds/ru'
locale: 'ru-ru'
onBuildRead: (name, path, content) ->
console.log name
if name is 'config'
content = content.replace "locale: 'root'", "locale: 'ru-ru'"
content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment