A compromise between the speed of make and the ease of use of a build script
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
moonbuild/Alfons.moon

14 lines
387 B

require 'moonscript'
moonbuild = require 'moonbuild'
tasks:
release: =>
error "no version provided" unless @v
tasks.build!
sh "rockbuild -m -t #{@v} upload"
watch: => watch {'.'}, {'.git'}, 'live', (glob '*.moon'), pcall -> moonbuild j: true
build: => moonbuild j: true
install: => moonbuild 'install', j: true
clean: => moonbuild 'clean'
mrproper: => moonbuild 'mrproper'