mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
remove all lerna stuff
This commit is contained in:
parent
43d20ee75c
commit
0bd0924aee
.eslintrcapp.js
bin
lerna.jsonlib
client-metrics
db
client-instance-store.jsclient-metrics-store.jsclient-strategy-store.jsdb-pool.jsevent-store.jsfeature-toggle-store.jsindex.jsstrategy-store.js
error
event-differ.jsevent-type.jsextract-user.jshelper
logger.jsroutes
migrations
20141020151056-initial-schema.js20141110144153-add-description-to-features.js20141117200435-add-parameters-template-to-strategies.js20141117202209-insert-default-strategy.js20141118071458-default-strategy-event.js20141215210141-005-archived-flag-to-features.js20150210152531-006-rename-eventtype.js20160618193924-add-strategies-to-features.js20161027134128-create-metrics.js20161102212415-create-client-strategies.js20161104074441-create-client-instances.js
migrator.jspackage.jsonsql
001-initial-schema.down.sql001-initial-schema.up.sql002-add-description-to-features.down.sql002-add-description-to-features.up.sql003-add-parameters-template-to-strategies.down.sql003-add-parameters-template-to-strategies.up.sql004-insert-default-strategy-event.down.sql004-insert-default-strategy-event.up.sql004-insert-default-strategy.down.sql004-insert-default-strategy.up.sql005-archived-flag-to-features.down.sql005-archived-flag-to-features.up.sql006-rename-eventtype.down.sql006-rename-eventtype.up.sql007-add-strategies-to-features.down.sql007-add-strategies-to-features.up.sql008-create-metrics.down.sql008-create-metrics.up.sql009-create-client-strategies.down.sql009-create-client-strategies.up.sql010-create-client-instances.down.sql010-create-client-instances.up.sql
packages
scripts
server-dev.jsserver-impl.jsserver-prod.jstest
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"finn"
|
"finn",
|
||||||
]
|
"finn/node"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"max-nested-callbacks": "off"
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"lerna": "2.0.0-beta.30",
|
|
||||||
"version": "independent"
|
|
||||||
}
|
|
81
package.json
81
package.json
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "unleash-project",
|
"name": "unleash-server",
|
||||||
"description": "unleash your features",
|
"description": "unleash your features",
|
||||||
"version": "1.0.0-alpha.2",
|
"version": "1.0.0-alpha.2",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -8,6 +8,15 @@
|
|||||||
"feature",
|
"feature",
|
||||||
"toggle"
|
"toggle"
|
||||||
],
|
],
|
||||||
|
"files": [
|
||||||
|
"lib",
|
||||||
|
"migrations",
|
||||||
|
"public",
|
||||||
|
"app.js",
|
||||||
|
"server-impl.js",
|
||||||
|
"README.md",
|
||||||
|
"LICENSE"
|
||||||
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com:finn-no/unleash.git"
|
"url": "ssh://git@github.com:finn-no/unleash.git"
|
||||||
@ -19,27 +28,57 @@
|
|||||||
"node": "6"
|
"node": "6"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"main": "./server.js",
|
||||||
"bootstrap": "lerna bootstrap",
|
"bin": {
|
||||||
"prepublish": "npm run bootstrap",
|
"unleash": "./bin/unleash.js"
|
||||||
"lint": "eslint . --ext=js,jsx",
|
},
|
||||||
"test": "npm run lint && lerna --concurrency=1 exec npm run test",
|
"scripts": {
|
||||||
"test:ci": "npm run lint && lerna --concurrency=1 exec npm run test:ci",
|
"db-migrate-and-start": "npm run db-migrate && npm run start",
|
||||||
"nsp": "lerna exec nsp check",
|
"start": "node dev-server.js",
|
||||||
"start": "lerna --scope=unleash-server exec npm start",
|
"start:dev": "NODE_ENV=development supervisor --ignore ./node_modules/ dev-server.js",
|
||||||
"publish": "lerna publish",
|
"start:dev:pg": "pg_virtualenv npm run start:dev:pg-chain",
|
||||||
"publish:dry": "lerna publish --skip-git --skip-npm",
|
"start:dev:pg-chain": "export DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; db-migrate up && npm run start:dev",
|
||||||
"db-migrate": "lerna --scope=unleash-api exec npm run db-migrate",
|
"db-migrate": "db-migrate up",
|
||||||
"heroku-postbuild": "npm run bootstrap && lerna --scope=unleash-frontend exec npm run build"
|
"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": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^7.0.0",
|
"bluebird": "^3.4.6",
|
||||||
"eslint": "^3.9.1",
|
"ava": "^0.16.0",
|
||||||
"eslint-config-finn": "1.0.0-beta.1",
|
"coveralls": "^2.11.12",
|
||||||
"eslint-config-finn-react": "^1.0.0-alpha.2",
|
"istanbul": "^0.4.5",
|
||||||
"eslint-plugin-react": "^6.4.1",
|
"mocha": "^3.0.2",
|
||||||
"lerna": "2.0.0-beta.30",
|
"mocha-lcov-reporter": "1.2.0",
|
||||||
"nsp": "^2.6.2"
|
"sinon": "^1.17.5",
|
||||||
|
"supertest": "^2.0.0",
|
||||||
|
"supervisor": "^0.11.0",
|
||||||
|
"unleash-frontend": "1.0.0-alpha.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [
|
|
||||||
"finn",
|
|
||||||
"finn/node"
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"max-nested-callbacks": "off"
|
|
||||||
}
|
|
||||||
}
|
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [
|
|
||||||
"finn",
|
|
||||||
"finn/node"
|
|
||||||
]
|
|
||||||
}
|
|
@ -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": {}
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
require('./server.js').start();
|
|
@ -1,9 +1,8 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const unleash = require('unleash-api');
|
const unleash = require('./server-impl');
|
||||||
const { publicFolder } = require('unleash-frontend');
|
const { publicFolder } = require('unleash-frontend');
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
start: options => {
|
start: options => {
|
||||||
const opts = Object.assign({}, { publicFolder }, options);
|
const opts = Object.assign({}, { publicFolder }, options);
|
Loading…
Reference in New Issue
Block a user