Skip to content

Commit

Permalink
refactor: file tree
Browse files Browse the repository at this point in the history
prep for release
  • Loading branch information
jwelmac committed Dec 12, 2017
1 parent 27e63c4 commit ea4a157
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 37 deletions.
5 changes: 2 additions & 3 deletions .angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
},
"apps": [
{
"root": "src",
"outDir": "dist",
"root": "./",
"polyfills": "polyfills.ts",
"main": "index.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"tsconfig": "tsconfig.dist.json",
"testTsconfig": "tsconfig.spec.json",
"scripts": []
}
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ Thumbs.db

# Debug logs
npm-debug.log*

#Transpiled files
src/*.d.ts
src/*.js
index.d.ts
index.js
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Ionic Pro Deploy [![Build Status](https://travis-ci.org/jwelmac/ionicpro-deploy.svg?branch=master)](https://travis-ci.org/jwelmac/ionicpro-deploy) [![Maintainability](https://api.codeclimate.com/v1/badges/def77cc2f502b821b0e0/maintainability)](https://codeclimate.com/github/jwelmac/ionicpro-deploy/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/def77cc2f502b821b0e0/test_coverage)](https://codeclimate.com/github/jwelmac/ionicpro-deploy/test_coverage)
# Ionic Pro Deploy [![Build Status](https://travis-ci.org/jwelmac/ionicpro-deploy.svg?branch=master)](https://travis-ci.org/jwelmac/ionicpro-deploy) [![Maintainability](https://api.codeclimate.com/v1/badges/def77cc2f502b821b0e0/maintainability)](https://codeclimate.com/github/jwelmac/src/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/def77cc2f502b821b0e0/test_coverage)](https://codeclimate.com/github/jwelmac/src/test_coverage)

Access the Ionic Pro Deploy API using Promises and/or Observable based methods.

## Usage

see [testing file](/src/ionicpro-deploy/ionicpro-deploy.service.spec.ts) for usage.
see [testing file](/src/src/ionicpro-deploy.service.spec.ts) for usage.

Documentation coming soon
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './src/ionic-pro-deploy.service';
export * from './src/ionic-pro-deploy.interfaces';
export { IonicProDeployModule } from './src/ionic-pro-deploy.module';
28 changes: 13 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,34 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "npm run clean && tsc -p src/tsconfig.app.json",
"build": "tsc -p tsconfig.dist.json",
"test": "ng test --code-coverage --single-run",
"test:watch": "karma start",
"lint": "ng lint",
"e2e": "ng e2e",
"clean": "rm -rf dist/* && rm -r npm-debug.log*"
"clean": "rm src/{*.d.ts,*.js} && rm npm-debug.*",
"prepublish": "npm run build"
},
"main": "dist/index.js",
"main": "index.js",
"files": [
"src/**/*.d.ts",
"src/**/*.js",
"index.d.ts",
"index.js"
],
"private": true,
"dependencies": {
"@angular/animations": "^5.0.0",
"@angular/common": "^5.0.0",
"@angular/compiler": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/http": "^5.0.0",
"@angular/platform-browser": "^5.0.0",
"@angular/platform-browser-dynamic": "^5.0.0",
"@angular/router": "^5.0.0",
"core-js": "^2.4.1",
"ionic-angular": "^3.9.2",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14"
"zone.js": "^0.8.14",
"cordova-plugin-ionic": "^2.0.3"
},
"devDependencies": {
"@angular/cli": "1.5.3",
"@angular/compiler-cli": "^5.0.0",
"@angular/language-service": "^5.0.0",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
Expand All @@ -48,8 +49,5 @@
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "~2.4.2"
},
"peerDependencies": {
"cordova-plugin-ionic": "^2.0.3"
}
}
File renamed without changes.
2 changes: 0 additions & 2 deletions src/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/typings.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/test.ts → test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ getTestBed().initTestEnvironment(
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
const context = require.context('./src/', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
// Finally, start Karma to run the tests.
Expand Down
9 changes: 5 additions & 4 deletions src/tsconfig.app.json → tsconfig.dist.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"extends": "../tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../dist",
"baseUrl": "./",
"outDir": ".",
"module": "es2015",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts",
"e2e",
"polyfills.ts"
"polyfills.ts",
"node_modules",
"coverage"
]
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist",
"sourceMap": false,
"declaration": true,
"moduleResolution": "node",
Expand Down
7 changes: 3 additions & 4 deletions src/tsconfig.spec.json → tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../dist/spec",
"outDir": "./out-tsc",
"baseUrl": "./",
"module": "commonjs",
"target": "es5",
Expand All @@ -14,7 +14,6 @@
"test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
"./src/**/*.spec.ts"
]
}

0 comments on commit ea4a157

Please sign in to comment.