Skip to content

Commit

Permalink
default files for a new module
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Jul 27, 2012
1 parent 8b9ed11 commit e04bae8
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
5 changes: 5 additions & 0 deletions defaults/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{title}}
---------


Welcome to my YUI module!
10 changes: 10 additions & 0 deletions defaults/docs/component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name" : "{{title}}",
"displayName": "{{name}}",
"description": "{{summary}}",
"author" : [ "{{author}}" ],

"tags": {{tags}},

"examples": []
}
14 changes: 14 additions & 0 deletions defaults/docs/index.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="intro">
<p>
{{summary}}
</p>
</div>

<h2>Description</h2>

<p>{{description}}</p>

```
{{code}}
```

22 changes: 22 additions & 0 deletions defaults/tests/unit/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html>
<head>
<title>{{title}}</title>
<script src="/seed/?filter=raw"></script>
<script src="js/tests.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="logger"></div>


<script>
YUI().use('test-console', 'test', 'module-tests', function(Y) {

(new Y.Test.Console()).render('#logger');

Y.Test.Runner.setName('{{title}}');
Y.Test.Runner.run();
});
</script>
</body>
</html>
15 changes: 15 additions & 0 deletions defaults/tests/unit/js/tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
YUI.add('module-tests', function(Y) {

var suite = new Y.Test.Suite('{{title}}');

suite.add(new Y.Test.Case({
name: 'Automated Tests',
'test is empty': function() {
Y.Assert.fail('No Tests Provided For This Module');
}
}));

Y.Test.Runner.add(suite);


},'', { requires: [ 'test' ] });

0 comments on commit e04bae8

Please sign in to comment.