forked from Mixalloff/ngx-http-rest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from manudss/switrch-to-angular-library
Switrch to angular library : Published as 0.6.3
- Loading branch information
Showing
48 changed files
with
21,457 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Editor configuration, see http://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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
node_modules | ||
/test-api/node_modules/ | ||
# 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 | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
yarn add v1.12.3 | ||
[1/4] Resolving packages... | ||
[2/4] Fetching packages... | ||
info fsevents@1.2.7: The platform "win32" is incompatible with this module. | ||
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation. | ||
[3/4] Linking dependencies... | ||
[4/4] Building fresh packages... | ||
success Saved lockfile. | ||
success Saved 53 new dependencies. | ||
info Direct dependencies | ||
├─ @angular-devkit/build-angular@0.13.1 | ||
├─ @angular-devkit/build-ng-packagr@0.13.1 | ||
├─ tsickle@0.34.3 | ||
└─ zone.js@0.8.29 | ||
info All dependencies | ||
├─ @angular-devkit/build-angular@0.13.1 | ||
├─ @angular-devkit/build-ng-packagr@0.13.1 | ||
├─ @angular-devkit/build-optimizer@0.13.1 | ||
├─ @angular-devkit/build-webpack@0.13.1 | ||
├─ @ngtools/webpack@7.3.1 | ||
├─ @types/source-list-map@0.1.2 | ||
├─ @types/webpack-sources@0.1.5 | ||
├─ @webassemblyjs/floating-point-hex-parser@1.7.11 | ||
├─ @webassemblyjs/helper-code-frame@1.7.11 | ||
├─ @webassemblyjs/helper-fsm@1.7.11 | ||
├─ @webassemblyjs/helper-wasm-section@1.7.11 | ||
├─ @webassemblyjs/wasm-edit@1.7.11 | ||
├─ @webassemblyjs/wasm-opt@1.7.11 | ||
├─ @xtuc/ieee754@1.2.0 | ||
├─ acorn-dynamic-import@4.0.0 | ||
├─ acorn@6.1.0 | ||
├─ autoprefixer@9.4.6 | ||
├─ cacache@11.3.2 | ||
├─ chrome-trace-event@1.0.0 | ||
├─ circular-dependency-plugin@5.0.2 | ||
├─ clean-css@4.2.1 | ||
├─ copy-webpack-plugin@4.6.0 | ||
├─ enhanced-resolve@4.1.0 | ||
├─ eslint-scope@4.0.0 | ||
├─ file-loader@3.0.1 | ||
├─ istanbul-instrumenter-loader@3.0.1 | ||
├─ karma-source-map-support@1.3.0 | ||
├─ less-loader@4.1.0 | ||
├─ less@3.9.0 | ||
├─ license-webpack-plugin@2.1.0 | ||
├─ mini-css-extract-plugin@0.5.0 | ||
├─ node-sass@4.11.0 | ||
├─ parse5@4.0.0 | ||
├─ postcss-import@12.0.1 | ||
├─ postcss-loader@3.0.0 | ||
├─ raw-loader@1.0.0 | ||
├─ sass-loader@7.1.0 | ||
├─ source-map-loader@0.2.4 | ||
├─ speed-measure-webpack-plugin@1.3.0 | ||
├─ stats-webpack-plugin@0.7.0 | ||
├─ style-loader@0.23.1 | ||
├─ stylus-loader@3.0.2 | ||
├─ stylus@0.54.5 | ||
├─ terser-webpack-plugin@1.2.2 | ||
├─ terser@3.16.1 | ||
├─ tsickle@0.34.3 | ||
├─ webpack-core@0.6.9 | ||
├─ webpack-dev-middleware@3.5.1 | ||
├─ webpack-dev-server@3.1.14 | ||
├─ webpack-merge@4.2.1 | ||
├─ webpack-subresource-integrity@1.1.0-rc.6 | ||
├─ webpack@4.29.0 | ||
└─ zone.js@0.8.29 | ||
Done in 212.87s. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
{ | ||
"$schema": "ngx-http-annotations/node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"example-ngx-http-annotations": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"prefix": "app", | ||
"schematics": {}, | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"outputPath": "dist/example-ngx-http-annotations", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/assets" | ||
], | ||
"styles": [ | ||
"src/styles.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
], | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
"browserTarget": "example-ngx-http-annotations:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "example-ngx-http-annotations:build:production" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "example-ngx-http-annotations:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"karmaConfig": "src/karma.conf.js", | ||
"styles": [ | ||
"src/styles.css" | ||
], | ||
"scripts": [], | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/assets" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"src/tsconfig.app.json", | ||
"src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"example-ngx-http-annotations-e2e": { | ||
"root": "e2e/", | ||
"projectType": "application", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "e2e/protractor.conf.js", | ||
"devServerTarget": "example-ngx-http-annotations:serve" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": "e2e/tsconfig.e2e.json", | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"ngx-http-annotations": { | ||
"root": "projects/ngx-http-annotations", | ||
"sourceRoot": "projects/ngx-http-annotations/src", | ||
"projectType": "library", | ||
"prefix": "lib", | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-ng-packagr:build", | ||
"options": { | ||
"tsConfig": "projects/ngx-http-annotations/tsconfig.lib.json", | ||
"project": "projects/ngx-http-annotations/ng-package.json" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"project": "projects/ngx-http-annotations/ng-package.prod.json" | ||
} | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "projects/ngx-http-annotations/src/test.ts", | ||
"tsConfig": "projects/ngx-http-annotations/tsconfig.spec.json", | ||
"karmaConfig": "projects/ngx-http-annotations/karma.conf.js" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"projects/ngx-http-annotations/tsconfig.lib.json", | ||
"projects/ngx-http-annotations/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "example-ngx-http-annotations" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Protractor configuration file, see link for more information | ||
// https://github.com/angular/protractor/blob/master/lib/config.ts | ||
|
||
const { SpecReporter } = require('jasmine-spec-reporter'); | ||
|
||
exports.config = { | ||
allScriptsTimeout: 11000, | ||
specs: [ | ||
'./src/**/*.e2e-spec.ts' | ||
], | ||
capabilities: { | ||
'browserName': 'chrome' | ||
}, | ||
directConnect: true, | ||
baseUrl: 'http://localhost:4200/', | ||
framework: 'jasmine', | ||
jasmineNodeOpts: { | ||
showColors: true, | ||
defaultTimeoutInterval: 30000, | ||
print: function() {} | ||
}, | ||
onPrepare() { | ||
require('ts-node').register({ | ||
project: require('path').join(__dirname, './tsconfig.e2e.json') | ||
}); | ||
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { AppPage } from './app.po'; | ||
|
||
describe('workspace-project App', () => { | ||
let page: AppPage; | ||
|
||
beforeEach(() => { | ||
page = new AppPage(); | ||
}); | ||
|
||
it('should display welcome message', () => { | ||
page.navigateTo(); | ||
expect(page.getParagraphText()).toEqual('Welcome to app!'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { browser, by, element } from 'protractor'; | ||
|
||
export class AppPage { | ||
navigateTo() { | ||
return browser.get('/'); | ||
} | ||
|
||
getParagraphText() { | ||
return element(by.css('app-root h1')).getText(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../out-tsc/app", | ||
"module": "commonjs", | ||
"target": "es5", | ||
"types": [ | ||
"jasmine", | ||
"jasminewd2", | ||
"node" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.