Commits

Vyatcheslav Zaytcev committed b75d1e5

rename from samsung-smarttv-builder to samsung-widgetlist grunt task

Comments (0)

Files changed (8)

-# grunt-samsung-smarttv-builder
+# grunt-samsung-widgetlist
 
 Grunt task for build Samsung SmartTV packages.
 
 ## Getting Started
-Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-samsung-smarttv-builder`
+Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-samsung-widgetlist`
 
 Then add this line to your project's `grunt.js` gruntfile:
 
 ```javascript
-grunt.loadNpmTasks('grunt-samsung-smarttv-builder');
+grunt.loadNpmTasks('grunt-samsung-widgetlist');
 ```
 
 [grunt]: https://github.com/cowboy/grunt

bin/grunt-samsung-smarttv-builder

-#!/usr/bin/env node
-require('grunt').npmTasks('grunt-samsung-smarttv-builder').cli();

bin/grunt-samsung-widgetlist

+#!/usr/bin/env node
+require('grunt').npmTasks('grunt-samsung-widgetlist').cli();
 {
-  "name": "grunt-samsung-smarttv-builder",
+  "name": "grunt-samsung-widgetlist",
   "description": "Grunt task for build Samsung SmartTV packages.",
   "version": "0.1.0",
-  "homepage": "https://bitbucket.org/interfaced/grunt-samsung-smarttv-builder/overview",
+  "homepage": "https://bitbucket.org/interfaced/grunt-samsung-widgetlist/overview",
   "author": {
     "name": "Vyatcheslav Zaytcev",
     "email": "vyatcheslav.lacki@gmail.com",
   },
   "repository": {
     "type": "mercurial",
-    "url": "https://bitbucket.org/interfaced/grunt-samsung-smarttv-builder"
+    "url": "https://bitbucket.org/interfaced/grunt-samsung-widgetlist"
   },
   "licenses": [
     {
       "type": "MIT",
-      "url": "https://bitbucket.org/interfaced/grunt-samsung-smarttv-builder/src/tip/LICENSE-MIT"
+      "url": "https://bitbucket.org/interfaced/grunt-samsung-widgetlist/src/tip/LICENSE-MIT"
     }
   ],
   "main": "grunt.js",
-  "bin": "bin/grunt-samsung-smarttv-builder",
+  "bin": "bin/grunt-samsung-widgetlist",
   "engines": {
     "node": "*"
   },

tasks/samsung-smarttv-builder.js

-/*
- * grunt-samsung-smarttv-builder
- * https://bitbucket.org/interfaced/grunt-samsung-smarttv-builder/overview
- *
- * Copyright (c) 2012 Vyatcheslav Zaytcev
- * Licensed under the MIT license.
- */
-
-module.exports = function(grunt) {
-
-  // Please see the grunt documentation for more information regarding task and
-  // helper creation: https://github.com/cowboy/grunt/blob/master/docs/toc.md
-
-  // ==========================================================================
-  // TASKS
-  // ==========================================================================
-
-  grunt.registerTask('samsung-smarttv-builder', 'Your task description goes here.', function() {
-    grunt.log.write(grunt.helper('samsung-smarttv-builder'));
-  });
-
-  // ==========================================================================
-  // HELPERS
-  // ==========================================================================
-
-  grunt.registerHelper('samsung-smarttv-builder', function() {
-    return 'samsung-smarttv-builder!!!';
-  });
-
-};

tasks/samsung-widgetlist.js

+/*
+ * grunt-samsung-widgetlist
+ * https://bitbucket.org/interfaced/grunt-samsung-widgetlist/overview
+ *
+ * Copyright (c) 2012 Vyatcheslav Zaytcev
+ * Licensed under the MIT license.
+ */
+
+module.exports = function (grunt) {
+
+	// Please see the grunt documentation for more information regarding task and
+	// helper creation: https://github.com/cowboy/grunt/blob/master/docs/toc.md
+
+	var path = require('path'),
+		fs = require('fs');
+
+	// ==========================================================================
+	// TASKS
+	// ==========================================================================
+
+	grunt.registerTask('samsung-widgetlist', 'Your task description goes here.', function () {
+		console.log(this.data);
+		grunt.log.write(grunt.helper('samsung-widgetlist'));
+	});
+
+	// ==========================================================================
+	// HELPERS
+	// ==========================================================================
+
+	grunt.registerHelper('samsung-widgetlist', function () {
+		return 'samsung-widgetlist!!!';
+	});
+
+};

test/samsung-smarttv-builder_test.js

-var grunt = require('grunt');
-
-/*
-  ======== A Handy Little Nodeunit Reference ========
-  https://github.com/caolan/nodeunit
-
-  Test methods:
-    test.expect(numAssertions)
-    test.done()
-  Test assertions:
-    test.ok(value, [message])
-    test.equal(actual, expected, [message])
-    test.notEqual(actual, expected, [message])
-    test.deepEqual(actual, expected, [message])
-    test.notDeepEqual(actual, expected, [message])
-    test.strictEqual(actual, expected, [message])
-    test.notStrictEqual(actual, expected, [message])
-    test.throws(block, [error], [message])
-    test.doesNotThrow(block, [error], [message])
-    test.ifError(value)
-*/
-
-exports['samsung-smarttv-builder'] = {
-  setUp: function(done) {
-    // setup here
-    done();
-  },
-  'helper': function(test) {
-    test.expect(1);
-    // tests here
-    test.equal(grunt.helper('samsung-smarttv-builder'), 'samsung-smarttv-builder!!!', 'should return the correct value.');
-    test.done();
-  }
-};

test/samsung-widgetlist_test.js

+var grunt = require('grunt');
+
+/*
+  ======== A Handy Little Nodeunit Reference ========
+  https://github.com/caolan/nodeunit
+
+  Test methods:
+    test.expect(numAssertions)
+    test.done()
+  Test assertions:
+    test.ok(value, [message])
+    test.equal(actual, expected, [message])
+    test.notEqual(actual, expected, [message])
+    test.deepEqual(actual, expected, [message])
+    test.notDeepEqual(actual, expected, [message])
+    test.strictEqual(actual, expected, [message])
+    test.notStrictEqual(actual, expected, [message])
+    test.throws(block, [error], [message])
+    test.doesNotThrow(block, [error], [message])
+    test.ifError(value)
+*/
+
+exports['samsung-widgetlist'] = {
+  setUp: function(done) {
+    // setup here
+    done();
+  },
+  'helper': function(test) {
+    test.expect(1);
+    // tests here
+    test.equal(grunt.helper('samsung-widgetlist'), 'samsung-widgetlist!!!', 'should return the correct value.');
+    test.done();
+  }
+};
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.