forked from Airtable/airtable.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
32 lines (29 loc) · 906 Bytes
/
gruntfile.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
'use strict';
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
// Project configuration.
grunt.initConfig({
pkg: pkg,
browserify: {
client: {
src: './lib/airtable.js',
dest: './build/airtable.browser.js',
options: {
transform: [
[
'envify',
{
_: 'purge',
npm_package_version: pkg.version,
},
],
],
preBundleCB: function(b) {
b.require('./lib/airtable.js', {expose: 'airtable'});
},
},
},
},
});
grunt.loadNpmTasks('grunt-browserify');
};