Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmehlhorn committed Apr 18, 2019
0 parents commit 30fe16f
Show file tree
Hide file tree
Showing 19 changed files with 12,274 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
48 changes: 48 additions & 0 deletions .gitignore
@@ -0,0 +1,48 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out
projects/ngrx-wieder/README.md

# dependencies
/node_modules

# profiling files
chrome-profiler-events.json
speed-measure-plugin.json

# IDEs and editors
*.iml
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
17 changes: 17 additions & 0 deletions README.md
@@ -0,0 +1,17 @@
ngrx-wieder is a lightweight yet configurable solution for implementing undo-redo in Angular apps on top of [NgRx](https://ngrx.io/).
It's based on [immer](https://github.com/immerjs/immer) hence the name wieder (German for: again)

## Installation

Install via
```
npm i -S ngrx-wieder
```

**Peer-dependencies**:
- @angular/common
- @angular/core
- @ngrx/store
- immer

## Usage
43 changes: 43 additions & 0 deletions angular.json
@@ -0,0 +1,43 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ngrx-wieder": {
"root": "projects/ngrx-wieder",
"sourceRoot": "projects/ngrx-wieder/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ngrx-wieder/tsconfig.lib.json",
"project": "projects/ngrx-wieder/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngrx-wieder/src/test.ts",
"tsConfig": "projects/ngrx-wieder/tsconfig.spec.json",
"karmaConfig": "projects/ngrx-wieder/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ngrx-wieder/tsconfig.lib.json",
"projects/ngrx-wieder/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "ngrx-wieder"
}

0 comments on commit 30fe16f

Please sign in to comment.