Skip to content

Commit 4539a5f

Browse files
committed
Remove some holdout tabs
1 parent 94ddf95 commit 4539a5f

File tree

3 files changed

+100
-100
lines changed

3 files changed

+100
-100
lines changed

gulpfile.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -15,81 +15,81 @@ const testWebpackConfig = require('./webpack.test.config');
1515
const banner = '/*! <%= pkg.name %> - v<%= pkg.version %> | <%= new Date().getFullYear() %> */\n';
1616

1717
gulp.task('test-script-format', () => (
18-
gulp.src(['./src/js/**/*.js'])
19-
.pipe(eslint())
20-
.pipe(eslint.format())
21-
.pipe(eslint.failOnError())
18+
gulp.src(['./src/js/**/*.js'])
19+
.pipe(eslint())
20+
.pipe(eslint.format())
21+
.pipe(eslint.failOnError())
2222
));
2323

2424
gulp.task('test-mocha', ['test-script-format'], () => (
25-
gulp.src(['./test/**/*.js'])
26-
.pipe(mocha({
27-
compilers: [
28-
'js:babel-core/register',
29-
],
30-
require: [
31-
'./test/setup.js',
32-
],
33-
}))
25+
gulp.src(['./test/**/*.js'])
26+
.pipe(mocha({
27+
compilers: [
28+
'js:babel-core/register',
29+
],
30+
require: [
31+
'./test/setup.js',
32+
],
33+
}))
3434
));
3535

3636
gulp.task('test', ['test-script-format', 'test-mocha']);
3737

3838
gulp.task('build-script', ['test'], () => (
39-
gulp.src(['./src/index.js'])
40-
.pipe(webpackStream(webpackConfig, webpack))
41-
.pipe(header(banner, { pkg }))
42-
.pipe(gulp.dest('./lib/'))
39+
gulp.src(['./src/index.js'])
40+
.pipe(webpackStream(webpackConfig, webpack))
41+
.pipe(header(banner, { pkg }))
42+
.pipe(gulp.dest('./lib/'))
4343
));
4444

4545
gulp.task('build-style', () => (
46-
gulp.src('./src/scss/**/*.scss')
47-
.pipe(scsslint())
48-
.pipe(scsslint.failReporter())
49-
.pipe(sass({
50-
outputStyle: 'expanded',
51-
}).on('error', sass.logError))
52-
.pipe(autoprefixer({
53-
browsers: ['last 2 versions'],
54-
}))
55-
.pipe(gulp.dest('./lib'))
46+
gulp.src('./src/scss/**/*.scss')
47+
.pipe(scsslint())
48+
.pipe(scsslint.failReporter())
49+
.pipe(sass({
50+
outputStyle: 'expanded',
51+
}).on('error', sass.logError))
52+
.pipe(autoprefixer({
53+
browsers: ['last 2 versions'],
54+
}))
55+
.pipe(gulp.dest('./lib'))
5656
));
5757

5858
gulp.task('build', ['build-script', 'build-style']);
5959

6060
gulp.task('build-examples-style', () => (
61-
gulp.src('./examples/src/scss/**/*.scss')
62-
.pipe(scsslint())
63-
.pipe(scsslint.failReporter())
64-
.pipe(sass({
65-
outputStyle: 'expanded',
66-
}).on('error', sass.logError))
67-
.pipe(autoprefixer({
68-
browsers: ['last 2 versions'],
69-
}))
70-
.pipe(gulp.dest('./examples/dist'))
71-
.pipe(browserSync.stream())
61+
gulp.src('./examples/src/scss/**/*.scss')
62+
.pipe(scsslint())
63+
.pipe(scsslint.failReporter())
64+
.pipe(sass({
65+
outputStyle: 'expanded',
66+
}).on('error', sass.logError))
67+
.pipe(autoprefixer({
68+
browsers: ['last 2 versions'],
69+
}))
70+
.pipe(gulp.dest('./examples/dist'))
71+
.pipe(browserSync.stream())
7272
));
7373

7474
gulp.task('build-examples-script', () => (
75-
gulp.src(['./examples/src/index.js'])
76-
.pipe(webpackStream(testWebpackConfig, webpack))
77-
.pipe(gulp.dest('./examples/dist/'))
78-
.pipe(browserSync.stream())
75+
gulp.src(['./examples/src/index.js'])
76+
.pipe(webpackStream(testWebpackConfig, webpack))
77+
.pipe(gulp.dest('./examples/dist/'))
78+
.pipe(browserSync.stream())
7979
));
8080

