UNPKG

ti-html2as

Version:

HTML to Attributed String parser for Titanium

54 lines (41 loc) 1.06 kB
'use strict'; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: { unzip: ['modules'], modules: ['example/modules'], app: ['example/build'] }, titaniumifier: { module: { src: '.', dest: '.' } }, titanium: { ios: { options: { command: 'build', logLevel: 'debug', projectDir: './example', platform: 'ios' } } }, unzip: { module: { src: 'nl.fokkezb.html2as-commonjs-<%= pkg.version %>.zip', dest: 'example' } } }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-titaniumifier'); grunt.loadNpmTasks('grunt-titanium'); grunt.loadNpmTasks('grunt-zip'); grunt.registerTask('build', ['titaniumifier:module']); grunt.registerTask('test', ['unzip:module', 'titanium:ios', 'clean:unzip']); grunt.registerTask('ios', ['clean', 'build', 'test']); grunt.registerTask('default', ['ios']); };