Skip to content

Commit

Permalink
fix: fix gulpfile build paths
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 18, 2018
1 parent c74f736 commit 0ea10f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions build/gulpfile.js
@@ -1,33 +1,34 @@
const gulp = require('gulp');
const ts = require('gulp-typescript');
const tsConfig = require('../tsconfig');
const path = require('path');

gulp.task('build-ts', () => {
return gulp.src([
'src/**/*.ts',
'!src/**/__tests__/**',
'!src/**/__story__/**',
'!src/**/__docs__/**',
'!src/**/story.ts',
'!src/**/story.tsx'
'../src/**/*.ts',
'!../src/**/__tests__/**',
'!../src/**/__story__/**',
'!../src/**/__docs__/**',
'!../src/**/story.ts',
'!../src/**/story.tsx'
]).pipe(ts({
...tsConfig.compilerOptions,
target: 'es5',
module: 'commonjs'
})).pipe(gulp.dest('lib'));
})).pipe(gulp.dest('../lib'));
});

gulp.task('build-modules', () => {
return gulp.src([
'src/**/*.ts',
'!src/**/__tests__/**',
'!src/**/__story__/**',
'!src/**/__docs__/**',
'!src/**/story.ts',
'!src/**/story.tsx'
'../src/**/*.ts',
'!../src/**/__tests__/**',
'!../src/**/__story__/**',
'!../src/**/__docs__/**',
'!../src/**/story.ts',
'!../src/**/story.tsx'
]).pipe(ts({
...tsConfig.compilerOptions,
target: 'ESNext',
module: 'ESNext'
})).pipe(gulp.dest('modules'));
})).pipe(gulp.dest('../modules'));
});
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "libreact",
"version": "0.6.5",
"version": "0.6.6",
"description": "React standard library",
"main": "lib/index.js",
"repository": {
Expand Down

0 comments on commit 0ea10f3

Please sign in to comment.