Skip to content

Commit

Permalink
chore: release 15.0.0
Browse files Browse the repository at this point in the history
Support for Angular 15
Migrate library to standalone components and keeping the GridsterModule support
Migrate Demo App to standalone components
Update README.md to have example with standalone components
  • Loading branch information
tiberiuzuld committed Nov 26, 2022
1 parent a50fdd4 commit 31ef22c
Show file tree
Hide file tree
Showing 63 changed files with 6,292 additions and 17,701 deletions.
16 changes: 0 additions & 16 deletions .browserslistrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and deploy
run: |
npm ci --legacy-peer-deps
npm run build-npm
npm ci --legacy-peer-deps --omit=optional
npm run build-lib
npm run deploy
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: npm install and build
run: |
npm install
npm run build-npm
npm run build-lib
cd dist/angular-gridster2
# Publish to npm
- name: npm publish
Expand Down
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,32 @@

### Angular implementation of angular-gridster [Demo](http://tiberiuzuld.github.io/angular-gridster2)

### Requires Angular 14.x
### Requires Angular 15.x

### For other Angular versions check the other branches.

## Browser support

What Angular supports [here](https://github.com/angular/angular)

## Install

`npm install angular-gridster2 --save`

Should work out of the box with webpack, respectively angular-cli.
## How to use

```javascript
import { GridsterModule } from 'angular-gridster2';
import {NgForOf} from '@angular/common';
import {Component} from '@angular/core';
import {GridsterComponent, GridsterItemComponent} from 'angular-gridster2';

@NgModule({
imports: [ GridsterModule ],
@Component({
standalone: true,
imports: [NgForOf, GridsterComponent, GridsterItemComponent],
...
})
```

## Browser support

What Angular supports [here](https://github.com/angular/angular)

## How to use

```html
<gridster [options]="options">
<gridster-item [item]="item" *ngFor="let item of dashboard">
Expand Down
32 changes: 19 additions & 13 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"outputPath": "dist/demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
Expand Down Expand Up @@ -49,12 +51,6 @@
"maximumError": "10kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
Expand Down Expand Up @@ -89,10 +85,11 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
Expand Down Expand Up @@ -138,7 +135,6 @@
},
"configurations": {
"production": {
"project": "projects/angular-gridster2/ng-package.prod.json",
"tsConfig": "projects/angular-gridster2/tsconfig.lib.prod.json"
},
"development": {
Expand All @@ -150,9 +146,11 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/angular-gridster2/src/test.ts",
"tsConfig": "projects/angular-gridster2/tsconfig.spec.json",
"karmaConfig": "projects/angular-gridster2/karma.conf.js"
"polyfills": [
"zone.js",
"zone.js/testing"
]
}
},
"lint": {
Expand All @@ -173,5 +171,13 @@
"schematicCollections": [
"@angular-eslint/schematics"
]
},
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
}
}
44 changes: 0 additions & 44 deletions karma.conf.js

This file was deleted.

Loading

0 comments on commit 31ef22c

Please sign in to comment.