Permalink
Browse files

add ide-init to repo

  • Loading branch information...
1 parent 5fcd7f6 commit 5678d43353d74cecb44a74ec6a0ee94426f7e14e BinChen committed Dec 11, 2012
Showing with 955 additions and 4 deletions.
  1. +45 −0 Gruntfile.js
  2. +22 −0 LICENSE-MIT
  3. +2 −4 README.md
  4. +33 −0 package.json
  5. +499 −0 tasks/init.js
  6. +82 −0 tasks/init/mojito.js
  7. +70 −0 tasks/init/mojito/root/Gruntfile.js
  8. +46 −0 tasks/lib/git.js
  9. +156 −0 tasks/lib/prompt.js
View
@@ -0,0 +1,45 @@
+/*
+ * grunt-init
+ * https://gruntjs.com/
+ *
+ * Copyright (c) 2012 "Cowboy" Ben Alman, contributors
+ * Licensed under the MIT license.
+ */
+
+'use strict';
+
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ jshint: {
+ all: [
+ 'Gruntfile.js',
+ 'tasks/*.js'
+ ],
+ options: {
+ jshintrc: '.jshintrc'
+ }
+ },
+
+ // Unit tests.
+ nodeunit: {
+ tests: ['test/*_test.js']
+ }
+ });
+
+ // Actually load this plugin's task(s).
+ grunt.loadTasks('tasks');
+
+ // These plugins provide necessary tasks.
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-nodeunit');
+
+ // Whenever the "test" task is run, first clean the "tmp" dir, then run this
+ // plugin's task(s), then test the result.
+ grunt.registerTask('test', 'nodeunit');
+
+ // By default, lint and run all tests.
+ grunt.registerTask('default', ['jshint', 'test']);
+
+};
View
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Cocktails IDE, contributors
+
+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.
View
@@ -1,4 +1,2 @@
-ide-init
-========
-
-ide initial
+# ide-init
+> Generate project template.
View
@@ -0,0 +1,33 @@
+{
+ "name": "ide-init",
+ "description": "Generate ide template.",
+ "version": "0.1.0",
+ "homepage": "https://github.com/binchen911/ide-init",
+ "author": {
+ "name": "IDE Team"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/binchen911/ide-init.git"
+ },
+ "bugs": {
+ "url": "https://github.com/binchen911/ide-init/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": ""
+ }
+ ],
+ "main": "Gruntfile.js",
+ "engines": {
+ "node": ">= 0.6.0"
+ },
+ "scripts": {
+ "test": "grunt test"
+ },
+ "dependencies": {
+ "prompt": "~0.1.12",
+ "semver": "~1.0.14"
+ }
+}
Oops, something went wrong.

0 comments on commit 5678d43

Please sign in to comment.