8181
gulp.task('build-examples-html', () => (
82-
gulp.src('./examples/src/index.html')
83-
.pipe(gulp.dest('./examples/dist/'))
84-
.pipe(browserSync.stream())
82+
gulp.src('./examples/src/index.html')
83+
.pipe(gulp.dest('./examples/dist/'))
84+
.pipe(browserSync.stream())
8585
));
8686

8787
gulp.task('examples', ['build-examples-style', 'build-examples-script', 'build-examples-html'], () => {
88-
browserSync.init({ server: './examples/dist' });
88+
browserSync.init({ server: './examples/dist' });
8989

90-
gulp.watch(['./src/js/**/*.js', './examples/src/**/*.js'], ['build-examples-script']);
91-
gulp.watch(['./src/scss/**/*.scss', './examples/src/**/*.scss'], ['build-examples-style']);
92-
gulp.watch(['./examples/src/**/*.html'], ['build-examples-html']).on('change', browserSync.reload);
90+
gulp.watch(['./src/js/**/*.js', './examples/src/**/*.js'], ['build-examples-script']);
91+
gulp.watch(['./src/scss/**/*.scss', './examples/src/**/*.scss'], ['build-examples-style']);
92+
gulp.watch(['./examples/src/**/*.html'], ['build-examples-html']).on('change', browserSync.reload);
9393
});
9494

9595
gulp.task('default', ['build']);

webpack.config.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
module.exports = {
2-
output: {
3-
filename: 'index.js',
4-
libraryTarget: 'umd',
5-
library: 'ReactCheckboxTree',
6-
},
7-
externals: [
8-
{
9-
react: {
10-
root: 'React',
11-
commonjs2: 'react',
12-
commonjs: 'react',
13-
amd: 'react',
14-
},
15-
},
16-
{
17-
'react-dom': {
18-
root: 'ReactDOM',
19-
commonjs2: 'react-dom',
20-
commonjs: 'react-dom',
21-
amd: 'react-dom',
22-
},
23-
},
24-
],
25-
module: {
26-
rules: [
27-
{
28-
test: /\.js?$/,
29-
exclude: /(node_modules|bower_components|vender_modules)/,
30-
loader: 'babel-loader',
31-
},
32-
],
33-
},
2+
output: {
3+
filename: 'index.js',
4+
libraryTarget: 'umd',
5+
library: 'ReactCheckboxTree',
6+
},
7+
externals: [
8+
{
9+
react: {
10+
root: 'React',
11+
commonjs2: 'react',
12+
commonjs: 'react',
13+
amd: 'react',
14+
},
15+
},
16+
{
17+
'react-dom': {
18+
root: 'ReactDOM',
19+
commonjs2: 'react-dom',
20+
commonjs: 'react-dom',
21+
amd: 'react-dom',
22+
},
23+
},
24+
],
25+
module: {
26+
rules: [
27+
{
28+
test: /\.js?$/,
29+
exclude: /(node_modules|bower_components|vender_modules)/,
30+
loader: 'babel-loader',
31+
},
32+
],
33+
},
3434
};

webpack.test.config.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
const path = require('path');
22

33
module.exports = {
4-
output: {
5-
filename: 'index.js',
6-
libraryTarget: 'umd',
7-
library: 'ReactCheckboxTree',
8-
},
9-
resolve: {
10-
alias: {
11-
'react-checkbox-tree': path.resolve(__dirname, 'src/js/CheckboxTree'),
12-
},
13-
},
14-
module: {
15-
rules: [
16-
{
17-
test: /\.js?$/,
18-
exclude: /(node_modules|bower_components|vender_modules)/,
19-
loader: 'babel-loader',
20-
},
21-
],
22-
},
4+
output: {
5+
filename: 'index.js',
6+
libraryTarget: 'umd',
7+
library: 'ReactCheckboxTree',
8+
},
9+
resolve: {
10+
alias: {
11+
'react-checkbox-tree': path.resolve(__dirname, 'src/js/CheckboxTree'),
12+
},
13+
},
14+
module: {
15+
rules: [
16+
{
17+
test: /\.js?$/,
18+
exclude: /(node_modules|bower_components|vender_modules)/,
19+
loader: 'babel-loader',
20+
},
21+
],
22+
},
2323
};

0 commit comments

Comments
 (0)