From 604ec2c9c4393d8b7014b1be463ca0b2f1f5be2d Mon Sep 17 00:00:00 2001 From: Adrian Philipp Date: Sat, 12 Oct 2013 13:32:21 +0200 Subject: [PATCH] Initial commit. --- .gitignore | 45 ++++++++++++++ Gruntfile.coffee | 132 ++++++++++++++++++++++++++++++++++++++++++ README.md | 25 ++++++++ _config.yml | 20 +++++++ _includes/footer.html | 0 _includes/header.html | 0 _layouts/default.html | 0 _layouts/post.html | 0 css/main.css | 2 + css/main.css.map | 6 ++ css/main.scss | 0 index.html | 6 ++ package.json | 14 +++++ 13 files changed, 250 insertions(+) create mode 100644 .gitignore create mode 100644 Gruntfile.coffee create mode 100644 README.md create mode 100644 _config.yml create mode 100644 _includes/footer.html create mode 100644 _includes/header.html create mode 100644 _layouts/default.html create mode 100644 _layouts/post.html create mode 100644 css/main.css create mode 100644 css/main.css.map create mode 100644 css/main.scss create mode 100644 index.html create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55e4185 --- /dev/null +++ b/.gitignore @@ -0,0 +1,45 @@ +# Numerous always-ignore extensions +*.diff +*.err +*.orig +*.log +*.rej +*.swo +*.swp +*.vi +*~ +*.sass-cache + +# OS or Editor folders +._* +.DS_Store +._.DS_Store +Thumbs.db +.cache +.project +.settings +.tmproj +*.esproj +nbproject + +# Sublimetext +*.sublime-* + +# Jekyll +build/ + +# Komodo +*.komodoproject +.komodotools + +# Folders to ignore +.hg +.svn +.CVS +intermediate +publish +.idea +_site +/node_modules/ +/_src/ + diff --git a/Gruntfile.coffee b/Gruntfile.coffee new file mode 100644 index 0000000..88a18ea --- /dev/null +++ b/Gruntfile.coffee @@ -0,0 +1,132 @@ +module.exports = -> + # Project configuration + @initConfig + pkg: @file.readJSON 'package.json' + + connect: + dev: + options: + hostname: '*' + port: 4000 + base: '_site' + + sass: + src: + options: + sourcemap: true + style: 'compressed' + files: + 'css/main.css': 'css/main.scss' + site: + options: + sourcemap: true + style: 'compressed' + files: + '_site/css/main.css': '_site/css/main.scss' + + copy: + site2src: + files: [ + expand: true + cwd: '_site/css/' + src: ['main.*'], + dest: 'css/' + ] + + #imagemin: + # dist: + # options: + # optimizationLevel: 7 + # files: [ + # expand: true # only compressing jpg right now + # cwd: 'img-src/' + # src: ['**/*.jpg'] + # dest: 'img/', + # ext: '.jpg' + # ] + + jekyll: + dev: + options: {} + + # docco: + # noflo: + # src: ['_src/src/lib/*.coffee'] + # options: + # output: 'api/' + # template: '_docco/docco.jst' + + shell: + gitclone: + command: 'git clone git://github.com/php-vcr/php-vcr.git _src' + + watch: + # php-vcr-api-docs: + # files: [ + # '_docco/*.jst' + # ] + # tasks: ['docco'] + jekyll: + files: [ + '_config.yml' + 'index.html' + '**/*.html' + '**/*.md' + '**/*.js' + '**/*.css' + '**/_posts/*.md' + # Ignore the generated files + '!_site/*' + '!_src/*' + '!_site/**/*' + '!_src/**/*' + '!node_modules/**' + '!.git/**' + ] + tasks: ['jekyll'] + sass: + files: [ + 'css/*.scss' + ] + tasks: ['sass:src'] + + siteSass: + files: [ + '_site/css/*.scss' + ] + tasks: ['sass:site', 'copy:site2src'] + + @loadNpmTasks 'grunt-jekyll' + @loadNpmTasks 'grunt-shell' + # @loadNpmTasks 'grunt-docco' + @loadNpmTasks 'grunt-contrib-connect' + @loadNpmTasks 'grunt-contrib-watch' + @loadNpmTasks 'grunt-contrib-sass' + @loadNpmTasks 'grunt-contrib-copy' + #@loadNpmTasks 'grunt-contrib-imagemin' + + #@registerTask 'img', [ + # 'copy:img' + # 'imagemin:dist' + #] + @registerTask 'chrome', [ + 'connect:dev' + 'build' + 'sass:site' + 'watch:siteSass' + ] + @registerTask 'dev', [ + 'connect:dev' + 'build' + #'watch' + 'watch:jekyll' + 'watch:noflo' + 'watch:sass' + ] + @registerTask 'build', [ + 'sass:src' + 'shell:gitclone' + # 'docco' + 'jekyll' + ] + @registerTask 'default', ['dev'] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7f61438 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +PHP-VCR Website +=============== + +Sources for the [php-vcr](http://php-vcr.github.io) website. + +## Contributing to the site + +Feel free to send pull requests. Local site development is handled using [Grunt](http://gruntjs.com/). + +Install the dependencies with: + + $ npm install + +You also need some additional tools: + + $ sudo gem install jekyll + $ sudo gem install sass --pre + +Then to develop the site, run: + + $ grunt dev + +This will start a web server at . Grunt watches for any changes in the source files and triggers a rebuild as needed. + + diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..b07aca4 --- /dev/null +++ b/_config.yml @@ -0,0 +1,20 @@ +title: PHP-VCR +tagline: Record HTTP interactions while testing +markdown: redcarpet +permalink: /:categories/:title/ +baseurl: "" +repository: + web: "https://github.com/adri/php-vcr" + git: "git://github.com/php-vcr/php-vcr.git" +google: + search: "" + analytics: "" + plus: "" +exclude: + - "node_modules" + - "Gruntfile.coffee" + - "README.md" + - "npm-debug.log" + - "package.json" + - "php-vcr.github.io.sublime-project" + - "php-vcr.github.io.sublime-workspace" diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..e69de29 diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..e69de29 diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..e69de29 diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..5fb6989 --- /dev/null +++ b/css/main.css @@ -0,0 +1,2 @@ + +/*# sourceMappingURL=main.css.map */ \ No newline at end of file diff --git a/css/main.css.map b/css/main.css.map new file mode 100644 index 0000000..d3f1839 --- /dev/null +++ b/css/main.css.map @@ -0,0 +1,6 @@ +{ +"version": "3", +"mappings": "", +"sources": [], +"file": "main.css" +} diff --git a/css/main.scss b/css/main.scss new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html new file mode 100644 index 0000000..cfebbdc --- /dev/null +++ b/index.html @@ -0,0 +1,6 @@ +--- +layout: default +title: PHP-VCR | Record HTTP interactions while testing +--- + +test \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..13320a5 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "php-vcr-org", + "version": "1.0.0", + "devDependencies": { + "grunt": "~0.4.1", + "grunt-jekyll": "~0.3.8", + "grunt-contrib-connect": "~0.3.0", + "grunt-contrib-watch": "~0.5.1", + "grunt-contrib-sass": "~0.4.1", + "grunt-contrib-copy": "~0.4.1", + "grunt-shell": "~0.3.1", + "grunt-docco": "~0.2.0" + } +} \ No newline at end of file