Skip to content

Commit eacd37c

Browse files
committed
Initial Commit from Ember CLI v2.5.0
_..., ,:^;,...; -+===;. ,,--++====++-,,, .: /....., :::::~+++++#:,+#++++++++++++++++++#*..: /,...... (,,,,,,::=+++##++++++++++++++++++++++#. :....../ ...,,,,,::++++++++++++++++++++++++++++++*..,...: *..+...,#@@@@@@@@@++++++++++++++++++++++#*....* @#,;##############@@@+*+#@@@@@@@@@@#*++#..< *@##@@+,-*^^^*-+@####@@@######@@@#####@@,,,+ @#@* @#@@@@#@@+--*^^*--#@@@@@@# @#@. @# @##+++@#, .@@#@@ #@# @@ +@@++++#@@ @@ :@@ :@#* @#@++++++@#* #@ @@+ :*+@@#;,.__.+@#@+,-^^.++@# @@++ ;* :*@@@##@@@@;++r._j^.+@##@+,.__,,@@++. /* ........+++++++++++++#@@@@@###@@#++++, ,: ...,@@@#++===----==@@@####,,....+++++ .: ......@@##@\ ; :@####@,,...... +++. ; .........@###, ; ;xx#@;,,..... *;+, | ........,*;xxxx--^--=xxx,........ :+#; ; ......,,;xxxxxxxxxxxxx;,..... *+# ; ......,::xxxx;. ...... +. . *; ......... +### .... / ,. /:| ,. .+: ... ;##++##, . ,#. (..v..;*./ ** ## ###* .:*&&&+. \.,....<, #&+**==-..,,__ ;## ### :,*+&&&&&&&v+#&,,.._/ #&&&&*...,::,,. ##; ,##* .*****;:&&&&&&&&& ,+*+;~*..*** *.* ### ###* ******* *+#&;* ##,;## **** :, ** ##### ## ### ###, ######## .##### ;## ## ####### ;## #### ,###. ########## ######## ### #### ### ### ### ########## #### #### ,## ### #######* ### ,### ##############: ## ### #### ,## :#### ### ##; ########## ########### ## .## ,### ####### ##### :###### ###### .###### #### ## ### ### ######* :##### #### ############# #### ################ ######## ### #####* *#* #: :### *###* *#### #*
1 parent 342df56 commit eacd37c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+615
-67
lines changed

addon/ng2/commands/easter-egg.ts

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,23 @@ function pickOne(of: string[]): string {
88
}
99

1010

11-
export default function(name: string) {
12-
return Command.extend({
13-
name: name,
14-
works: 'insideProject',
11+
export default Command.extend({
12+
works: 'insideProject',
1513

16-
run: function (commandOptions: any, rawArgs: string[]): Promise<void> {
17-
(this as any)[stringUtils.camelize(this.name)](commandOptions, rawArgs);
14+
run: function(): Promise<void> {
15+
this.makeThisAwesome();
16+
return Promise.resolve();
17+
},
1818

19-
return Promise.resolve();
20-
},
21-
22-
makeThisAwesome: function() {
23-
const phrase = pickOne([
24-
`You're on it, there's nothing for me to do!`,
25-
`Let's take a look... nope, it's all good!`,
26-
`You're doing fine.`,
27-
`You're already doing great.`,
28-
`Nothing to do; already awesome. Exiting.`,
29-
`Error 418: As Awesome As Can Get.`
30-
]);
31-
console.log(chalk.green(phrase));
32-
}
33-
});
34-
};
19+
makeThisAwesome: function() {
20+
const phrase = pickOne([
21+
`You're on it, there's nothing for me to do!`,
22+
`Let's take a look... nope, it's all good!`,
23+
`You're doing fine.`,
24+
`You're already doing great.`,
25+
`Nothing to do; already awesome. Exiting.`,
26+
`Error 418: As Awesome As Can Get.`
27+
]);
28+
console.log(chalk.green(phrase));
29+
}
30+
});

