Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
remplazado ngx-jsonapi por ngx-jsonapi-material, y demo funcionando.
Browse files Browse the repository at this point in the history
  • Loading branch information
max-SS committed Oct 11, 2018
1 parent b994a96 commit dcdcae4
Show file tree
Hide file tree
Showing 67 changed files with 11,580 additions and 1 deletion.
58 changes: 58 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: 2

var_1: &cache_key yarn-cache-{{ checksum "yarn.lock" }}

jobs:
lint:
docker:
- image: circleci/node:8.11.4
steps:
- checkout
- restore_cache:
key: *cache_key
- run: yarn
- run: yarn prettier-ts:show --list-different
- run: yarn prettier-md:show --list-different
- run: yarn prettier-scss:show --list-different
- run: yarn run ng lint
- save_cache:
key: *cache_key
paths:
- ~/.cache/yarn
- node_modules

test:
docker:
- image: circleci/node:8.11.4
steps:
- checkout
- restore_cache:
key: *cache_key
- run: yarn
- run: yarn run ci
# - run:
# name: Upload code coverage report to Coveralls
# command: |-
# if [ ! -z "$COVERALLS_REPO_TOKEN" ]; then
# npx @cedx/coveralls build/logs/clover.xml
# else
# echo 'Skipped'
# fi
- run: yarn run demo:build
# - run: yarn run demo:test:nowatch
# - run: yarn run build # runned by yarn run demo:build
# - run: yarn run test # runned by yarn run ci

build:
docker:
- image: circleci/node:8.11.4
working_directory: ~/repo
steps:
- run: yarn

workflows:
version: 2
build-test-deploy:
jobs:
- lint
- test
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf

[*.md]
max_line_length = off
trim_trailing_whitespace = false
44 changes: 44 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"env": {
"es6": true,
"browser": true,
"jasmine": true
},
"rules": {
"block-scoped-var": 2,
"no-eval": 2,
"no-eq-null": 2,
"no-case-declarations": 2,
"no-alert": 1,
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-undef": 0,
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-unused-vars": 1,
"quotes": [2, "single"],

"angular/on-watch": 0,

"strict": "off",

"no-shadow-restricted-names": 2,

"array-bracket-spacing": 1,
"camelcase": [1, {properties: "never"}],
"comma-style": 1,
"comma-spacing": 1
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"globals": {
"require": true,
"angular": true,
"module": true,
"inject": true
}
}
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto
docs/* linguist-documentation
CHANGELOG.md export-ignore
package-lock.json -diff
yarn.lock -diff
49 changes: 49 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/compiled
/dist
/demo-dist
/release
/.nyc_output

# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

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

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

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

# e2e
/e2e/*.js
/e2e/*.map

# System Files
.DS_Store
Thumbs.db
13 changes: 13 additions & 0 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"tagname-lowercase": true,
"space-tab-mixed-disabled": false,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"doctype-first": false,
"tag-pair": true,
"spec-char-escape": false,
"id-unique": true,
"src-not-empty": true,
"attr-no-duplication": true,
"title-require": true
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 0.0.1

Migration from [AngularJS ts-angular-jsonapi](https://github.com/reyesoft/ts-angular-jsonapi) to Angular 4.
33 changes: 33 additions & 0 deletions DEV_ENVIRONMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Developer guide: getting your environment set up

## Running tests

```bash
yarn test
```

## Deploy page

```bash
yarn demo:build
yarn demo:release
```

## Publish new version

```bash
yarn release
```

## ToDo

# tsconfig-build.json

- strictMetadataEmit = true
- strict = true (en todos los tsconfig)

# otros

- limpiear dependecies packages.json
- mover demo files to demo/app
- core.ts: hacer condig sin <any>
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Reyesoft <info@reyesoft.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit dcdcae4

Please sign in to comment.