-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
32 lines (29 loc) · 1 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
currentBuild: null
browserify:
basic:
src: ["./amf-parser.js"]
dest: "lib/amf-parser.js"
options:
transform: ["browserify-shader","workerify"]
external: ["composite-detect","three","jszip","q"]
alias: ["./amf-parser.js:amf-parser"]
bump:
options:
files: ['package.json','bower.json']
updateConfigs: []
commit: true
commitMessage: 'Release of v%VERSION%'
commitFiles: ['package.json','bower.json'] # '-a' for all files
createTag: true
tagName: '%VERSION%'
tagMessage: 'Version %VERSION%'
push: false
pushTo: 'upstream'
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' #options to use with '$ git describe'
grunt.loadNpmTasks "grunt-browserify"
grunt.loadNpmTasks "grunt-bump"
# Task(s).
grunt.registerTask "build-browser-lib", ["browserify"]