Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 24c71e2

Browse files
committed
Build: Adding basic package.json and some basic dependencies
Setup jshint, and grunt-update authors, and commit-please. Closes gh-24
1 parent e78b0b2 commit 24c71e2

File tree

4 files changed

+107
-0
lines changed

4 files changed

+107
-0
lines changed

.jshintrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"boss": true,
3+
"curly": true,
4+
"eqeqeq": true,
5+
"eqnull": true,
6+
"expr": true,
7+
"immed": true,
8+
"noarg": true,
9+
"onevar": true,
10+
"quotmark": "double",
11+
"smarttabs": true,
12+
"trailing": true,
13+
"undef": true,
14+
"unused": true,
15+
16+
"node": true
17+
}

AUTHORS.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Authors ordered by first contribution
2+
3+
Scott González <scott.gonzalez@gmail.com>
4+
Sarah Frisk <sarah@sarahfrisk.com>
5+
Chris Bracco <chris@cbracco.me>
6+
Alexander Schmitz <arschmitz@gmail.com>

Gruntfile.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = function( grunt ) {
2+
3+
grunt.loadNpmTasks( "grunt-contrib-jshint" );
4+
grunt.loadNpmTasks( "grunt-html" );
5+
6+
grunt.initConfig({
7+
jshint: {
8+
files: [ "*.js" ],
9+
options: {
10+
jshintrc: ".jshintrc"
11+
}
12+
},
13+
htmllint: {
14+
all: [ "*.html", "demos/*.html" ]
15+
}
16+
});
17+
18+
grunt.registerTask( "update-authors", function() {
19+
var getAuthors = require( "grunt-git-authors" ),
20+
done = this.async();
21+
22+
getAuthors( {}, function( error, authors ) {
23+
if ( error ) {
24+
grunt.log.error( error );
25+
return done( error );
26+
}
27+
28+
grunt.file.write( "AUTHORS.txt",
29+
"Authors ordered by first contribution\n\n" +
30+
authors.join( "\n" ) + "\n" );
31+
done();
32+
});
33+
});
34+
35+
grunt.registerTask( "default", "jshint", "htmllint" );
36+
37+
};

package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "css-chassis",
3+
"title": "Chassis",
4+
"description": "An attempt at creating open standards designed for CSS libraries, JavaScript UI libraries, and web developers in general",
5+
"version": "0.0.1-pre",
6+
"author": {
7+
"name": "jQuery Foundation and other contributors",
8+
"url": "https://github.com/jquery/css-chassis/blob/master/AUTHORS.txt"
9+
},
10+
"maintainers": [
11+
{
12+
"name": "Sarah Frisk",
13+
"email": "sarah@sarahfrisk.net",
14+
"url": "http://sarahfrisk.net"
15+
},
16+
{
17+
"name": "Alexander Schmitz",
18+
"email": "arschmitz@gmail.com",
19+
"url": "http://arschmitz.me"
20+
},
21+
{
22+
"name": "Chris Bracco",
23+
"email": "chris@cbracco.me",
24+
"url": "http://cbracco.me"
25+
}
26+
27+
],
28+
"repository": {
29+
"type": "git",
30+
"url": "git://github.com/jquery/css-chassis.git"
31+
},
32+
"bugs": "http://github.com/jquery/css-chassis/issues/",
33+
"licenses": [
34+
{
35+
"type": "MIT",
36+
"url": "https://github.com/jquery/css-chassis/blob/master/LICENSE.txt"
37+
}
38+
],
39+
"dependencies": {},
40+
"devDependencies": {
41+
"commitplease": "2.0.0",
42+
"grunt": "0.4.2",
43+
"grunt-contrib-jshint": "0.10.0",
44+
"grunt-git-authors": "2.0.0"
45+
},
46+
"keywords": []
47+
}

0 commit comments

Comments
 (0)