Move tsd task to gulpfile
parent
eb04045605
commit
a9518b6582
|
@ -35,4 +35,9 @@ gulp.task('css', function () {
|
||||||
.pipe(gulp.dest('./lib'));
|
.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']);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "react-toolbox",
|
"name": "react-toolbox",
|
||||||
"description": "A set of React components implementing Google's Material Design specification with the power of CSS Modules.",
|
"description": "A set of React components implementing Google's Material Design specification with the power of CSS Modules.",
|
||||||
"homepage": "http://www.react-toolbox.com",
|
"homepage": "http://www.react-toolbox.com",
|
||||||
"version": "2.0.0-beta.8",
|
"version": "2.0.0-beta.11",
|
||||||
"main": "./lib",
|
"main": "./lib",
|
||||||
"module": "./components",
|
"module": "./components",
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"babel": "babel ./components --out-dir ./lib",
|
"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",
|
"clean": "rimraf ./lib",
|
||||||
"css": "cpx \"./components/**/*.css\" ./lib",
|
"css": "cpx \"./components/**/*.css\" ./lib",
|
||||||
"lint": "npm run lint:js && npm run lint:css",
|
"lint": "npm run lint:js && npm run lint:css",
|
||||||
|
@ -112,8 +112,7 @@
|
||||||
"release": "bumped release",
|
"release": "bumped release",
|
||||||
"start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server",
|
"start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watch --no-watchman",
|
"test:watch": "jest --watch --no-watchman"
|
||||||
"tsd": "cpx \"./components/**/*.d.ts\" ./lib"
|
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
Loading…
Reference in New Issue