forked from mukeshsoni/react-telephone-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
43 lines (38 loc) · 1.05 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
var gulp = require('gulp');
var initGulpTasks = require('react-component-gulp-tasks');
// Read the package.json to detect the package name and dependencies
var pkg = JSON.parse(require('fs').readFileSync('./package.json'));
var taskConfig = {
component: {
file: 'ReactTelephoneInput.js',
// The component name controls the standalone module name
name: 'ReactTelephoneInput',
src: 'src',
dist: 'dist',
lib: 'lib',
// This is the name of the package that will be exported
// by the component file. It must match the name of your
// package on npm
pkgName: pkg.name,
less: {
path: 'less',
entry: 'default.less'
}
},
example: {
src: 'example/src',
dist: 'example/dist',
files: [
'index.html',
'flags.png',
'.gitignore'
],
scripts: [
'example.js'
],
less: [
'example.less'
]
}
};
initGulpTasks(gulp, taskConfig);