Skip to content

Commit cf6f77e

Browse files
committed
initial
1 parent 24fef00 commit cf6f77e

35 files changed

+2442
-3
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ logs
1212
results
1313

1414
npm-debug.log
15+
16+
node_modules
17+
node_modules/*

.jshintrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"curly": false,
3+
"eqeqeq": false,
4+
"immed": true,
5+
"latedef": true,
6+
"newcap": true,
7+
"noarg": true,
8+
"sub": true,
9+
"undef": true,
10+
"boss": true,
11+
"eqnull": true,
12+
"node": true,
13+
"es5": true,
14+
"evil": true
15+
}

Gruntfile.js

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* grunt-html
3+
* https://github.com/aaaristo/grunt-html
4+
*
5+
* Copyright (c) 2012 Tim Branyen, contributors
6+
* Licensed under the MIT license.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = function(grunt) {
12+
13+
// Project configuration.
14+
grunt.initConfig({
15+
jshint: {
16+
all: [
17+
'Gruntfile.js',
18+
'tasks/*.js',
19+
'<%= nodeunit.tests %>'
20+
],
21+
options: {
22+
jshintrc: '.jshintrc'
23+
},
24+
},
25+
watch: {
26+
files: ['tasks/*.js','test/**/*.js','test/**/*.html','.jshintrc'],
27+
tasks: ['jshint','test']
28+
},
29+
// Unit tests.
30+
nodeunit: {
31+
tests: ['test/tasks/*_test.js'],
32+
},
33+
});
34+
35+
// Actually load this plugin's task(s).
36+
grunt.loadTasks('tasks');
37+
38+
// These plugins provide necessary tasks.
39+
grunt.loadNpmTasks('grunt-contrib-jshint');
40+
grunt.loadNpmTasks('grunt-contrib-nodeunit');
41+
grunt.loadNpmTasks('grunt-contrib-watch');
42+
43+
grunt.registerTask('test', 'nodeunit');
44+
45+
// By default, lint and run all tests.
46+
grunt.registerTask('default', ['jshint', 'test']);
47+
};

LICENSE-MIT

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2013 Andrea Amerigo Aristodemo Gariboldi
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

README.md

+23-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
grunt-html-builder
2-
==================
1+
# grunt-html
32

4-
A grunt HTML site builder
3+
Assemble static HTML files
4+
5+
## Getting Started
6+
Install this grunt plugin next to your project's Gruntfile.js with: `npm install grunt-html-builder`
7+
8+
Then add this line to your project's `Gruntfile.js` gruntfile:
9+
10+
```javascript
11+
grunt.loadNpmTasks('grunt-html-builder');
12+
```
13+
14+
[grunt]: http://gruntjs.com/
15+
16+
## Documentation
17+
_(Coming soon)_
18+
19+
## Release History
20+
_(Nothing yet)_
21+
22+
## License
23+
Copyright (c) 2013 Andrea Amerigo Aristodemo Gariboldi
24+
Licensed under the MIT license.

package.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "grunt-html-builder",
3+
"description": "Build HTML sites",
4+
"version": "0.4.0",
5+
"homepage": "https://github.com/aaaristo/grunt-html-builder",
6+
"author": {
7+
"name": "Andrea Amerigo Aristodemo Gariboldi",
8+
"url": "https://github.com/aaaristo"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git://github.com/aaaristo/grunt-html-builder"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/aaaristo/grunt-html-builder/issues"
16+
},
17+
"licenses": [
18+
{
19+
"type": "MIT",
20+
"url": "https://github.com/aaaristo/grunt-html-builder/blob/master/LICENSE-MIT"
21+
}
22+
],
23+
"main": "Gruntfile.js",
24+
"engines": {
25+
"node": ">= 0.8.0"
26+
},
27+
"scripts": {
28+
"test": "grunt test"
29+
},
30+
"dependencies": {
31+
"jquery-html": "~0.1.0",
32+
"JSONPath": "~0.9.1",
33+
"async": "~0.2.5"
34+
},
35+
"devDependencies": {
36+
"grunt-contrib-jshint": "~0.2.0",
37+
"grunt-contrib-nodeunit": "~0.1.2",
38+
"grunt": "~0.4.0",
39+
"grunt-contrib-watch": "~0.3.0"
40+
},
41+
"peerDependencies": {
42+
"grunt": "~0.4.0"
43+
},
44+
"keywords": [
45+
"gruntplugin"
46+
]
47+
}

resources/html.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Test site</title>
5+
</head>
6+
<body>
7+
</body>
8+
</html>

0 commit comments

Comments
 (0)