Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Merge branch 'feature/23-simplify-requirejs-config'
Browse files Browse the repository at this point in the history
* feature/23-simplify-requirejs-config:
  (#23) project: simplified the RequireJS configuration
  • Loading branch information
x1B committed Jul 20, 2015
2 parents 362b881 + 3506f33 commit 92d7bf2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Last Changes

- [#23](https://github.com/LaxarJS/shop-demo/issues/23): project: simplified the RequireJS configuration
- [#21](https://github.com/LaxarJS/shop-demo/issues/21): use laxar-testing instead of laxar/laxar_testing
+ NEW FEATURE: see ticket for details
- [#22](https://github.com/LaxarJS/shop-demo/issues/22): project: switched to flow-based grunt tasks
Expand Down
14 changes: 2 additions & 12 deletions application/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,8 @@ window.laxar = ( function() {
name: 'LaxarJS ShopDemo',
description: 'A DemoApp to learn how LaxarJS works.',
theme: 'cube',
useMergedCss: mode === 'RELEASE',
useEmbeddedFileListings: mode === 'RELEASE',
fileListings: {
'application': 'var/listing/application_resources.json',
'bower_components': 'var/listing/bower_components_resources.json',
'includes': 'var/listing/includes_resources.json'
},
i18n: {
locales: {
'default': 'en'
}
}
useMergedCss: mode === 'PRODUCTION',
useEmbeddedFileListings: mode === 'PRODUCTION'
};

} )();
24 changes: 7 additions & 17 deletions require_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ var require = {
'angular-mocks': 'angular-mocks/angular-mocks',
'angular-route': 'angular-route/angular-route',
'angular-sanitize': 'angular-sanitize/angular-sanitize',
jjv: 'jjv/lib/jjv',
jjve: 'jjve/jjve',

// LaxarJS Core Testing:
'laxar': 'laxar/dist/laxar.with-deps',
'laxar-uikit': 'laxar-uikit/dist/laxar-uikit',
'laxar-path-default-theme': 'laxar-uikit/dist/themes/default.theme',

// LaxarJS Testing:
'laxar-testing': 'laxar-testing/dist/laxar-testing',
jasmine2: 'jasmine2/lib/jasmine-core/jasmine',
'promise-polyfill': 'promise-polyfill/Promise',

Expand All @@ -23,26 +26,13 @@ var require = {
'laxar-path-pages': '../application/pages',
'laxar-path-widgets': '../includes/widgets',
'laxar-path-themes': '../includes/themes',
'laxar-path-flow': '../application/flow/flow.json',

'laxar-application-dependencies': '../var/static/laxar_application_dependencies',

'laxar': 'laxar/dist/laxar',
'laxar-testing': 'laxar-testing/dist/laxar-testing',
'laxar-uikit': 'laxar-uikit/dist/laxar-uikit',
'laxar-uikit/controls': 'laxar-uikit/dist/controls',
'laxar-path-default-theme': 'laxar-uikit/dist/themes/default.theme'
'laxar-path-flow': '../application/flow/flow.json'
},
packages: [
{
name: 'laxar-application',
location: '..',
main: 'init'
},
{
name: 'moment',
location: 'moment',
main: 'moment'
}
],
shim: {
Expand Down

0 comments on commit 92d7bf2

Please sign in to comment.