UNPKG

@nuskin/ns-checkout

Version:

Ecomm3 Checkout module

47 lines (42 loc) 1.3 kB
var process = require("process"); var shell = require('shelljs'); module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), compass: { dist: { options: { sassDir: 'stylesheets', cssDir: 'stylesheets/generatedCSS' } } }, cssmin: { css: { src: 'stylesheets/generatedCSS/checkout.css', dest: 'stylesheets/generatedCSS/checkout.min.css' } }, copy: { main: { expand: true, cwd: 'stylesheets/generatedCSS/', src: ['*'], dest: 'dist/src' }, index: { expand: true, cwd: 'dist', src: ['index.html'], dest: 'dist' } } }); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-compass'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.registerTask('transpile', ['compass', 'cssmin']); grunt.registerTask('default', ['transpile']); };