From dd5d5e8bc9ef0454521d2c115e8b1a8db3934dff Mon Sep 17 00:00:00 2001 From: Alex Aldana Date: Tue, 30 Apr 2019 21:11:43 -0400 Subject: [PATCH] Updated travic ci build to prepare package for release when deploying - Removed unneeded files --- .npmignore | 10 ++++++++-- .travis.yml | 3 +++ README.md | 1 - index.ts | 1 - nest-cli.json | 5 ----- nodemon-debug.json | 6 ------ package.json | 2 +- 7 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 index.ts delete mode 100644 nest-cli.json delete mode 100644 nodemon-debug.json diff --git a/.npmignore b/.npmignore index 7874589..22a1ba7 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,7 @@ -test +tests doc lib +assets examples .DS_Store @@ -11,6 +12,11 @@ gulpfile.js tsconfig.json tslint.json +.editorconfig +.gitignore +.prettierrc +.travis.yml +jest.config.js yarn.lock package-lock.json @@ -18,4 +24,4 @@ package-lock.json .nyc_output coverage -.vscode \ No newline at end of file +.vscode diff --git a/.travis.yml b/.travis.yml index c155c84..6501778 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,9 @@ before_install: - "npm install @nestjs/common @nestjs/core postgraphile reflect-metadata" script: - npm run ci + +before_deploy: + - npm run prepare:publish deploy: provider: npm email: hi@alexald.com diff --git a/README.md b/README.md index da19102..1bae913 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ A module for [Nest](https://github.com/nestjs/nest) that allows you to easily in ## Installation -**NOTE: STILL IN DEVELOPMENT. THERE IS NO PACKAGE YET.** ```bash $ npm i --save postgraphile-nest postgraphile ``` diff --git a/index.ts b/index.ts deleted file mode 100644 index f41a696..0000000 --- a/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib'; diff --git a/nest-cli.json b/nest-cli.json deleted file mode 100644 index 0dde5f8..0000000 --- a/nest-cli.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "language": "ts", - "collection": "@nestjs/schematics", - "sourceRoot": "src" -} diff --git a/nodemon-debug.json b/nodemon-debug.json deleted file mode 100644 index 052b023..0000000 --- a/nodemon-debug.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "watch": ["src"], - "ext": "ts", - "ignore": ["src/**/*.spec.ts"], - "exec": "node --inspect-brk -r ts-node/register -r tsconfig-paths/register src/main.ts" -} diff --git a/package.json b/package.json index aca44a6..28aa8f9 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "ci": "jest --coverage --coverageReporters=text-lcov | coveralls", "lint": "tslint -c tslint.json 'lib/**/*.ts'", "test": "jest --coverage", - "prepublish:npm": "npm run build", + "prepare:publish": "npm run build", "publish:npm": "npm publish --access public", "prepublish:next": "npm run build", "publish:next": "npm publish --access public --tag next"