Permalink
Browse files

backport grunt.js / package.json files

  • Loading branch information...
1 parent 4657d02 commit 25cb8e1ae880a86ebdda96e20ce162211964cb53 @mklabs committed Feb 3, 2012
Showing with 118 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. 0 {tasks → }/bin/h5bp
  3. +91 −0 grunt.js
  4. +26 −0 package.json
View
@@ -0,0 +1 @@
+node_modules
File renamed without changes.
View
@@ -0,0 +1,91 @@
+// This is the main html5-boilerplate build configuration file.
+//
+//
+// task.registerTask('default', 'intro clean mkdirs usemin concat min css manifest copy');
+
+config.init({
+
+ pkg: '<json:package.json>',
+
+ intro: {
+ pkg: '<config:pkg>'
+ },
+
+ clean: '<config:mkdirs>',
+
+ mkdirs: {
+ intermediate: 'build/** node_modules/** intermediate/** publish/** grunt.js package.json *.md'.split(' '),
+ publish: 'build/** node_modules/** intermediate/** publish/** grunt.js package.json *.md'.split(' ')
+ },
+
+ concat: {
+ 'intermediate/js/libs.js': [ 'js/mylibs/*' ],
+ 'intermediate/js/scripts.js': [ 'js/plugins.js', 'js/script.js' ],
+ 'intermediate/css/style.css': [ 'css/*.css' ]
+ },
+
+ css: {
+ 'publish/css/style.css': [ 'css/style.css' ]
+ },
+
+ min: {
+ 'publish/js/libs.js': [ 'intermediate/js/libs.js' ],
+ 'publish/js/scripts.js': [ 'intermediate/js/scripts.js' ]
+ },
+
+ rev: {
+ js: ['publish/js/*.js'],
+ css: ['publish/css/*.css'],
+ img: ['publish/img/*']
+ },
+
+ usemin: {
+ files: ['publish/*.html']
+ },
+
+ manifest: '<config:usemin>',
+
+ lint: {
+ files: ['js/*.js'],
+ build: ['grunt.js', 'build/tasks/*.js']
+ },
+
+ watch: {
+ files: '<config:lint.build>',
+ tasks: 'lint:build',
+
+ reload: {
+ files: '<config:lint.build>',
+ tasks: 'foo'
+ }
+ },
+
+ serve: {
+ intermediate: { port: 3000 },
+ publish: { port: 3001 }
+ },
+
+ connect: {
+ intermediate: {
+ port: 3000,
+ logs: 'dev',
+ dirs: true
+ },
+ publish: {
+ port: 3001,
+ logs: 'default',
+ dirs: true
+ }
+ },
+
+ foo: {
+ bar: []
+ }
+
+});
+
+// Run the following tasks...
+task.registerTask('default', 'lint:build intro clean mkdirs concat css min rev usemin manifest serve');
+task.registerTask('nolint', 'intro clean mkdirs concat css min rev usemin manifest');
+
+task.registerTask('connect-watch', 'connect watch:reload');
View
@@ -0,0 +1,26 @@
+{
+ "author": "Paul Irish, Divya Manian",
+ "name": "html5-boilerplate",
+ "description": "Professional front-end template. So much goodness baked in by default",
+ "version": "0.0.0",
+ "homepage": "http://h5bp.com",
+ "bin": {
+ "html5-boilerplate": "./bin/h5bp",
+ "h5bp": "./bin/h5bp"
+ },
+ "dependencies": {
+ "clean-css": "~0.3.1",
+ "minimatch": "~0.1.3",
+ "rimraf": "~1.0.9",
+ "grunt": "~0.1.0",
+ "serve": "~1.0.2",
+ "connect": "~1.8.5",
+ "socket.io": "~0.8.7"
+ },
+ "devDependencies": {
+ "vows": "~0.6.1"
+ },
+ "scripts": {
+ "test": "node node_modules/vows/bin/vows test/test.js --spec"
+ }
+}

0 comments on commit 25cb8e1

Please sign in to comment.