This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathGruntfile.js
50 lines (43 loc) · 1.88 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//----------------------------------------------------------------------------------------------------------------------
// Qniform Gruntfile
//----------------------------------------------------------------------------------------------------------------------
module.exports = function(grunt)
{
grunt.initConfig({
browserify: {
dist: {
options: {
banner: "/* VueBoot v" + require('./package').version + " */",
transform: [ "vueify", "babelify" ],
external: ['vue'],
plugin: [
[ "browserify-derequire" ]
],
browserifyOptions: {
//bundleExternal: false,
standalone: 'vueboot'
}
},
files: {
"./dist/vueboot.js": "./src/vueboot.js"
}
}
},
clean: ['dist'],
watch: {
build: {
files: ["src/**/*.js", "src/**/*.vue", "src/**/*.scss"],
tasks: ["browserify"]
}
}
});
//------------------------------------------------------------------------------------------------------------------
grunt.loadNpmTasks("grunt-browserify");
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
//------------------------------------------------------------------------------------------------------------------
grunt.registerTask("build", ["clean", "browserify"]);
grunt.registerTask("default", ["build", 'watch']);
//------------------------------------------------------------------------------------------------------------------
};
//----------------------------------------------------------------------------------------------------------------------