1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

remove all lerna stuff

This commit is contained in:
ivaosthu 2016-11-10 15:52:49 +01:00
parent 43d20ee75c
commit 0bd0924aee
95 changed files with 68 additions and 170 deletions

View File

@ -1,5 +1,9 @@
{
"extends": [
"finn"
]
}
"finn",
"finn/node"
],
"rules": {
"max-nested-callbacks": "off"
}
}

View File

@ -1,4 +0,0 @@
{
"lerna": "2.0.0-beta.30",
"version": "independent"
}

View File

@ -1,5 +1,5 @@
{
"name": "unleash-project",
"name": "unleash-server",
"description": "unleash your features",
"version": "1.0.0-alpha.2",
"keywords": [
@ -8,6 +8,15 @@
"feature",
"toggle"
],
"files": [
"lib",
"migrations",
"public",
"app.js",
"server-impl.js",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "ssh://git@github.com:finn-no/unleash.git"
@ -19,27 +28,57 @@
"node": "6"
},
"license": "Apache-2.0",
"scripts": {
"bootstrap": "lerna bootstrap",
"prepublish": "npm run bootstrap",
"lint": "eslint . --ext=js,jsx",
"test": "npm run lint && lerna --concurrency=1 exec npm run test",
"test:ci": "npm run lint && lerna --concurrency=1 exec npm run test:ci",
"nsp": "lerna exec nsp check",
"start": "lerna --scope=unleash-server exec npm start",
"publish": "lerna publish",
"publish:dry": "lerna publish --skip-git --skip-npm",
"db-migrate": "lerna --scope=unleash-api exec npm run db-migrate",
"heroku-postbuild": "npm run bootstrap && lerna --scope=unleash-frontend exec npm run build"
"main": "./server.js",
"bin": {
"unleash": "./bin/unleash.js"
},
"scripts": {
"db-migrate-and-start": "npm run db-migrate && npm run start",
"start": "node dev-server.js",
"start:dev": "NODE_ENV=development supervisor --ignore ./node_modules/ dev-server.js",
"start:dev:pg": "pg_virtualenv npm run start:dev:pg-chain",
"start:dev:pg-chain": "export DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; db-migrate up && npm run start:dev",
"db-migrate": "db-migrate up",
"db-migrate:down": "db-migrate down",
"test": "export PORT=4243 ; mocha --recursive test && npm run test:coverage",
"test:unit": "mocha test/unit/**/*.js ",
"test:ci": "npm run db-migrate && npm run test",
"test:docker": "./scripts/docker-postgres.sh",
"test:watch": "mocha --watch test test/*",
"test:pg-virtualenv": "pg_virtualenv npm run test:pg-virtualenv-chai",
"test:pg-virtualenv-chain": "export TEST_DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; npm run db-migrate-testdb && npm test",
"test:coverage": "istanbul cover ./node_modules/mocha/bin/_mocha test --report lcovonly -- -R spec --recursive",
"test:coverage-report": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"dependencies": {
"body-parser": "1.15.2",
"cookie-parser": "^1.4.1",
"commander": "^2.9.0",
"db-migrate": "0.10.0-beta.17",
"db-migrate-pg": "0.1.10",
"deep-diff": "^0.3.3",
"errorhandler": "^1.4.3",
"express": "4.14.0",
"express-validator": "2.20.8",
"install": "^0.8.1",
"joi": "^9.2.0",
"knex": "^0.12.6",
"log4js": "^0.6.38",
"moment": "^2.15.2",
"pg": "^6.1.0",
"serve-favicon": "^2.3.0",
"yallist": "^2.0.0"
},
"dependencies": {},
"devDependencies": {
"babel-eslint": "^7.0.0",
"eslint": "^3.9.1",
"eslint-config-finn": "1.0.0-beta.1",
"eslint-config-finn-react": "^1.0.0-alpha.2",
"eslint-plugin-react": "^6.4.1",
"lerna": "2.0.0-beta.30",
"nsp": "^2.6.2"
"bluebird": "^3.4.6",
"ava": "^0.16.0",
"coveralls": "^2.11.12",
"istanbul": "^0.4.5",
"mocha": "^3.0.2",
"mocha-lcov-reporter": "1.2.0",
"sinon": "^1.17.5",
"supertest": "^2.0.0",
"supervisor": "^0.11.0",
"unleash-frontend": "1.0.0-alpha.2"
}
}

View File

@ -1,9 +0,0 @@
{
"extends": [
"finn",
"finn/node"
],
"rules": {
"max-nested-callbacks": "off"
}
}

View File

@ -1,80 +0,0 @@
{
"name": "unleash-api",
"description": "unleash your features",
"version": "1.0.0-alpha.2",
"keywords": [
"unleash",
"feature toggle",
"feature",
"toggle"
],
"files": [
"lib",
"migrations",
"public",
"app.js",
"server-impl.js",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "ssh://git@github.com:finn-no/unleash.git"
},
"bugs": {
"url": "https://github.com/finn-no/unleash/issues"
},
"engines": {
"node": "6"
},
"license": "Apache-2.0",
"main": "./server-impl.js",
"scripts": {
"db-migrate-and-start": "npm run db-migrate && npm run start",
"start": "node dev-server.js",
"start:dev": "NODE_ENV=development supervisor --ignore ./node_modules/ dev-server.js",
"start:dev:pg": "pg_virtualenv npm run start:dev:pg-chain",
"start:dev:pg-chain": "export DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; db-migrate up && npm run start:dev",
"db-migrate": "db-migrate up",
"db-migrate:down": "db-migrate down",
"test": "export PORT=4243 ; mocha --recursive test && npm run test:coverage",
"test:unit": "mocha test/unit/**/*.js ",
"test:ci": "npm run db-migrate && npm run test",
"test:docker": "./scripts/docker-postgres.sh",
"test:watch": "mocha --watch test test/*",
"test:pg-virtualenv": "pg_virtualenv npm run test:pg-virtualenv-chai",
"test:pg-virtualenv-chain": "export TEST_DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; npm run db-migrate-testdb && npm test",
"test:coverage": "istanbul cover ./node_modules/mocha/bin/_mocha test --report lcovonly -- -R spec --recursive",
"test:coverage-report": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"dependencies": {
"body-parser": "1.15.2",
"cookie-parser": "^1.4.1",
"db-migrate": "0.10.0-beta.17",
"db-migrate-pg": "0.1.10",
"deep-diff": "^0.3.3",
"errorhandler": "^1.4.3",
"express": "4.14.0",
"express-validator": "2.20.8",
"install": "^0.8.1",
"joi": "^9.2.0",
"knex": "^0.12.6",
"log4js": "^0.6.38",
"moment": "^2.15.2",
"pg": "^6.1.0",
"serve-favicon": "^2.3.0",
"yallist": "^2.0.0"
},
"devDependencies": {
"bluebird": "^3.4.6",
"ava": "^0.16.0",
"coveralls": "^2.11.12",
"istanbul": "^0.4.5",
"mocha": "^3.0.2",
"mocha-lcov-reporter": "1.2.0",
"sinon": "^1.17.5",
"supertest": "^2.0.0",
"supervisor": "^0.11.0",
"unleash-frontend": "1.0.0-alpha.2"
}
}

View File

@ -1,6 +0,0 @@
{
"extends": [
"finn",
"finn/node"
]
}

View File

@ -1,42 +0,0 @@
{
"name": "unleash-server",
"description": "unleash your features",
"version": "1.0.0-alpha.2",
"keywords": [
"unleash",
"feature toggle",
"feature",
"toggle"
],
"files": [
"server.js",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "ssh://git@github.com:finn-no/unleash.git"
},
"bugs": {
"url": "https://github.com/finn-no/unleash/issues"
},
"engines": {
"node": "6"
},
"main": "./server.js",
"bin": {
"unleash": "./bin/unleash.js"
},
"scripts": {
"db-migrate-and-start": "npm run db-migrate && npm run start",
"start": "NODE_ENV=production node server-impl.js",
"test": "echo 'TODO add server tests'; exit 0;",
"test:ci": "npm run test"
},
"dependencies": {
"commander": "^2.9.0",
"unleash-api": "1.0.0-alpha.2",
"unleash-frontend": "1.0.0-alpha.2"
},
"devDependencies": {}
}

View File

@ -1,3 +0,0 @@
'use strict';
require('./server.js').start();

View File

@ -1,9 +1,8 @@
'use strict';
const unleash = require('unleash-api');
const unleash = require('./server-impl');
const { publicFolder } = require('unleash-frontend');
module.exports = {
start: options => {
const opts = Object.assign({}, { publicFolder }, options);