From 68de616dab93fef0f55ad9ee3f706a4e8ea2ecb1 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 27 Apr 2015 16:25:37 +0000 Subject: [PATCH] added some more templates --- plugins/c9.ide.plugins/manager.js | 4 +- .../templates/plugin.bundle/README.md | 1 + .../templates/plugin.bundle/package.json | 21 +++++++ .../templates/plugin.default/README.md | 2 - .../templates/plugin.default/package.json | 2 +- .../templates/plugin.installer/README.md | 1 + .../templates/plugin.installer/install.js | 57 +++++++++++++++++++ .../templates/plugin.installer/package.json | 22 +++++++ .../templates/plugin.simple/README.md | 2 - .../templates/plugin.simple/package.json | 2 +- 10 files changed, 107 insertions(+), 7 deletions(-) create mode 100644 plugins/c9.ide.plugins/templates/plugin.bundle/README.md create mode 100644 plugins/c9.ide.plugins/templates/plugin.bundle/package.json create mode 100644 plugins/c9.ide.plugins/templates/plugin.installer/README.md create mode 100644 plugins/c9.ide.plugins/templates/plugin.installer/install.js create mode 100644 plugins/c9.ide.plugins/templates/plugin.installer/package.json diff --git a/plugins/c9.ide.plugins/manager.js b/plugins/c9.ide.plugins/manager.js index 243779ce..63c96f60 100644 --- a/plugins/c9.ide.plugins/manager.js +++ b/plugins/c9.ide.plugins/manager.js @@ -85,7 +85,9 @@ define(function(require, exports, module) { }; var TEMPLATES = { "plugin.simple": "Empty Plugin", - "plugin.default": "Full Plugin" + "plugin.default": "Full Plugin", + "plugin.installer": "Installer Plugin", + "plugin.bundle": "Cloud9 Bundle" }; // @TODO add sorting diff --git a/plugins/c9.ide.plugins/templates/plugin.bundle/README.md b/plugins/c9.ide.plugins/templates/plugin.bundle/README.md new file mode 100644 index 00000000..143f51ff --- /dev/null +++ b/plugins/c9.ide.plugins/templates/plugin.bundle/README.md @@ -0,0 +1 @@ +This is the Cloud9 bundle example \ No newline at end of file diff --git a/plugins/c9.ide.plugins/templates/plugin.bundle/package.json b/plugins/c9.ide.plugins/templates/plugin.bundle/package.json new file mode 100644 index 00000000..dd39f32a --- /dev/null +++ b/plugins/c9.ide.plugins/templates/plugin.bundle/package.json @@ -0,0 +1,21 @@ +{ + "name": "", + "description": "", + "version": "0.0.1", + "author": "", + "contributors": [ + { + "name": "", + "email": "" + } + ], + "repository": { + "type": "git", + "url": "" + }, + "plugins": {}, + "categories": [ + "misc" + ], + "licenses": [] +} \ No newline at end of file diff --git a/plugins/c9.ide.plugins/templates/plugin.default/README.md b/plugins/c9.ide.plugins/templates/plugin.default/README.md index 6d7f5b94..600c4e28 100644 --- a/plugins/c9.ide.plugins/templates/plugin.default/README.md +++ b/plugins/c9.ide.plugins/templates/plugin.default/README.md @@ -1,3 +1 @@ -# c9.ide.example - This is the Cloud9 default plugin example \ No newline at end of file diff --git a/plugins/c9.ide.plugins/templates/plugin.default/package.json b/plugins/c9.ide.plugins/templates/plugin.default/package.json index 174c0262..3364c37a 100644 --- a/plugins/c9.ide.plugins/templates/plugin.default/package.json +++ b/plugins/c9.ide.plugins/templates/plugin.default/package.json @@ -1,5 +1,5 @@ { - "name": "c9.ide.default", + "name": "", "description": "", "version": "0.0.1", "author": "", diff --git a/plugins/c9.ide.plugins/templates/plugin.installer/README.md b/plugins/c9.ide.plugins/templates/plugin.installer/README.md new file mode 100644 index 00000000..9de9f3a9 --- /dev/null +++ b/plugins/c9.ide.plugins/templates/plugin.installer/README.md @@ -0,0 +1 @@ +This is the Cloud9 installer plugin example \ No newline at end of file diff --git a/plugins/c9.ide.plugins/templates/plugin.installer/install.js b/plugins/c9.ide.plugins/templates/plugin.installer/install.js new file mode 100644 index 00000000..f87bdec5 --- /dev/null +++ b/plugins/c9.ide.plugins/templates/plugin.installer/install.js @@ -0,0 +1,57 @@ +define(function(require, exports, module) { + +module.exports = function(session, options){ + // Dependencies for the collaboration features of Cloud9 + + session.install({ + "name": "SQLite", + "description": "SQLite Database and NPM module", + "cwd": "~/.c9", + "optional": true + }, [ + { + "npm": ["sqlite3@3.0.5"] + }, + { + "tar.gz": { + "url": "https://raw.githubusercontent.com/c9/install/master/packages/sqlite3/linux/sqlite3.tar.gz", + "target": "~/.c9/lib/sqlite3", + "dir": "sqlite3" + } + }, + { + "symlink": { + "source": "~/.c9/lib/sqlite3/sqlite3", + "target": "~/.c9/bin/sqlite3" + } + } + ]); + + session.install({ + "name": "Sequalize", + "description": "Sequalize NPM module", + "cwd": "~/.c9", + "optional": true + }, { + "npm": ["sequelize@2.0.0-beta.0"] + }); + + session.install({ + "name": "Collab Server", + "description": "A small Node.js collaboration server", + "cwd": "~/.c9", + "optional": true + }, { + "tar.gz": { + "url": "https://raw.githubusercontent.com/c9/install/master/packages/extend/c9-vfs-extend.tar.gz", + "target": "~/.c9" + } + }); + + // Show the installation screen + session.start(); +}; + +module.exports.version = 1; + +}); \ No newline at end of file diff --git a/plugins/c9.ide.plugins/templates/plugin.installer/package.json b/plugins/c9.ide.plugins/templates/plugin.installer/package.json new file mode 100644 index 00000000..9013bf77 --- /dev/null +++ b/plugins/c9.ide.plugins/templates/plugin.installer/package.json @@ -0,0 +1,22 @@ +{ + "name": "", + "description": "", + "version": "0.0.1", + "author": "", + "contributors": [ + { + "name": "", + "email": "" + } + ], + "repository": { + "type": "git", + "url": "" + }, + "plugins": {}, + "installer": "install.js", + "categories": [ + "misc" + ], + "licenses": [] +} \ No newline at end of file diff --git a/plugins/c9.ide.plugins/templates/plugin.simple/README.md b/plugins/c9.ide.plugins/templates/plugin.simple/README.md index 566c1196..8ac7218b 100644 --- a/plugins/c9.ide.plugins/templates/plugin.simple/README.md +++ b/plugins/c9.ide.plugins/templates/plugin.simple/README.md @@ -1,3 +1 @@ -# c9.ide.simple - This is the Cloud9 simple plugin example \ No newline at end of file diff --git a/plugins/c9.ide.plugins/templates/plugin.simple/package.json b/plugins/c9.ide.plugins/templates/plugin.simple/package.json index f782d88e..3364c37a 100644 --- a/plugins/c9.ide.plugins/templates/plugin.simple/package.json +++ b/plugins/c9.ide.plugins/templates/plugin.simple/package.json @@ -1,5 +1,5 @@ { - "name": "c9.ide.simple", + "name": "", "description": "", "version": "0.0.1", "author": "",