Skip to content
This repository was archived by the owner on Feb 25, 2022. It is now read-only.

Commit 030614c

Browse files
committedJun 17, 2018
refactor(*): Upgrade build to use babel-cli
1 parent c55677f commit 030614c

8 files changed

+2966
-50
lines changed
 

‎.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "presets": ["es2015"] }
1+
{ "presets": ["env"] }

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
dist/
12
nbproject/
23
node_modules/

‎gulpfile.js

-35
This file was deleted.

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Import Connect
2-
import Connection from './lib/Connection';
2+
import Connection from './src/Connection';
33

44
// Export Connection
55
module.exports = Connection;

‎package-lock.json

+2,952
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+11-13
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@
1010
"type": "git",
1111
"url": "https://github.com/jspizziri/sequelize-connect.git"
1212
},
13+
"files": [
14+
"dist"
15+
],
1316
"scripts": {
17+
"prepublish": "npm run build",
1418
"version": "npm run changelog && git add CHANGELOG.md",
1519
"postversion": "git push && git push --tags",
1620
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
21+
"clean": "rm -rf ./dist",
22+
"build": "npm run clean && babel src --out-dir dist/src --source-maps && babel index.js --out-dir dist --source-maps",
1723
"commit": "git-cz"
1824
},
1925
"keywords": [
@@ -32,22 +38,14 @@
3238
"peerDependencies": {
3339
"sequelize": ">=4.0"
3440
},
35-
"devDependencies": {
36-
"babel-core": "^6.9.0",
37-
"babel-eslint": "^6.0.4",
38-
"babel-preset-es2015": "^6.9.0",
39-
"babelify": "^7.3.0",
40-
"commitizen": "^2.8.1",
41-
"cz-conventional-changelog": "^1.1.5",
42-
"eslint": "^2.10.2",
43-
"gulp": "^3.9.1",
44-
"gulp-babel": "^6.1.2",
45-
"gulp-clean": "^0.3.2",
46-
"gulp-sourcemaps": "^1.6.0"
47-
},
4841
"config": {
4942
"commitizen": {
5043
"path": "./node_modules/cz-conventional-changelog"
5144
}
45+
},
46+
"devDependencies": {
47+
"babel-cli": "^6.26.0",
48+
"babel-preset-env": "^1.7.0",
49+
"cz-conventional-changelog": "^2.1.0"
5250
}
5351
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
This repository has been archived.