Skip to content

Commit

Permalink
make cli its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
suryagaddipati committed Nov 16, 2015
1 parent a51d87d commit 7812ad9
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -24,4 +24,3 @@ src/main/webapp/css/dotci.css
site/
src/main/webapp/js/homepage.js
src/main/webapp/css
package/
17 changes: 2 additions & 15 deletions package.json
@@ -1,13 +1,8 @@
{
"name": "dotci",
"version": "0.0.4",
"author": "Surya Gaddipati",
"description": "DotCi frontend",
"preferGlobal": true,
"main": "package/terminal.js",
"bin": {
"dotci": "package/cli.js"
},
"description": "DotCi",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/groupon/DotCi.git"
Expand All @@ -21,13 +16,10 @@
"autoprefixer-core": "^5.2.0",
"autoprefixer-loader": "^1.1.0",
"babel-core": "^5.8.25",
"babel": "^5.8.25",
"babel-eslint": "^3.0.1",
"babel-loader": "^5.3.2",
"babel-polyfill": "^6.0.16",
"babel-runtime": "^5.8.25",
"blessed": "^0.1.81",
"blessed-contrib": "^2.5.1",
"bower": "latest",
"chai": "latest",
"chart.js": "^1.0.2",
Expand All @@ -43,7 +35,6 @@
"less": "^2.4.0",
"less-loader": "^2.0.0",
"lesshat": "^3.0.2",
"minimist": "^1.2.0",
"page": "^1.6.3",
"postcss-custom-properties": "^4.0.0",
"postcss-import": "^6.0.0",
Expand All @@ -56,10 +47,8 @@
"react-dom": "^0.14.2",
"react-proxy-loader": "^0.3.1",
"react-tools": "latest",
"request": "^2.65.0",
"scroll-into-view": "^1.5.0",
"semantic-ui-checkbox": "^1.12.3",
"simple-git": "^1.11.0",
"style-loader": "^0.8.3",
"url-loader": "latest",
"vulcanize": "^1.13.1"
Expand All @@ -78,8 +67,6 @@
"webpack-dev-server": "latest"
},
"scripts": {
"compile-cli":"$(npm bin)/babel src/main/jsx/terminal/ --out-dir package",
"prepublish": "npm run compile-cli",
"build": "npm install && npm run package && npm run vulcanize",
"package": "$(npm bin)/webpack --release=true --colors --progress",
"lint": "eslint src/main/jsx/**/*",
Expand Down
1 change: 1 addition & 0 deletions src/main/jsx/terminal/.gitignore
@@ -0,0 +1 @@
lib/
1 change: 1 addition & 0 deletions src/main/jsx/terminal/.npmignore
@@ -0,0 +1 @@
src/
39 changes: 39 additions & 0 deletions src/main/jsx/terminal/package.json
@@ -0,0 +1,39 @@
{
"name": "dotci",
"version": "0.0.10",
"description": "cli for DotCi",
"main": "lib/index.js",
"preferGlobal": true,
"bin": {
"dotci": "lib/cli.js"
},
"scripts": {
"compile": "$(npm bin)/babel --optional runtime -d lib/ src/",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "git+https://github.com/groupon/DotCi.git"
},
"keywords": [
"dotci",
"jenkins",
"ci"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/groupon/DotCi/issues"
},
"dependencies": {
"blessed": "^0.1.81",
"blessed-contrib": "^2.5.1",
"request": "^2.65.0",
"simple-git": "^1.11.0",
"minimist": "^1.2.0"
},
"devDependencies": {
"babel": "^5.8.25"
},
"homepage": "https://github.com/groupon/DotCi#readme"
}
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
#!/usr/bin/env node
//--server http://localhost:8080/jenkins --repo suryagaddipati/DotCi
import terminal from './terminal.js';
import terminal from './index.js';
let {server,repo} = require('minimist')(process.argv.slice(2));
terminal(server,repo);
@@ -1,4 +1,3 @@
import React, {Component} from 'react';
import blessed from 'blessed';
import buildHistoryTable from './buildHistory.js';
var simpleGit = require('simple-git')('.');
Expand Down

0 comments on commit 7812ad9

Please sign in to comment.