Skip to content
Permalink
Browse files
Code formatting
  • Loading branch information
cedx committed May 29, 2020
1 parent d5acf5d commit 689fee3f02064a6fe9fabff512d84598e3d6490a
@@ -3,11 +3,14 @@ root = true

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

[*.md]
indent_size = 4
trim_trailing_whitespace = false

[*.{yaml,yml}]
indent_size = 2
indent_style = space
@@ -3,7 +3,7 @@ on:
pull_request:
push:
schedule:
- cron: '0 0 1 * *'
- cron: "0 0 1 * *"
jobs:
test:
runs-on: ubuntu-latest
@@ -1,7 +1,7 @@
{
"editor.insertSpaces": true,
"editor.tabSize": 2,
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
"editor.insertSpaces": false,
"editor.tabSize": 2,
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
}
@@ -1,31 +1,31 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"defaultProject": "ngx-webstorage",
"version": 1,
"projects": {
"ngx-webstorage": {
"prefix": "ngx",
"projectType": "library",
"root": "",
"sourceRoot": "src",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"project": "ng-package.json",
"tsConfig": "src/tsconfig.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"codeCoverage": true,
"main": "test/main.ts",
"karmaConfig": "etc/karma.cjs",
"tsConfig": "test/tsconfig.json"
}
}
}
}
}
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"defaultProject": "ngx-webstorage",
"version": 1,
"projects": {
"ngx-webstorage": {
"prefix": "ngx",
"projectType": "library",
"root": "",
"sourceRoot": "src",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"project": "ng-package.json",
"tsConfig": "src/tsconfig.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"codeCoverage": true,
"main": "test/main.ts",
"karmaConfig": "etc/karma.cjs",
"tsConfig": "test/tsconfig.json"
}
}
}
}
}
}
@@ -8,7 +8,3 @@
## Testing
- [Continuous integration](https://github.com/cedx/ngx-webstorage/actions)
- [Code coverage](https://coveralls.io/github/cedx/ngx-webstorage)

## Other implementations
- Dart: [Web Storage for Dart](https://docs.belin.io/webstorage.dart)
- JavaScript: [Web Storage for JS](https://docs.belin.io/webstorage.js)
@@ -9,11 +9,11 @@ implemented in [TypeScript](https://www.typescriptlang.org).
## Quick start
Install the latest version of **Web Storage for Angular** with [npm](https://www.npmjs.com):

```shell
``` shell
npm install @cedx/ngx-webstorage
```

!!! info
This library is packaged as [ECMAScript modules](https://nodejs.org/api/esm.html).
This library is packaged as [ECMAScript modules](https://nodejs.org/api/esm.html).

For detailed instructions, see the [installation guide](installation.md).
@@ -6,30 +6,30 @@ and [npm](https://www.npmjs.com), the Node.js package manager, up and running.

You can verify if you're already good to go with the following commands:

```shell
``` shell
node --version
# v14.2.0
# v14.3.0
npm --version
# 6.14.4
# 6.14.5
```

!!! info
If you plan to play with the package sources, you will also need
[PowerShell](https://docs.microsoft.com/en-us/powershell) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material).
If you plan to play with the package sources, you will also need
[PowerShell](https://docs.microsoft.com/en-us/powershell) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material).

## Installing with npm package manager

### 1. Install it
From a command prompt, run:

```shell
``` shell
npm install @cedx/ngx-webstorage
```

### 2. Import it
Now in your [TypeScript](https://www.typescriptlang.org) code, you can use:

```typescript
import {LocalStorage, SessionStorage} from '@cedx/ngx-webstorage';
``` typescript
import {LocalStorage, SessionStorage} from "@cedx/ngx-webstorage";
```

0 comments on commit 689fee3

Please sign in to comment.