author | ymh <ymh.work@gmail.com> |
Mon, 25 Apr 2016 13:21:42 +0200 | |
changeset 156 | 7203efa0ddbf |
parent 90 | f0609941aa98 |
child 261 | 02e2396bcbbc |
permissions | -rw-r--r-- |
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
1 |
/* jshint node: true */ |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
2 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
3 |
module.exports = function(environment) { |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
4 |
var ENV = { |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
5 |
rootElement: '#corpus-app', |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
6 |
modulePrefix: 'app-client', |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
7 |
environment: environment, |
84 | 8 |
baseURL: '/corpus/', |
49
66739650678f
update main index to add the 2 kind of menu (hash and history) and set the locationType to hash
nowmad@nowmads-macbook-pro.local
parents:
8
diff
changeset
|
9 |
// locationType: '', |
66739650678f
update main index to add the 2 kind of menu (hash and history) and set the locationType to hash
nowmad@nowmads-macbook-pro.local
parents:
8
diff
changeset
|
10 |
// contentSecurityPolicy: { |
66739650678f
update main index to add the 2 kind of menu (hash and history) and set the locationType to hash
nowmad@nowmads-macbook-pro.local
parents:
8
diff
changeset
|
11 |
// 'default-src': "'none'", |
66739650678f
update main index to add the 2 kind of menu (hash and history) and set the locationType to hash
nowmad@nowmads-macbook-pro.local
parents:
8
diff
changeset
|
12 |
// 'style-src': "'self' 'http://localhost:4200'" |
66739650678f
update main index to add the 2 kind of menu (hash and history) and set the locationType to hash
nowmad@nowmads-macbook-pro.local
parents:
8
diff
changeset
|
13 |
// }, |
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
14 |
APP: { |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
15 |
baseStatic: '', |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
16 |
// Here you can pass flags/options to your application instance |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
17 |
// when it is created |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
18 |
} |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
19 |
}; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
20 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
21 |
if (environment === 'development') { |
8 | 22 |
ENV.APP.baseStatic = ''; |
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
23 |
// ENV.APP.LOG_RESOLVER = true; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
24 |
// ENV.APP.LOG_ACTIVE_GENERATION = true; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
25 |
// ENV.APP.LOG_TRANSITIONS = true; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
26 |
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
27 |
// ENV.APP.LOG_VIEW_LOOKUPS = true; |
90
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
28 |
ENV.contentSecurityPolicy = { |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
29 |
'default-src': "'none'", |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
30 |
'script-src': "'self' *", |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
31 |
'font-src': "'self'", |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
32 |
'connect-src': "'self' *", |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
33 |
'img-src': "'self'", |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
34 |
'style-src': "'self' *", |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
35 |
'media-src': "'self'" |
f0609941aa98
update libraries and go ember 2.2.0
nowmad@23.1.168.192.in-addr.arpa
parents:
84
diff
changeset
|
36 |
}; |
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
37 |
} |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
38 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
39 |
if (environment === 'test') { |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
40 |
// Testem prefers this... |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
41 |
ENV.baseURL = '/'; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
42 |
ENV.locationType = 'none'; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
43 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
44 |
// keep test console output quieter |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
45 |
ENV.APP.LOG_ACTIVE_GENERATION = false; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
46 |
ENV.APP.LOG_VIEW_LOOKUPS = false; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
47 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
48 |
ENV.APP.rootElement = '#ember-testing'; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
49 |
} |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
50 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
51 |
if (environment === 'production') { |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
52 |
ENV.APP.baseStatic = '/modules/corpus/app-client/'; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
53 |
} |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
54 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
55 |
return ENV; |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
56 |
}; |