Skip to content

Commit b765d75

Browse files
Merge pull request #21 from snewell92/updateNodeEnvInTravis
Making testing cross platform
2 parents 8be65a6 + 6698d36 commit b765d75

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ install:
99
script:
1010
- npm run lint
1111
- npm run build
12+
- export SEQ_SILENT=true
1213
- npm run cover
1314

1415
after_success:

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,4 +567,27 @@ If you need to minify your code, you need to set `tableName` and `modelName`
567567
in the `DefineOptions` for `@Table` annotation. sequelize-typescript
568568
uses the class name as default name for `tableName` and `modelName`.
569569
When the code is minified the class name will no longer be the originally
570-
defined one (So that `class User` will become `class b` for example).
570+
defined one (So that `class User` will become `class b` for example).
571+
572+
573+
# Contributing
574+
575+
To contribute you can:
576+
- Open issues and participate in discussion of other issues.
577+
- Fork the project to open up PR's.
578+
- Update the [types of Sequelize](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sequelize).
579+
- Anything else constructively helpful.
580+
581+
In order to open a pull request please:
582+
- Create a new branch.
583+
- Run tests locally (`npm install && npm run build && npm run cover`) and ensure your commits don't break the tests.
584+
- Document your work well with commit messages, a good PR description, comments in code when necessary, etc.
585+
586+
In order to update the types for sequelize please go to [the Definitely Typed repo](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sequelize), it would also be a good
587+
idea to open a PR into [sequelize](https://github.com/sequelize/sequelize) so that Sequelize can maintain its own types, but that
588+
might be harder than getting updated types into microsoft's repo. The Typescript team is slowly trying to encourage
589+
npm package maintainers to maintain their own typings, but Microsoft still has dedicated and good people maintaining the DT repo,
590+
accepting PR's and keeping quality high.
591+
592+
**Keep in mind `sequelize-typescript` does not provide typings for `sequelize`** - these are seperate things.
593+
A lot of the types in `sequelize-typescript` augment, refer to, or extends what sequelize already has.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"prepare-test-v4": "npm install [email protected] && npm run build-tests-es6",
1111
"test-v3": "npm run prepare-test-v3 && npm run exec-tests",
1212
"test-v4": "npm run prepare-test-v4 && npm run exec-tests",
13-
"cover-v3": "npm run prepare-test-v3 && SEQ_SILENT=true nyc --exclude 'lib/models/v4/**/*.js' --all --require source-map-support/register mocha 'test/specs/**/*.js'",
14-
"cover-v4": "npm run prepare-test-v4 && SEQ_SILENT=true nyc --exclude 'lib/models/v3/**/*.js' --all --require source-map-support/register mocha 'test/specs/**/*.js'",
15-
"exec-tests": "SEQ_SILENT=true mocha 'test/specs/**/*.js'",
13+
"cover-v3": "npm run prepare-test-v3 && nyc --exclude lib/models/v4/**/*.js --all --require source-map-support/register mocha test/specs/",
14+
"cover-v4": "npm run prepare-test-v4 && nyc --exclude lib/models/v3/**/*.js --all --require source-map-support/register mocha test/specs/",
15+
"exec-tests": "mocha test/specs/",
1616
"test": "npm run test-v4 && npm run test-v3",
1717
"cover": "npm run cover-v4 && npm run cover-v3",
1818
"lint": "tslint ."

test/mocha.opts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--recursive
2+

0 commit comments

Comments
 (0)