addon/ng2/commands/serve.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as assign from 'lodash/assign';
1+
import {assign} from 'lodash';
22
import * as denodeify from 'denodeify';
33
const Command = require('ember-cli/lib/models/command');
44
const SilentError = require('silent-error');
@@ -28,7 +28,7 @@ export interface ServeTaskOptions {
2828
sslCert?: string;
2929
}
3030

31-
module.exports = Command.extend({
31+
const ServeCommand = Command.extend({
3232
name: 'serve',
3333
description: 'Builds and serves your app, rebuilding on file changes.',
3434
aliases: ['server', 's'],
@@ -148,4 +148,6 @@ module.exports = Command.extend({
148148
}
149149
});
150150

151-
module.exports.overrideCore = true;
151+
152+
ServeCommand.overrideCore = true;
153+
export default ServeCommand;

addon/ng2/commands/version.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ const VersionCommand = Command.extend({
4848
});
4949

5050

51-
module.exports = VersionCommand;
52-
module.exports.overrideCore = true;
51+
VersionCommand.overrideCore = true;
52+
export default VersionCommand;

addon/ng2/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
'github-pages-deploy': require('./commands/github-pages-deploy'),
2727

2828
// Easter eggs.
29-
'make-this-awesome': require('./commands/easter-egg')('make-this-awesome'),
29+
'make-this-awesome': require('./commands/easter-egg'),
3030

3131
// Configuration.
3232
'set': require('./commands/set'),

addon/ng2/models/config/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export class CliConfig<JsonType> {
2121
schema: Object,
2222
configJson: JsonType,
2323
fallbacks: JsonType[] = []) {
24-
this._config = new (SchemaClassFactory<JsonType>(schema))(configJson, ...fallbacks);
24+
const Klass = SchemaClassFactory<JsonType>(schema);
25+
this._config = new Klass(configJson, ...fallbacks);
2526
}
2627

2728
get config(): JsonType { return <any>this._config; }

foo/.bowerrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"directory": "bower_components",
3+
"analytics": false
4+
}

foo/.editorconfig

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.js]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.hbs]
21+
insert_final_newline = false
22+
indent_style = space
23+
indent_size = 2
24+
25+
[*.css]
26+
indent_style = space
27+
indent_size = 2
28+
29+
[*.html]
30+
indent_style = space
31+
indent_size = 2
32+
33+
[*.{diff,md}]
34+
trim_trailing_whitespace = false

foo/.ember-cli

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
/**
3+
Ember CLI sends analytics information by default. The data is completely
4+
anonymous, but there are times when you might want to disable this behavior.
5+
6+
Setting `disableAnalytics` to true will prevent any data from being sent.
7+
*/
8+
"disableAnalytics": false
9+
}

foo/.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
7+
# dependencies
8+
/node_modules
9+
/bower_components
10+
11+
# misc
12+
/.sass-cache
13+
/connect.lock
14+
/coverage/*
15+
/libpeerconnection.log
16+
npm-debug.log
17+
testem.log

foo/.jshintrc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"predef": [
3+
"document",
4+
"window",
5+
"-Promise"
6+
],
7+
"browser": true,
8+
"boss": true,
9+
"curly": true,
10+
"debug": false,
11+
"devel": true,
12+
"eqeqeq": true,
13+
"evil": true,
14+
"forin": false,
15+
"immed": false,
16+
"laxbreak": false,
17+
"newcap": true,
18+
"noarg": true,
19+
"noempty": false,
20+
"nonew": false,
21+
"nomen": false,
22+
"onevar": false,
23+
"plusplus": false,
24+
"regexp": false,
25+
"undef": true,
26+
"sub": true,
27+
"strict": false,
28+
"white": false,
29+
"eqnull": true,
30+
"esnext": true,
31+
"unused": true
32+
}

0 commit comments

Comments
 (0)