Skip to content

Commit 433484b

Browse files
RicardoVarandadevCrossNet
authored andcommitted
chore(readme): change 'ng server' to 'ng serve'
Changed server to serve in order to maintain consistency throughout. renamed entry points
1 parent 42e6a71 commit 433484b

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Now you can use `angular-cli` via the command line:
267267
ng new foo
268268
cd foo
269269
npm link angular-cli
270-
ng server
270+
ng serve
271271
```
272272

273273
`npm link angular-cli` is needed because by default the globally installed `angular-cli` just loads
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
System.import('main')
1+
System.import('start-browser')
22
.catch(console.error.bind(console));

addon/ng2/blueprints/ng2/files/__path__/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{{/each}}
4242
<script>
4343
System.import('system-config.js').then(function () {
44-
System.import('main');
44+
System.import('start-browser');
4545
}).catch(console.error.bind(console));
4646
</script>
4747
{{/if}}
@@ -53,7 +53,7 @@
5353
{{/each}}
5454
<script>
5555
System.import('system-config.js').then(function () {
56-
System.import('main');
56+
System.import('start-browser');
5757
}).catch(console.error.bind(console));
5858
</script>
5959

addon/ng2/blueprints/ng2/files/__path__/system-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ System.config({
4646
map: {
4747
'@angular': 'vendor/@angular',
4848
'rxjs': 'vendor/rxjs',
49-
'main': 'main.js'
49+
'start-browser': 'start-browser.js'
5050
},
5151
packages: cliSystemConfigPackages
5252
});

addon/ng2/blueprints/ng2/files/__path__/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717

1818
"files": [
19-
"main.ts",<% if (isMobile) { %>
19+
"start-browser.ts",<% if (isMobile) { %>
2020
"main-app-shell.ts",<% } %>
2121
"typings.d.ts"
2222
]

addon/ng2/blueprints/ng2/files/angular-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"apps": [
77
{
8-
"main": "<%= sourceDir %>/main.ts",
8+
"main": "<%= sourceDir %>/start-browser.ts",
99
"tsconfig": "<%= sourceDir %>/tsconfig.json",
1010
"mobile": <%= isMobile %>,
1111
"universal" : <%= universal %>,

addon/ng2/blueprints/universal/files/__path__/server.ts renamed to addon/ng2/blueprints/universal/files/__path__/start-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function ngApp(req, res) {
109109
async: true, // render async operations like http
110110
buildClientScripts: true,
111111
systemjs: {
112-
componentUrl: 'dist/main',
112+
componentUrl: 'dist/start-browser',
113113
map: {
114114
'angular2-universal': 'dist/vendor/angular2-universal',
115115
'@angular': 'dist/vendor/@angular'

lib/broccoli/angular-broccoli-bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class BundlePlugin extends Plugin {
1616
build() {
1717
var relativeRoot = path.relative(process.cwd(), this.inputPaths[0]);
1818
var builder = new Builder(relativeRoot, `${relativeRoot}/system-config.js`);
19-
return builder.bundle('main - [app/**/*]',
20-
`${this.outputPath}/main.js`, {
19+
return builder.bundle('start-browser - [app/**/*]',
20+
`${this.outputPath}/start-browser.js`, {
2121
minify: true
2222
})
2323
.then(() => builder.bundle('app - (app/**/*.js - [app/**/*.js])',

lib/broccoli/angular2-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ class Angular2App extends BroccoliPlugin {
426426
}), {
427427
headerFiles: this._options.polyfills.concat([
428428
'system-config.js',
429-
'main.js',
429+
'start-browser.js',
430430
'app/index.js'
431431
]),
432432
inputFiles: [

0 commit comments

Comments
 (0)