Permalink
Browse files

init

  • Loading branch information...
0 parents commit f5082dd4d7d4db5dd0e4f9af360599b3803b529e @lepture lepture committed Apr 10, 2013
Showing with 68 additions and 0 deletions.
  1. +13 −0 README.md
  2. +3 −0 bin/spm-build
  3. +29 −0 package.json
  4. +17 −0 scripts/postinstall.js
  5. +5 −0 scripts/uninstall.js
  6. +1 −0 tests/build.test.js
@@ -0,0 +1,13 @@
+# spm-build
+
+> The best spm plugin ever.
+
+-----
+
+## Install
+
+Install spm-build with npm:
+
+ $ npm install spm-build -g
+
+## Usage
@@ -0,0 +1,3 @@
+#!/usr/bin/env node
+
+var build = require('..');
@@ -0,0 +1,29 @@
+{
+ "name": "spm-build",
+ "description": "The best spm plugin ever.",
+ "version": "0.1.0a1",
+ "homepage": "https://github.com/spmjs/spm-build",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/spmjs/spm-build.git"
+ },
+ "bugs": {
+ "url": "https://github.com/spmjs/spm-build/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://github.com/spmjs/spm-build/blob/master/LICENSE-MIT"
+ }
+ ],
+ "bin": {
+ "spm-build": "bin/spm-build"
+ },
+ "keywords": [
+ "spmplugin"
+ ],
+ "scripts": {
+ "postinstall": "node scripts/postinstall.js",
+ "uninstall": "node scripts/uninstall.js"
+ }
+}
@@ -0,0 +1,17 @@
+#!/usr/bin/env node
+
+try {
+ var spm = require('spm');
+ spm.plugin.install({
+ name: 'build',
+ bin: 'spm-build',
+ description: 'The best spm plugin ever.'
+ });
+} catch(e) {
+ console.log(' you need install spm to register the program');
+ console.log();
+ console.log(' \x1b[31m$ npm install spm@~2.0.0 -g\x1b[0m');
+ console.log();
+ console.log(" if you have installed spm, it maybe you haven't set a NODE_PATH environment variable");
+ console.log();
+}
@@ -0,0 +1,5 @@
+#!/usr/bin/env node
+
+try {
+ require('spm').plugin.uninstall('build');
+} catch(e) {}
@@ -0,0 +1 @@
+var build = require('..');

0 comments on commit f5082dd

Please sign in to comment.