Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 640eb0b6c3c875860c53e2a975f3523cd6fefc00 @necolas necolas committed Aug 23, 2012
@@ -0,0 +1,2 @@
+dist
+node_modules
@@ -0,0 +1,14 @@
+{
+ "browser": false,
+ "curly": true,
+ "eqeqeq": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "sub": true,
+ "undef": true,
+ "boss": true,
+ "eqnull": true,
+ "node": true,
+ "es5": true
+}
@@ -0,0 +1,19 @@
+Copyright (c) HTML5 Boilerplate
+
+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,22 @@
+# mobileboilerplate.com source code
+
+The Mobile Boilerplate website is a simple static site.
+
+* The development code is in the `src` directory.
+* The build process relies on grunt - a Node.js build script. The grunt
+ configuration is found in `grunt.js` and the individual tasks are found in
+ the `tasks` directory.
+
+## Development setup
+
+1. Install Node.js and npm
+2. Install grunt globally: `npm install -g grunt`.
+3. Run `npm install`.
+
+You should be able to work almost entirely in the `src` directory.
+
+When you have finished your changes, make sure that the distribution package is
+correct by running `grunt build` and then checking the output.
+
+If you need to modify the grunt tasks or configuration, please run `grunt lint`
+and make sure that there are no errors before committing code.
@@ -0,0 +1,60 @@
+module.exports = function(grunt) {
+ 'use strict';
+
+ // readOptionalJSON
+ // by Ben Alman
+ // https://gist.github.com/2876125
+ function readOptionalJSON( filepath ) {
+ var data = {};
+ try {
+ data = grunt.file.readJSON( filepath );
+ grunt.verbose.write( "Reading " + filepath + "..." ).ok();
+ } catch(e) {}
+ return data;
+ }
+
+ // Project configuration.
+ grunt.initConfig({
+ dir: {
+ src: 'src',
+ dest: 'dist'
+ },
+
+ lint: {
+ grunt: ['grunt.js']
+ },
+
+ min: {
+ 'dist/js/main.min.js': '<%= dir.src %>/js/main.js'
+ },
+
+ mincss: {
+ 'dist/css/main.min.css': [
+ '<%= dir.src %>/css/_normalize.css',
+ '<%= dir.src %>/css/_base.css',
+ '<%= dir.src %>/css/_utils.css',
+ '<%= dir.src %>/css/_components.css',
+ '<%= dir.src %>/css/_site.css',
+ '<%= dir.src %>/css/_mq.css',
+ '<%= dir.src %>/css/_print.css'
+ ]
+ },
+
+ jshint: {
+ options: readOptionalJSON('.jshintrc')
+ },
+
+ watch: {
+ lint: {
+ files: '<config:lint.grunt>',
+ tasks: ['lint']
+ }
+ }
+ });
+
+ grunt.loadTasks('tasks');
+ // Default task.
+ grunt.registerTask('default', ['watch']);
+ // Build task.
+ grunt.registerTask('build', ['clean', 'copy', 'min', 'mincss', 'usemin']);
+};
@@ -0,0 +1,27 @@
+{
+ "name": "html5boilerplate-com",
+ "description": "Website for the HTML5 Boilerplate project",
+ "version": "1.0.0",
+ "author": "Nicolas Gallagher (http://nicolasgallagher.com/)",
+ "homepage": "http://html5boilerplate.com",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/h5bp/html5boilerplate.com.git"
+ },
+ "bugs": {
+ "url" : "https://github.com/h5bp/html5boilerplate.com/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://github.com/h5bp/html5boilerplate.com/blob/master/LICENSE"
+ }
+ ],
+ "dependencies": {
+ },
+ "devDependencies": {
+ "clean-css": "~0.4.1",
+ "grunt": "0.3.x",
+ "rimraf": "2.0.x"
+ }
+}
Oops, something went wrong.

0 comments on commit 640eb0b

Please sign in to comment.