-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v.0.6.0: monorepo, workspaces, lerna
- Loading branch information
Showing
446 changed files
with
138 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,62 @@ | ||
{ | ||
"name": "kupi", | ||
"version": "0.5.0", | ||
"productName": "Kupi", | ||
"version": "0.7.0", | ||
"private": true, | ||
"scripts": { | ||
"rm": "rm -rf ./node_modules yarn.lock package-lock.json && lerna exec -- rm -rf ./node_modules yarn.lock package-lock.json", | ||
"start": "lerna run start --stream", | ||
"react-server:start": "lerna run start --scope @kupi/express-server --scope @kupi/react-client", | ||
"vue-server:start": "lerna run start --scope @kupi/express-server --scope @kupi/vue-client", | ||
"test": "lerna run test --stream", | ||
"update:version": "lerna version --no-push", | ||
"server:start": "lerna run start --scope @kupi/express-server", | ||
"server:docker": "lerna run docker --scope @kupi/express-server", | ||
"server:test": "lerna run test --scope @kupi/express-server", | ||
"react:start": "lerna run start --scope @kupi/react-client", | ||
"react:docker": "lerna run docker --scope @kupi/react-client", | ||
"react:build": "lerna run build --scope @kupi/react-client", | ||
"react:test": "lerna run test --scope @kupi/react-client", | ||
"vue:serve": "lerna run serve --scope @kupi/vue-client", | ||
"vue:start": "lerna run start --scope @kupi/vue-client", | ||
"vue:build": "lerna run build --scope @kupi/vue-client", | ||
"vue:eb": "lerna run electron:build", | ||
"vue:electron:build": "lerna run electron:build", | ||
"vue:electron:generate-icons": "lerna run electron:generate-icons", | ||
"vue:electron:serve": "lerna run electron:serve", | ||
"vue:electron:start": "lerna run electron:start", | ||
"vue:postinstall": "lerna run postinstall --scope @kupi/vue-client", | ||
"vue:postuninstall": "lerna run postuninstall --scope @kupi/vue-client", | ||
"vue:test:unit": "lerna run test:unit --scope @kupi/vue-client", | ||
"vue:test": "lerna run test --scope @kupi/vue-client" | ||
}, | ||
"dependencies": { | ||
"codecov": "^3.2.0", | ||
"istanbul": "^0.4.5", | ||
"jest": "^24.3.1" | ||
"jest": "^24.3.1", | ||
"nodemon": "*", | ||
"rimraf": "^2.6.3" | ||
}, | ||
"devDependencies": { | ||
"lerna": "^3.13.2" | ||
}, | ||
"jest": { | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/react-client/node_modules/", | ||
"/react-client/scripts/", | ||
"/vue-client/node_modules/", | ||
"/vue-client/", | ||
"/server/node_modules/" | ||
], | ||
"coverageDirectory": "./coverage/", | ||
"collectCoverage": true | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*", | ||
"packages/express-server/utils/*" | ||
] | ||
], | ||
"nohoist": ["packages/vue-client"] | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.4.4", | ||
"@babel/preset-env": "^7.4.4", | ||
"babel-jest": "^24.7.1" | ||
} | ||
"postcss": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
### Folder for core components |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
var MongoClient = require('mongodb').MongoClient | ||
var localMongoUrl = '' | ||
var {sleep} = require('@kupi/sleep') | ||
|
||
// GET PRIVATE CONFIGS | ||
var fs = require('fs') | ||
try { | ||
var mongoConf = JSON.parse(fs.readFileSync('../../../private/mongo.json', 'utf8')).mongo | ||
} catch(err) { | ||
var mongoConf = undefined | ||
} | ||
// END GET PRIVATE CONFIGS | ||
|
||
const startMongo = async function() { | ||
if (!mongoConf) return false | ||
|
||
if (process.env.DOCKER === 'DOCKER') { | ||
localMongoUrl = 'mongodb://'+mongoConf.username+':'+mongoConf.password+'@'+mongoConf.dockerHost+':'+'27017'+'/'+mongoConf.db+'?authSource=admin' | ||
// console.log(localMongoUrl) | ||
} else { | ||
localMongoUrl = 'mongodb://'+mongoConf.username+':'+mongoConf.password+'@'+mongoConf.host+':'+mongoConf.port+'/'+mongoConf.db+'?authSource=admin' | ||
// console.log(localMongoUrl) | ||
} | ||
|
||
while(true) { | ||
try { | ||
var db = await MongoClient.connect(localMongoUrl) | ||
console.log('Connected to mongo') | ||
return db | ||
} catch (err) { | ||
console.log("Can't connect to mongo") | ||
} | ||
await sleep(1000) | ||
} | ||
} | ||
|
||
module.exports = startMongo |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const express = require('express') | ||
var router = express.Router() | ||
|
||
router.get('/some/', async function (req, res) { | ||
try { | ||
res.json('some') | ||
} catch (err) {} | ||
}) | ||
|
||
module.exports = router |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const userComponents = async () => { | ||
// console.log('user_components') | ||
} | ||
|
||
module.exports = userComponents |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
react-client/package.json → packages/react-client/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
### Folder for user components (private) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
### Folder for utils components |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.