Skip to content

Commit

Permalink
Move tsd task to gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed May 29, 2017
1 parent eb04045 commit a9518b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ gulp.task('css', function () {
.pipe(gulp.dest('./lib'));
});

gulp.task('default', ['js', 'css']);
gulp.task('tsd', function () {
gulp.src('./components/**/*.d.ts')
.pipe(gulp.dest('./lib'));
});

gulp.task('default', ['js', 'css', 'tsd']);
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-toolbox",
"description": "A set of React components implementing Google's Material Design specification with the power of CSS Modules.",
"homepage": "http://www.react-toolbox.com",
"version": "2.0.0-beta.8",
"version": "2.0.0-beta.11",
"main": "./lib",
"module": "./components",
"author": {
Expand Down Expand Up @@ -99,7 +99,7 @@
},
"scripts": {
"babel": "babel ./components --out-dir ./lib",
"build": "cross-env NODE_ENV=production gulp && npm run tsd",
"build": "cross-env NODE_ENV=production gulp",
"clean": "rimraf ./lib",
"css": "cpx \"./components/**/*.css\" ./lib",
"lint": "npm run lint:js && npm run lint:css",
Expand All @@ -112,8 +112,7 @@
"release": "bumped release",
"start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server",
"test": "jest",
"test:watch": "jest --watch --no-watchman",
"tsd": "cpx \"./components/**/*.d.ts\" ./lib"
"test:watch": "jest --watch --no-watchman"
},
"license": "MIT",
"jest": {
Expand Down

0 comments on commit a9518b6

Please sign in to comment.