Skip to content

Commit

Permalink
refactor: use one example app and move app to projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Engelhardt authored and tobiasengelhardt committed Jul 3, 2020
1 parent 88403a2 commit 5ded257
Show file tree
Hide file tree
Showing 278 changed files with 18,093 additions and 305,444 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ npm-debug.log

# Coverage #
/coverage/
/xunit/

# Typing #
/src/typings/tsd/
Expand Down Expand Up @@ -64,4 +65,4 @@ testScreenshots
testResults
e2eResults

e2e/dist
e2e/dist
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ angular-tree-component supports angular 2 and above, and AoT compilation.

## Contributing

run `npm run example:cli` and open [localhost:4200](http://localhost:4200) to test your code before submitting a pull request.

Windows users - if it doesn't work try `npm run example:cli:win`.
Run `npm run build` (`npm run build:win` for windows users) to build. Run `npm start:example-app` and open [localhost:4200](http://localhost:4200) to test your code before submitting a pull request.

To run tests locally - make sure port 4200 is available and run:

```
$ npm run example:cli # Wait until webpack finishes and http://localhost:4200 is available
$ npm run build # build:win for windows; wait until build finished
$ npm run start:example-app # Wait until webpack finishes and http://localhost:4200 is available
$ npm run test:dev
```

Expand All @@ -39,4 +38,4 @@ Please check the issues / project before starting to work on a feature / bug to
## Contributors

This project exists thanks to all the people who contribute.
<a href="https://github.com/500tech/angular-tree-component/graphs/contributors"><img src="https://opencollective.com/angular-tree-component/contributors.svg?width=890&button=false" /></a>
<a href="https://github.com/CirclonGroup/angular-tree-component/graphs/contributors"><img src="https://opencollective.com/angular-tree-component/contributors.svg?width=890&button=false" /></a>
80 changes: 29 additions & 51 deletions example/cli9/angular.json → angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,49 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"cli9": {
"example-app": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"root": "projects/example-app",
"sourceRoot": "projects/example-app/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/cli9",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"outputPath": "dist/example-app",
"index": "projects/example-app/src/index.html",
"main": "projects/example-app/src/main.ts",
"polyfills": "projects/example-app/src/polyfills.ts",
"tsConfig": "projects/example-app/tsconfig.app.json",
"aot": false,
"assets": [
"src/favicon.ico",
"src/assets"
"projects/example-app/src/favicon.ico",
"projects/example-app/src/assets"
],
"styles": [
"src/styles.scss"
"projects/example-app/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"replace": "projects/example-app/src/environments/environment.ts",
"with": "projects/example-app/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -66,33 +67,27 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "cli9:build"
"browserTarget": "example-app:build"
},
"configurations": {
"production": {
"browserTarget": "cli9:build:production"
"browserTarget": "example-app:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "cli9:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"main": "projects/example-app/src/test.ts",
"karmaConfig": "projects/example-app/karma.conf.js",
"polyfills": "projects/example-app/src/polyfills.ts",
"tsConfig": "projects/example-app/tsconfig.spec.json",
"assets": [
"src/favicon.ico",
"src/assets"
"projects/example-app/src/favicon.ico",
"projects/example-app/src/assets"
],
"styles": [
"src/styles.scss"
"projects/example-app/src/styles.scss"
],
"scripts": []
}
Expand All @@ -101,32 +96,15 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
"projects/example-app/tsconfig.app.json",
"projects/example-app/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "cli9:serve"
},
"configurations": {
"production": {
"devServerTarget": "cli9:serve:production"
}
}
}
}
}
},
"defaultProject": "cli9",
"cli": {
"analytics": false
}
}
}},
"defaultProject": "example-app"
}
Binary file added atc-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions example/cli/.editorconfig

This file was deleted.

27 changes: 0 additions & 27 deletions example/cli/README.md

This file was deleted.

Loading

0 comments on commit 5ded257

Please sign in to comment.