Permalink
Browse files

Init

  • Loading branch information...
0 parents commit e204ba3040bb7f27b02c90d1cb287434821ed300 @jzaefferer committed Mar 27, 2012
Showing with 149 additions and 0 deletions.
  1. +1 −0 .npmignore
  2. +22 −0 LICENSE-MIT
  3. +27 −0 README.md
  4. +39 −0 grunt.js
  5. +11 −0 lib/grunt-css.js
  6. +35 −0 package.json
  7. +14 −0 test/grunt-css_test.js
@@ -0,0 +1 @@
+/node_modules/
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Jörn Zaefferer
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,27 @@
+# grunt-css
+
+Grunt plugin for linting and minifying CSS
+
+## Getting Started
+Install the module with: `npm install grunt-css`
+
+```javascript
+var grunt_css = require('grunt-css');
+grunt_css.awesome(); // "awesome"
+```
+
+## Documentation
+_(Coming soon)_
+
+## Examples
+_(Coming soon)_
+
+## Contributing
+In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).
+
+## Release History
+_(Nothing yet)_
+
+## License
+Copyright (c) 2012 Jörn Zaefferer
+Licensed under the MIT license.
@@ -0,0 +1,39 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: '<json:package.json>',
+ test: {
+ files: ['test/**/*.js']
+ },
+ lint: {
+ files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
+ },
+ watch: {
+ files: '<config:lint.files>',
+ tasks: 'default'
+ },
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ immed: true,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ boss: true,
+ eqnull: true,
+ node: true
+ },
+ globals: {
+ exports: true
+ }
+ }
+ });
+
+ // Default task.
+ grunt.registerTask('default', 'lint test');
+
+};
@@ -0,0 +1,11 @@
+/*
+ * grunt-css
+ * https://github.com/jzaefferer/grunt-css
+ *
+ * Copyright (c) 2012 Jörn Zaefferer
+ * Licensed under the MIT license.
+ */
+
+exports.awesome = function() {
+ return 'awesome';
+};
@@ -0,0 +1,35 @@
+{
+ "name": "grunt-css",
+ "description": "Grunt plugin for linting and minifying CSS",
+ "version": "0.1.0",
+ "homepage": "https://github.com/jzaefferer/grunt-css",
+ "author": {
+ "name": "Jörn Zaefferer",
+ "email": "joern.zaefferer@gmail.com"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jzaefferer/grunt-css.git"
+ },
+ "bugs": {
+ "url": "https://github.com/jzaefferer/grunt-css/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://github.com/jzaefferer/grunt-css/blob/master/LICENSE-MIT"
+ }
+ ],
+ "main": "lib/grunt-css",
+ "engines": {
+ "node": "~0.6.11"
+ },
+ "scripts": {
+ "test": "grunt test"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "grunt": "~0.3.4"
+ },
+ "keywords": []
+}
@@ -0,0 +1,14 @@
+var grunt_css = require('../lib/grunt-css.js');
+
+exports['awesome'] = {
+ setUp: function(done) {
+ // setup here
+ done();
+ },
+ 'no args': function(test) {
+ test.expect(1);
+ // tests here
+ test.equal(grunt_css.awesome(), 'awesome', 'should be awesome.');
+ test.done();
+ }
+};

0 comments on commit e204ba3

Please sign in to comment.