UNPKG

@nitro-ui/component-button

Version:

Button component for Nitro UI.

86 lines (77 loc) 2.18 kB
const sass = require( 'node-sass' ); module.exports = function( grunt ) { // Project configuration. grunt.initConfig( { clean: { 'dist': 'dist' }, sass: { options: { includePaths: [ 'node_modules', '.' ], implementation: sass, sourceMap: true }, build: { files: { 'dist/css/button.css': [ 'src/scss/button.scss' ] } }, compressed: { options: { style: 'compressed' }, files: { 'dist/css/button.min.css': [ 'src/scss/button.scss' ] } } }, watch: { css: { files: [ '**/*.{sass,scss}' ], tasks: [ 'sass', 'notify:css' ], options: { spawn: false, livereload: true, interrupt: true }, } }, notify: { ping: { options:{ title: 'Nitro UI', message: 'PONG!' } }, watch: { options:{ title: 'Nitro UI', message: 'Watching...' } }, css: { options:{ title: 'Nitro UI', message: 'CSS Ready!' } }, js: { options:{ title: 'Nitro UI', message: 'JS Ready!' } } } } ); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks( 'grunt-contrib-clean' ); grunt.loadNpmTasks( 'grunt-sass' ); grunt.loadNpmTasks( 'grunt-contrib-watch' ); grunt.loadNpmTasks( 'grunt-notify' ); // Default task(s). grunt.registerTask( 'default', [ 'clean', 'sass', 'notify:css' ] ); };