Permalink
Browse files

reorganise as a grunt-init project

  • Loading branch information...
1 parent f402c76 commit 6a234daca009fb79851e0b3170a9f3a1c5ab7ab3 davetayls committed Mar 8, 2013
Showing with 11,500 additions and 172 deletions.
  1. +0 −39 bin/scaffo
  2. +0 −72 grunt.js
  3. +0 −31 package.json
  4. 0 {tasks/init/generic → }/rename.json
  5. 0 {tasks/init/generic → }/root/app.js
  6. 0 {tasks/init/generic → }/root/config/app.js
  7. 0 {tasks/init/generic → }/root/config/preferences.json
  8. 0 {tasks/init/generic → }/root/config/routes.js
  9. 0 {tasks/init/generic → }/root/config/templating.js
  10. 0 {tasks/init/generic → }/root/data/breadcrumb.js
  11. 0 {tasks/init/generic → }/root/data/index.js
  12. 0 {tasks/init/generic → }/root/design/readme.txt
  13. 0 {tasks/init/generic → }/root/docs/errors.md
  14. 0 {tasks/init/generic → }/root/docs/install.md
  15. 0 {tasks/init/generic → }/root/docs/project-layout.md
  16. 0 {tasks/init/generic → }/root/docs/styles.md
  17. 0 {tasks/init/generic → }/root/grunt.js
  18. 0 {tasks/init/generic → }/root/install-dependencies.bat
  19. 0 {tasks/init/generic → }/root/package.json
  20. 0 {tasks/init/generic → }/root/partials/header.html
  21. 0 {tasks/init/generic → }/root/partials/scriptrefs.html
  22. 0 {tasks/init/generic → }/root/server.bat
  23. 0 {tasks/init/generic → }/root/templates/index.html
  24. 0 {tasks/init/generic → }/root/templates/layout.html
  25. 0 {tasks/init/generic → }/root/ui/lib/desaturate.svg
  26. +9,440 −0 root/ui/lib/jquery.js
  27. +43 −0 root/ui/lib/matchMedia/matchMedia.addListener.js
  28. +36 −0 root/ui/lib/matchMedia/matchMedia.js
  29. 0 {tasks/init/generic → }/root/ui/lib/normalize.styl
  30. +1,981 −0 root/ui/lib/require.js
  31. 0 {tasks/init/generic → }/root/ui/scripts/config.js
  32. 0 {tasks/init/generic → }/root/ui/scripts/main.js
  33. 0 {tasks/init/generic → }/root/ui/scripts/ui.js
  34. 0 {tasks/init/generic → }/root/ui/styles/baseline.styl
  35. 0 {tasks/init/generic → }/root/ui/styles/brand.styl
  36. 0 {tasks/init/generic → }/root/ui/styles/components/layouts/layout.desktop.styl
  37. 0 {tasks/init/generic → }/root/ui/styles/components/layouts/layout.styl
  38. 0 {tasks/init/generic → }/root/ui/styles/components/layouts/layout.tablet.styl
  39. 0 {tasks/init/generic → }/root/ui/styles/components/skipnav.styl
  40. 0 {tasks/init/generic → }/root/ui/styles/index.styl
  41. 0 {tasks/init/generic → }/root/ui/styles/mixins/colors.styl
  42. 0 {tasks/init/generic → }/root/ui/styles/mixins/containers.styl
  43. 0 {tasks/init/generic → }/root/ui/styles/mixins/lists.styl
  44. 0 {tasks/init/generic → }/root/ui/styles/mixins/typography.styl
  45. 0 {tasks/init/generic → }/root/ui/styles/structure.styl
  46. 0 {tasks/init/generic → }/root/ui/styles/variables.styl
  47. 0 {tasks/init/generic → }/root/ui/templates/breadcrumb.html
  48. 0 {tasks/init/generic → }/root/ui/templates/htmlhead.html
  49. 0 {tasks/init/generic → }/root/ui/templates/logo.html
  50. 0 {tasks/init/generic → }/root/ui/templates/skipnav.html
  51. 0 {tasks/init/generic → }/root/ui/test/brand.html
  52. 0 {tasks/init/generic → }/root/watch-dev.bat
  53. +0 −19 tasks/h.js
  54. 0 tasks/init/generic.js → template.js
  55. +0 −11 test/index.js
