From a70f248af5c76d9ec75f27087271b2f3ff6e10b4 Mon Sep 17 00:00:00 2001 From: Sean Landsman Date: Tue, 25 Jul 2017 12:46:21 +0100 Subject: [PATCH] AG-642 Remove deprecation warning in preparation for 16.x --- gulpfile.js | 27 +++++++++++++++++++++++++++ package.json | 15 +++++++++------ 2 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 gulpfile.js diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..87b0add --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,27 @@ +const gulp = require('gulp'); +const gulpTypescript = require('gulp-typescript'); +const merge = require('merge2'); + +gulp.task('watch', watchTask); +gulp.task('rebuild-ag-grid-react', rebuildAgGridReact); + +const tsConfig = '../ag-grid-react/tsconfig.json'; +const tsProject = gulpTypescript.createProject(tsConfig); + +function rebuildAgGridReact() { + console.log("hre"); + const tsResult = gulp + .src('../ag-grid-react/src/**/*.ts') + .pipe(tsProject()); + + return merge([ + tsResult.dts + .pipe(gulp.dest('node_modules/ag-grid-react/lib')), + tsResult.js + .pipe(gulp.dest('node_modules/ag-grid-react/lib')) + ]); +} + +function watchTask() { + gulp.watch(['../ag-grid-react/src/**/*'], rebuildAgGridReact); +} diff --git a/package.json b/package.json index 643d23c..74fbacd 100644 --- a/package.json +++ b/package.json @@ -43,22 +43,27 @@ "babel-preset-react": "6.24.x", "babel-preset-stage-0": "6.24.x", "babel-preset-stage-1": "6.24.x", - "prop-types": "15.5.x", "css-loader": "0.23.x", "mkdirp": "0.5.1", "ncp": "2.0.0", + "prop-types": "15.5.x", "rimraf": "2.5.x", "style-loader": "0.13.x", "webpack": "1.12.x", - "webpack-dev-server": "1.14.x" + "webpack-dev-server": "1.14.x", + "gulp": "3.9.x", + "gulp-typescript": "3.1.x", + "merge2": "1.0.x", + "typescript": "2.3.x" }, "dependencies": { "bootstrap": "3.3.7", "d3": "4.9.1", "file-loader": "0.11.1", "lodash": "4.17.4", - "react": "15.5.x", - "react-dom": "15.5.x", + "react": "15.6.x", + "react-dom": "15.6.x", + "react-dom-factories" : "1.0.0", "react-redux": "5.0.x", "redux": "3.6.x", "url-search-params-polyfill": "1.2.0", @@ -67,5 +72,3 @@ "ag-grid-react": "12.0.x" } } - -