-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- leverage collectstatic on app/ (fixes #6, fixes #21) - replace RequireJS build with ES modules (see wq/wq.app#111) - move --with-npm template to @wq/cra-template (in wq.start repo) - implement service worker (see wq/wq.app#63, wq/wq.app#107) - drop support for PhoneGap Build and Application Cache (see wq/wq.app#121)
- Loading branch information
Showing
38 changed files
with
110 additions
and
895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This folder is only for use with `wq start --without-npm`. Projects using `wq start --with-npm` will use [@wq/cra-template] instead. | ||
|
||
[@wq/cra-template]: https://github.com/wq/wq.start/tree/master/packages/cra-template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import url("./wq.css"); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
requirejs.config({ | ||
'baseUrl': '/js/lib', | ||
'paths': { | ||
'{{ project_name }}': '../{{ project_name }}', | ||
'data': '../data/' | ||
import wq from './wq.js'; | ||
import config from './data/config.js'; | ||
import version from './data/version.js'; | ||
|
||
wq.use({ | ||
context() { | ||
return { version }; | ||
} | ||
}); | ||
|
||
requirejs(['{{ project_name }}/main']); | ||
wq.init({ | ||
...config, | ||
router: { | ||
'base_url': '' | ||
}, | ||
store: { | ||
'service': '', | ||
'defaults': {'format': 'json'} | ||
}, | ||
material: { | ||
theme: { | ||
primary: '#550099', | ||
secondary: '#0dccb1' | ||
} | ||
}, | ||
map: { | ||
bounds: [[44.7, -93.6], [45.2, -92.8]] | ||
} | ||
}).then(() => { | ||
wq.prefetchAll(); | ||
}); | ||
|
||
if (config.debug) { | ||
window.wq = wq; | ||
} | ||
|
||
navigator.serviceWorker.register('/service-worker.js'); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.