Skip to content

Commit 480f3fc

Browse files
Next v3 (#530)
1 parent 4998412 commit 480f3fc

File tree

93 files changed

+1974
-2932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1974
-2932
lines changed

.babelrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"node": "4.0"
6+
},
7+
"exclude": [
8+
"transform-async-to-generator",
9+
"transform-regenerator"
10+
],
11+
"useBuiltIns": true
12+
}]
13+
],
14+
"plugins": [
15+
"transform-object-rest-spread",
16+
["transform-async-to-module-method", {
17+
"module": "bluebird",
18+
"method": "coroutine"
19+
}]
20+
],
21+
"ignore": [
22+
"src/assets"
23+
]
24+
}

.eslintrc.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"rules": {
3+
"no-console": "off",
4+
"no-extra-parens": "warn",
5+
"valid-jsdoc": "off",
6+
"new-cap": ["warn", {"properties": false}],
7+
"comma-spacing": ["error", {"before": false, "after": true}],
8+
"no-extra-boolean-cast": "warn",
9+
"strict": ["warn", "global"],
10+
"no-var": "error",
11+
"prefer-const": "error",
12+
"semi": ["error", "always"],
13+
"space-before-function-paren": ["warn", "always"],
14+
"keyword-spacing": ["warn"],
15+
"prefer-arrow-callback": "error",
16+
"arrow-parens": ["error", "as-needed"],
17+
"comma-style": ["warn", "last"],
18+
"no-bitwise": "off",
19+
"no-cond-assign": ["error", "except-parens"],
20+
"curly": "off",
21+
"eqeqeq": "error",
22+
"no-extend-native": "error",
23+
"wrap-iife": ["error", "any"],
24+
"indent": ["error", 2, {"SwitchCase": 1}],
25+
"no-use-before-define": "off",
26+
"no-caller": "error",
27+
"no-undef": "error",
28+
"no-unused-vars": "error",
29+
"no-irregular-whitespace": "error",
30+
"max-depth": ["error", 8],
31+
"quotes": ["error", "single", {"avoidEscape": true}],
32+
"linebreak-style": "error",
33+
"no-loop-func": "warn",
34+
"object-shorthand": "error",
35+
"one-var-declaration-per-line": "warn",
36+
"comma-dangle": "warn",
37+
"no-shadow": "warn",
38+
"camelcase": "warn"
39+
},
40+
"parserOptions": {
41+
"ecmaVersion": 2017,
42+
"sourceType": "module"
43+
},
44+
"env": {
45+
"node": true,
46+
"mocha": true,
47+
"es6": true
48+
}
49+
}

.gitignore

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ pids
77
*.pid
88
*.seed
99

10+
# Editor files
11+
.vscode
12+
1013
# Directory for instrumented libs generated by jscoverage/JSCover
1114
lib-cov
1215

1316
# Coverage directory used by tools like istanbul
1417
coverage
1518

16-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17-
.grunt
18-
19-
# Vagrant intermediate storage
20-
var/vagrant/.vagrant
21-
2219
# Compiled binary addons (http://nodejs.org/api/addons.html)
2320
build/Release
2421

25-
# Dependency directory
26-
# Deployed apps should consider commenting this line out:
27-
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
22+
# Extra folders
2823
node_modules
24+
lib
25+
test/support/tmp/*
26+
!test/support/tmp/.gitkeep
2927

30-
test/support/tmp
28+
# Extra files
29+
package-lock.json
30+
npm-debug.log

.jscsrc

Lines changed: 0 additions & 57 deletions
This file was deleted.

.jshintrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.mention-bot

Lines changed: 0 additions & 4 deletions
This file was deleted.

.npmignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
node_modules
17+
18+
package-lock.json
19+
.vscode
20+
npm-debug.log

.travis.yml

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
1-
before_script:
2-
- "mysql -e 'create database sequelize_test;'"
3-
- "psql -c 'create database sequelize_test;' -U postgres"
4-
- npm install js2coffee@$(echo $JS2COFFEE)
5-
- npm install sequelize@$(echo $SEQUELIZE)
6-
7-
script:
8-
- travis_retry node_modules/.bin/gulp
9-
10-
env:
11-
- JS2COFFEE=2.0.0 DIALECT=mysql SEQUELIZE=3.30.4
12-
- JS2COFFEE=2.0.0 DIALECT=postgres SEQUELIZE=4.1.0
13-
14-
language: node_js
15-
16-
node_js:
17-
- "4.0"
18-
- "6.0"
19-
201
sudo: false
2+
dist: trusty
213

22-
addons:
23-
postgresql: "9.4"
4+
language: node_js
245

256
cache:
267
directories:
278
- node_modules
9+
10+
jobs:
11+
include:
12+
- stage: tests
13+
node_js: 4
14+
env: DIALECT=mysql SEQUELIZE=3.30.4
15+
- stage: tests
16+
node_js: 4
17+
env: DIALECT=postgres SEQUELIZE=3.30.4
18+
- stage: tests
19+
node_js: 4
20+
env: DIALECT=sqlite SEQUELIZE=3.30.4
21+
- stage: tests
22+
node_js: 6
23+
env: DIALECT=postgres SEQUELIZE=latest
24+
- stage: tests
25+
node_js: 6
26+
env: DIALECT=sqlite SEQUELIZE=latest
27+
28+
before_script:
29+
- "mysql -e 'create database sequelize_test;'"
30+
- "psql -c 'create database sequelize_test;' -U postgres"
31+
- npm install sequelize@$(echo $SEQUELIZE)
32+
- npm run build
33+
34+
script:
35+
- npm run test

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@ All notable changes to this project will be documented in this file.
33

44
## Upcoming
55

6+
7+
## v3.0.0 - 1st, Sep 2017
8+
9+
### Removed
10+
- `db:migrate:old_schema`
11+
- `--coffee` support
12+
- `help:*` commands
13+
14+
### Fixed
15+
- Drop Gulp [#344](https://github.com/sequelize/cli/issues/344)
16+
- NSP Vulnerability [#466](https://github.com/sequelize/cli/issues/466)
17+
- Non functional with Node 7 [#383](https://github.com/sequelize/cli/issues/383)
18+
- Unable to find Gulp [#138](https://github.com/sequelize/cli/issues/138)
19+
- Reintegrate Gulp [#5](https://github.com/sequelize/cli/issues/5)
20+
- Unable to seed multiple files [#523](https://github.com/sequelize/cli/issues/523)
21+
- No Gulpfile found [#480](https://github.com/sequelize/cli/issues/480)
22+
- Exit Code(1) when migration undo fail [#394](https://github.com/sequelize/cli/issues/394)
23+
- ES2015 [#389](https://github.com/sequelize/cli/issues/389)
24+
- `--coffee` flag dont work with `.rc` file [#244](https://github.com/sequelize/cli/issues/244)
25+
- CLI dont halt on error [#106](https://github.com/sequelize/cli/issues/106)
26+
27+
### Improvements
28+
- No Gulp, better startup time
29+
- Proper exit codes
30+
- Remove dependency on `moment` , `findup-sync`, `gulp` and `gulp-help`
31+
632
## v2.8.0 - 2017-08-04
733
### Added
834
- Timestamps db:migrate:schema:timestamps:add [#460](https://github.com/sequelize/cli/pull/460)

0 commit comments

Comments
 (0)