-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): stop transpiling for nodejs
BREAKING: main needs to point to src/index.js now, as no lib is generated anymore
- Loading branch information
1 parent
5273a9b
commit 0f7d392
Showing
6 changed files
with
4 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,7 @@ | ||
'use strict' | ||
|
||
const size = require('gulp-size') | ||
|
||
module.exports = (gulp) => { | ||
gulp.task('copy::node', () => { | ||
return gulp.src('src/**/*') | ||
.pipe(size()) | ||
.pipe(gulp.dest('lib')) | ||
}) | ||
|
||
gulp.task('build::node', () => { | ||
const babel = require('gulp-babel') | ||
const config = require('../../config/babel') | ||
|
||
return gulp.src('lib/**/*.js') | ||
.pipe(babel(config)) | ||
.pipe(size()) | ||
.pipe(gulp.dest('lib')) | ||
}) | ||
|
||
gulp.task('build:node', ['clean:node'], (done) => { | ||
const runSequence = require('run-sequence') | ||
|
||
runSequence.use(gulp)( | ||
'copy::node', | ||
'build::node', | ||
done | ||
) | ||
gulp.task('build:node', () => { | ||
throw new Error('node builds are not supported anymore') | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
'use strict' | ||
|
||
module.exports = (gulp) => { | ||
require('./clean/node')(gulp) | ||
require('./clean/browser')(gulp) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters