Skip to content

Commit 11458c9

Browse files
authored
Merge pull request #11 from SoCreate/master
merge
2 parents d231d4e + dc33653 commit 11458c9

File tree

79 files changed

+1375
-1703
lines changed

Some content is hidden

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

79 files changed

+1375
-1703
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- Please provide the following information. -->
2+
3+
### Versions
4+
```
5+
<!--
6+
angular-playground version
7+
-->
8+
```
9+
10+
```
11+
<!--
12+
Output from: `ng --version`.
13+
-->
14+
```
15+
16+
### Repro steps
17+
<!--
18+
Simple steps to reproduce this bug.
19+
Please include: commands run, packages added, related code changes.
20+
A link to a sample repo would help too.
21+
-->
22+
* Step 1
23+
* Step 2
24+
* Step 3
25+
26+
### Observed Behavior
27+
```
28+
<!-- Normally this includes a stack trace and some more information -->
29+
```
30+
31+
### Desired Behavior
32+
```
33+
<!--
34+
What do you expect to see?
35+
-->
36+
```
37+
38+
### Any other details that may be useful (optional)

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
# 3.1.0 (2018-01-03)
2+
3+
<a name="3.1.0"></a>
4+
5+
### Bug Fixes
6+
* **sandboxes.ts:** The `sandboxes.ts` file is no longer generated in the root of the consuming application's
7+
project. Instead, `sandboxes.ts` is modified and referenced entirely within
8+
`angular-playground` ([1fda77f](https://github.com/SoCreate/angular-playground/commit/1fda77f)).
9+
* **sandbox chunking:** Sandbox scenarios are individually chunked and loaded, meaning that your
10+
component sandboxes are once again truly isolated. This functionality
11+
was affected by the `@angular/cli` 1.6.2 update
12+
([1fda77f](https://github.com/SoCreate/angular-playground/commit/1fda77f)).
13+
14+
Before we had you change `tsconfig.app.json` to use `esnext` modules:
15+
```
16+
# tsconfig.app.json
17+
{
18+
...
19+
"module": "esnext"
20+
}
21+
```
22+
23+
Now there's no need to change it from the Angular CLI's default:
24+
```
25+
# tsconfig.app.json
26+
{
27+
...
28+
"module": "es2015"
29+
}
30+
```
31+
132
<a name="3.0.0"></a>
233

334
# 3.0.0 (2017-12-01)

examples/example-app-angular-cli/.angular-cli.json renamed to examples/cli-example/.angular-cli.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"project": {
4-
"name": "angular-playground"
4+
"name": "cli-example"
55
},
66
"apps": [
77
{
@@ -17,9 +17,9 @@
1717
"test": "test.ts",
1818
"tsconfig": "tsconfig.app.json",
1919
"testTsconfig": "tsconfig.spec.json",
20-
"prefix": "ex",
20+
"prefix": "app",
2121
"styles": [
22-
"styles.scss"
22+
"styles.css"
2323
],
2424
"scripts": [],
2525
"environmentSource": "environments/environment.ts",
@@ -31,7 +31,7 @@
3131
{
3232
"name": "playground",
3333
"root": "src",
34-
"outDir": "dist-playground",
34+
"outDir": "dist",
3535
"assets": [
3636
"assets",
3737
"favicon.ico"
@@ -40,22 +40,31 @@
4040
"main": "main.playground.ts",
4141
"polyfills": "polyfills.ts",
4242
"tsconfig": "tsconfig.app.json",
43+
"prefix": "app",
4344
"environmentSource": "environments/environment.ts",
4445
"environments": {
4546
"dev": "environments/environment.ts",
4647
"prod": "environments/environment.prod.ts"
4748
}
4849
}
4950
],
51+
"e2e": {
52+
"protractor": {
53+
"config": "./protractor.conf.js"
54+
}
55+
},
5056
"lint": [
5157
{
52-
"project": "src/tsconfig.app.json"
58+
"project": "src/tsconfig.app.json",
59+
"exclude": "**/node_modules/**"
5360
},
5461
{
55-
"project": "src/tsconfig.spec.json"
62+
"project": "src/tsconfig.spec.json",
63+
"exclude": "**/node_modules/**"
5664
},
5765
{
58-
"project": "e2e/tsconfig.e2e.json"
66+
"project": "e2e/tsconfig.e2e.json",
67+
"exclude": "**/node_modules/**"
5968
}
6069
],
6170
"test": {
@@ -64,7 +73,7 @@
6473
}
6574
},
6675
"defaults": {
67-
"styleExt": "scss",
76+
"styleExt": "css",
6877
"component": {}
6978
}
7079
}

examples/example-app-angular-cli/.gitignore renamed to examples/cli-example/.gitignore

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3+
src/sandboxes.ts
4+
35
# compiled output
46
/dist
57
/tmp
8+
/out-tsc
69

710
# dependencies
811
/node_modules
9-
/bower_components
1012

1113
# IDEs and editors
1214
/.idea
13-
/.vscode
1415
.project
1516
.classpath
1617
.c9/
1718
*.launch
1819
.settings/
20+
*.sublime-workspace
21+
22+
# IDE - VSCode
23+
.vscode/*
24+
!.vscode/settings.json
25+
!.vscode/tasks.json
26+
!.vscode/launch.json
27+
!.vscode/extensions.json
1928

2029
# misc
2130
/.sass-cache
2231
/connect.lock
23-
/coverage/*
32+
/coverage
2433
/libpeerconnection.log
2534
npm-debug.log
2635
testem.log
@@ -30,9 +39,6 @@ testem.log
3039
/e2e/*.js
3140
/e2e/*.map
3241

33-
#System Files
42+
# System Files
3443
.DS_Store
3544
Thumbs.db
36-
/debug.log
37-
/src/sandboxes.ts
38-
/src/my-sandboxes

examples/cli-example/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# CliExample
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.2.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8+
9+
## Code scaffolding
10+
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12+
13+
## Build
14+
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
16+
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sourceRoot": "src",
3+
"angularCli": {
4+
"appName": "playground"
5+
}
6+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { AppPage } from './app.po';
2+
3+
describe('cli-example App', () => {
4+
let page: AppPage;
5+
6+
beforeEach(() => {
7+
page = new AppPage();
8+
});
9+
10+
it('should display welcome message', () => {
11+
page.navigateTo();
12+
expect(page.getParagraphText()).toEqual('Welcome to app!');
13+
});
14+
});

examples/cli-example/e2e/app.po.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { browser, by, element } from 'protractor';
2+
3+
export class AppPage {
4+
navigateTo() {
5+
return browser.get('/');
6+
}
7+
8+
getParagraphText() {
9+
return element(by.css('app-root h1')).getText();
10+
}
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"baseUrl": "./",
6+
"module": "commonjs",
7+
"target": "es5",
8+
"types": [
9+
"jasmine",
10+
"jasminewd2",
11+
"node"
12+
]
13+
}
14+
}

0 commit comments

Comments
 (0)