Skip to content

Commit

Permalink
simplify playground
Browse files Browse the repository at this point in the history
  • Loading branch information
vdolek committed Aug 31, 2020
1 parent 5466f36 commit 2f5ec63
Show file tree
Hide file tree
Showing 30 changed files with 330 additions and 501 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
dist
/tmp
/out-tsc
# Only exists if Bazel was run
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ It is as simple as:

It internally uses `ResizeSensor` from [CSS Element Queries](https://github.com/marcj/css-element-queries).

## Playground

[StackBlitz playground](https://stackblitz.com/edit/angular-resize-event-playground?file=src/app/app.component.html)

## Using the library

Import the library in any Angular application by running:
Expand Down
18 changes: 0 additions & 18 deletions playground/.browserslistrc

This file was deleted.

16 changes: 0 additions & 16 deletions playground/.editorconfig

This file was deleted.

46 changes: 0 additions & 46 deletions playground/.gitignore

This file was deleted.

76 changes: 24 additions & 52 deletions playground/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,27 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular-resize-event-playground": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"demo": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/angular-resize-event-playground",
"outputPath": "dist/demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
"src/styles.css"
],
"scripts": []
},
Expand All @@ -45,84 +40,61 @@
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular-resize-event-playground:build"
"browserTarget": "demo:build"
},
"configurations": {
"production": {
"browserTarget": "angular-resize-event-playground:build:production"
"browserTarget": "demo:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "angular-resize-event-playground:build"
"browserTarget": "demo: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",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"styles.css"
],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "angular-resize-event-playground:serve"
},
"configurations": {
"production": {
"devServerTarget": "angular-resize-event-playground:serve:production"
}
}
}
}
}},
"defaultProject": "angular-resize-event-playground"
}
}
},
"defaultProject": "demo"
}
Loading

0 comments on commit 2f5ec63

Please sign in to comment.