View
@@ -1,39 +0,0 @@
-#!/usr/bin/env node
-/*jshint node:true */
-var grunt = require("grunt"),
- join = require('path').join,
- gruntRoot = join(__dirname, '../')
-;
-
-grunt.npmTasks(gruntRoot);
-
-function help() {
- var pkg = require(__dirname + "/../package.json");
- grunt.log.writeln();
- grunt.log.writeln(pkg.description);
- grunt.log.writeln((" " + pkg.name + " ").green.inverse
- + " Version - " + pkg.version);
-
- grunt.log.header(("Installation ").yellow);
- grunt.log.header("In terminal window");
- grunt.log.writeln();
- grunt.log.writeln(" $ mkdir myPrototypeSite");
- grunt.log.writeln(" $ cd myPrototypeSite");
- grunt.log.writeln(" $ pogo-scaffold init:generic");
- grunt.log.writeln(" ...");
- grunt.log.writeln(" $ npm install");
- grunt.log.writeln(" $ pogo-scaffold watch-dev");
- grunt.log.header("Open a new terminal window");
- grunt.log.writeln();
- grunt.log.writeln(" $ node app");
- grunt.log.writeln();
-}
-
-// show help if passed with no arguments
-if (process.argv.length === 2) {
- // initialise grunt so we get nice log colors
- grunt.task.init([], {help: true});
- // show help info
- return help();
-}
-grunt.cli();
View
@@ -1,72 +0,0 @@
-module.exports = function(grunt) {
- "use strict";
-
- // Project configuration.
- grunt.initConfig({
- test: {
- files: ["test/**/*.js"]
- },
-
- lint: {
- files: [
- "grunt.js",
- "tasks/**/*.js",
- "tasks/**/*.json",
- "test/**/*.js"
- ]
- },
-
- watch: {
- files: [
- "<config:lint.files>",
- 'tasks/init/**'
- ],
- tasks: "default"
- },
-
- jshint: {
- options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- boss: true,
- eqnull: true,
- node: true,
- es5: true
- },
- globals: {}
- },
-
- copy: {
- dist: {
- files: {
- "/Users/davetayls/.grunt/tasks/init/pogo/": "tasks/init/generic/**",
- "/Users/davetayls/.grunt/tasks/init/pogo.js": "tasks/init/generic.js"
- }
- }
- },
-
- h: {
- install: "/tasks/init/generic/root/templates/docs/install.md"
- }
-
- });
-
- // load npm tasks
- grunt.loadNpmTasks('grunt-contrib-copy');
-
- // Load local tasks.
- grunt.loadTasks("tasks");
-
- // tasks
- grunt.registerTask("build", "lint test");
-
- // Default task.
- // grunt.registerTask("default", "h:install");
-
-};
View
@@ -1,31 +0,0 @@
-{
- "name": "scaffo",
- "description": "Code project launcher",
- "version": "0.0.1",
- "author": {
- "name": "Dave Taylor",
- "email": "dave@the-taylors.org",
- "url": "http://the-taylors.org"
- },
- "bin": "bin/scaffo",
- "repository": {
- "type": "git",
- "url": "https://github.com/davetayls/scaffo.git"
- },
- "keywords": [
- "scaffolding"
- ],
- "dependencies": {
- "grunt": "0.3.x"
- },
- "devDependencies": {
- "grunt-contrib-copy": "0.3.x",
- "mocha": "1.6.x",
- "npm": "1.1.x",
- "request": "2.11.x"
- },
- "scripts": {
- "test": "mocha"
- },
- "license": "MIT"
-}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.

0 comments on commit 6a234da

Please sign in to comment.