Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit fa3dd35

Browse files
committed
refactor: Initial migration to ng7, angular-cli>=6.2.0 and yarn
BREAKING CHANGE: relative import paths are no longer officially supported. Everything must now be imported from the ngforage package.
1 parent 5114b1c commit fa3dd35

File tree

147 files changed

+8386
-16935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+8386
-16935
lines changed

.angular-cli.json

-38
This file was deleted.

.compodocrc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tsconfig: ./projects/ngforage/tsconfig.lib.json
2+
output: ./dist/demo/docs
3+
name: NgForage API docs
4+
theme: material
5+
hideGenerator: true
6+
disablePrivate: true
7+
disableInternal: true
8+
customFavicon: projects/demo/src/favicon.ico
9+
disableCoverage: true
10+

.editorconfig

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
root = true
2+
13
[*]
2-
charset=utf-8
4+
charset = utf-8
35
end_of_line=lf
4-
insert_final_newline=true
5-
indent_style=space
6-
indent_size=2
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false
714

815
[{*.yml,*.yaml}]
916
indent_style=space
10-
indent_size=2
11-

.gitignore

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/.idea/
2-
/node_modules/
3-
/*.tgz
1+
/.idea
2+
node_modules/
3+
projects/**/yarn.lock
44
/dist/
5-
/demo/
65
/coverage/
7-
/*.tar.gz
8-
/.npmrc
6+
*.tgz
7+
/docs/
8+
/yarn-error.log

.npmrc.enc

-80 Bytes
Binary file not shown.

.travis.yml

+41-57
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,51 @@
11
sudo: false
22
language: node_js
3-
node_js: stable
4-
group: travis_latest
3+
node_js: lts/*
54

6-
stages:
7-
- &std_stage_name Test & Lint
8-
- name: Deploy
9-
if: tag IS present
5+
os:
6+
- osx
7+
- linux
108

9+
before_cache: rm -rf ./node_modules/.cache
1110
cache:
11+
yarn: true
1212
directories:
13-
- node_modules
13+
- node_modules
14+
15+
before_install:
16+
- npm i -g greenkeeper-lockfile yarn
17+
- greenkeeper-lockfile-update
18+
19+
install:
20+
- &yInstall yarn install --check-files
21+
- yarn run sync
22+
- *yInstall
23+
24+
script: yarn run lint && yarn run test && yarn run build:demo:prod
1425

15-
std_job: &std_job
16-
stage: *std_stage_name
17-
before_cache: rm -rf node_modules/.cache
18-
os: linux
19-
addons: &browsers
20-
chrome: stable
21-
firefox: latest
22-
after_success: cat ./coverage/lcov.info | coveralls
23-
before_install:
24-
- npm install -g greenkeeper-lockfile
25-
- greenkeeper-lockfile-update
26-
after_script: if [[ $GH_TOKEN ]]; then greenkeeper-lockfile-upload; fi;
27-
script:
28-
- gulp tslint
29-
- npm test
30-
- gulp build:demo:prod
26+
after_script: if [[ $GH_TOKEN ]]; then greenkeeper-lockfile-upload; fi;
27+
after_success: cat ./coverage/lcov.info | coveralls
28+
29+
stages:
30+
- Test
31+
- Release
3132

3233
jobs:
3334
include:
34-
- <<: *std_job
35-
- <<: *std_job
36-
os: osx
37-
osx_image: xcode9.2
38-
sudo: required
39-
addons:
40-
apt:
41-
packages:
42-
- xvfb
43-
before_script:
44-
- "export DISPLAY=:99.0"
45-
- sudo Xvfb :99 -ac -screen 0 1024x768x8 &
46-
- sleep 3
47-
script: npm test -- --browsers Safari
48-
- stage: Deploy
49-
before_script:
50-
- gulp package build:demo:prod
51-
- openssl aes-256-cbc -K $encrypted_1d92b726f585_key -iv $encrypted_1d92b726f585_iv -in .npmrc.enc -out ~/.npmrc -d
52-
script: npm publish ./dist
53-
deploy:
54-
- provider: pages
55-
skip_cleanup: true
56-
on:
57-
tags: true
58-
local_dir: ./demo
59-
target_branch: gh-pages
60-
github_token: $GH_TOKEN
61-
- provider: releases
62-
skip_cleanup: true
63-
api_key: $GH_TOKEN
64-
file: dist.tgz
65-
on:
66-
tags: true
67-
35+
- stage: Test
36+
os: osx
37+
sudo: required
38+
addons:
39+
apt:
40+
packages:
41+
- xvfb
42+
before_script:
43+
- "export DISPLAY=:99.0"
44+
- sudo Xvfb :99 -ac -screen 0 1024x768x8 &
45+
- sleep 3
46+
script: yarn run test --browsers Safari
47+
- stage: Test
48+
os: linux
49+
addons:
50+
chrome: stable
51+
firefox: latest

.yarnrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
workspaces-experimental true
6+
ignore-workspace-root-check true
File renamed without changes.

CHANGELOG.yml

-63
This file was deleted.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
```bash
2525
npm install localforage@^1.5.0 ngforage@^2.0.0 # for Angular 5
2626
npm install localforage@^1.5.0 ngforage@^3.0.0 # for Angular 6
27+
npm install localforage@^1.5.0 ngforage@^4.0.0 # for Angular 7
2728
```
2829
</details>
2930
<details>

0 commit comments

Comments
 (0)