@@ -16,7 +16,6 @@ module.exports = {
1616 ] ,
1717
1818 afterInstall : function ( options ) {
19- var wilddogUrl = options . url || 'https://YOUR-FIREBASE-NAME.wilddogio.com/' ;
2019
2120 var bowerDeps = [
2221 {
@@ -33,37 +32,27 @@ module.exports = {
3332 var r = chalk . red ;
3433 var out = EOL ;
3534
36- out += y ( 'WildEmber ' ) + ' installed.' + EOL +
35+ out += y ( 'wildember ' ) + ' installed.' + EOL +
3736 EOL +
3837 r ( 'CONFIGURATION REQUIRED' ) + EOL +
3938 EOL +
40- 'Please update ' + b ( 'config/environment.js' ) +
41- ' with your firebase settings. You can find these at ' +
42- 'https://console.firebase.google.com/ by clicking the ' +
43- m ( '[Add Firebase to your web app]' ) + ' button on the project overview panel.' +
39+ '请参考:https://github.com/ubuntuvim/WildEmber进行配置使用,或者参考下面的配置。' +
4440 EOL + EOL ;
4541
4642
47- out += "Example :" + EOL +
43+ out += "配置示例 :" + EOL +
4844 EOL +
49- g ( "// config/environment.js" ) + EOL +
50- "var ENV = {" + EOL +
51- " locationType: 'auto'," + EOL +
52- g ( " // ..." ) + EOL +
53- " firebase: {" + EOL +
54- " apiKey: 'xyz'," + EOL +
55- " authDomain: 'YOUR-FIREBASE-APP.firebaseapp.com'," + EOL +
56- " databaseURL: 'https://YOUR-FIREBASE-APP.firebaseapp.com'," + EOL +
57- " storageBucket: 'YOUR-FIREBASE-APP.appspot.com'," + EOL +
58- " }," + EOL +
59- EOL +
60- EOL +
61- g ( " // if using ember-cli-content-security-policy" ) + EOL +
62- " contentSecurityPolicy: {" + EOL +
63- " 'script-src': '\'self\' \'unsafe-eval\' apis.google.com'," + EOL +
64- " 'frame-src': '\'self\' https://*.firebaseapp.com'," + EOL +
65- " 'connect-src': '\'self\' wss://*.firebaseio.com https://*.googleapis.com'" + EOL +
66- " }," + EOL +
45+ g ( "// app/adapters/application.js" ) + EOL +
46+ "" + EOL +
47+ "import DS from 'ember-data';" + EOL +
48+ "import WildemberAdapter from 'wild-ember/adapters/wildember';" + EOL +
49+ "" + EOL +
50+ "export default WildemberAdapter.extend({" + EOL +
51+ " wilddogConfig: {" + EOL +
52+ " syncDomain: 'wildember.wilddog.com'," + EOL +
53+ " syncURL: 'https://wildember.wilddogio.com'" + EOL +
54+ " }" + EOL +
55+ "});" + EOL +
6756 EOL ;
6857
6958 this . ui . writeLine ( out ) ;
0 commit comments