Skip to content

Commit

Permalink
Monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Chastagnol committed May 18, 2020
1 parent 34566ec commit 67e6d01
Show file tree
Hide file tree
Showing 1,136 changed files with 1,243,726 additions and 57 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/node_modules/*
**/build/*
**/dist/*
64 changes: 64 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module.exports = {
'root': true,
'parser': 'babel-eslint',
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
'ecmaFeatures': {
'jsx': true,
'impliedStrict': true,
'destructuring': true
}
},
'env': {
'browser': true,
'node': true,
'es6': true,
'mocha': true
},
'extends': [
'eslint:recommended'
],
'rules': {
'computed-property-spacing': [
'error'
],
'jsx-quotes': [
'error'
],
'key-spacing': [
'error'
],
'no-case-declarations': [
'off'
],
'no-console': [
'off'
],
'no-var': [
'error'
],
'object-curly-spacing': [
'error',
'always'
],
'prefer-const': [
'error'
],
'quotes': [
'error',
'single',
{
'avoidEscape': true,
'allowTemplateLiterals': true
}
],
'semi': [
'error',
'never'
],
'require-atomic-updates': 'warn',
'no-async-promise-executor': 'warn',
'no-prototype-builtins': 'warn'
}
}
26 changes: 26 additions & 0 deletions .eslintrc.react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const baseConfig = require('./.eslintrc.js')

module.exports = {
...baseConfig,
'globals': {
'web3': true,
'originTest': true
},
'extends': [
...baseConfig.extends,
'plugin:react/recommended'
],
'plugins': [
'react'
],
'rules': {
...baseConfig.rules,
'react/no-deprecated': 'off',
'react/no-children-prop': 'off',
'react/prop-types': 'off',
'camelcase': [
'error',
{ properties: "never" }
]
}
}
144 changes: 140 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,141 @@
node_modules
# Common #
##########
.env
.idea
.sass-cache
build/
build_webpack/
coverage
coverage.json
npm-debug.log*
node_modules/

# IDEs and editors
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# Deployment #
##############
secrets.yaml
secrets-dev.yaml
secrets-staging.yaml
secrets-prod.yaml
github.key

# Development #
###############
/devops/.ipfs

# origin-bridge #
#################

# docs #
###############
/docs/*.gem
/docs/*.rbc
/docs/.bundle
/docs/.config
/docs/InstalledFiles
/docs/lib/bundler/man
/docs/pkg
/docs/rdoc
/docs/spec/reports
/docs/test/tmp
/docs/test/version_tmp
/docs/tmp
/docs/.cache
/docs/.vagrant
/docs/.yardoc
/docs/_yardoc
/docs/doc/

# origin-js #
#############
/packages/origin-js/dist
/packages/origin-js/connect.lock
/packages/origin-js/libpeerconnection.log
/packages/origin-js/testem.log
/packages/origin-js/typings

# infra/linking #
#################
/infra/linking/*.rdb
/infra/linking/*.p8
/infra/linking/dist

# infra/notifications #
# #####################
/infra/notifications/firebase-service.json

# origin-dapp-creator-server #
##############################
/infra/dapp-creator-server/dist

# origin-mobile #
#################
/mobile/android/sentry.properties
/mobile/ios/sentry.properties

# Recommended rules per https://gist.github.com/octocat/9257657 #
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv #

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
!gradle-wrapper.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite
*.sqlite3

# OS generated files #
######################
.DS_Store
data/*.db
scripts/output
tstEmail.js
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

!packages/contracts/releases/**/*

# Redis #
*dump.rdb

# Secrets #
devops/github
devops/kubernetes/values/origin/secrets-*.enc.yaml
devops/kubernetes/values/origin-monitoring/secrets
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.
60 changes: 60 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "@origin/shop-backend",
"version": "0.0.1",
"description": "Origin Shop Backend",
"engines": {
"node": "10.x"
},
"main": "index.js",
"scripts": {
"migrate": "sequelize db:migrate --config data/config.js --migrations-path data/migrations",
"heroku-postbuild": "npm run migrate",
"prettier": "prettier --write *.js \"**/*.js\"",
"prettier:check": "prettier -c *.js \"src/**/*.js\""
},
"author": "Nick Poulden <[email protected]>",
"license": "MIT",
"dependencies": {
"@google-cloud/bigquery": "^4.7.0",
"aws-sdk": "^2.572.0",
"bcrypt": "^3.0.7",
"body-parser": "^1.19.0",
"bottleneck": "^2.19.5",
"bs58": "^4.0.1",
"cloudflare": "^2.7.0",
"commander": "^4.1.1",
"connect-session-sequelize": "^6.1.1",
"cookie-parser": "^1.4.4",
"cors": "^2.8.5",
"dayjs": "^1.8.14",
"dotenv": "^8.2.0",
"envkey": "^1.2.7",
"ethereumjs-util": "^6.2.0",
"express": "^4.17.1",
"express-session": "^1.17.0",
"form-data": "^3.0.0",
"inquirer": "^7.0.4",
"ipfs-deploy": "7.14.0",
"ipfs-http-client": "^44.0.1",
"lodash": "^4.17.15",
"memorystore": "^1.6.1",
"mjml": "^4.5.1",
"node-fetch": "^2.6.0",
"nodemailer": "^6.3.1",
"openpgp": "^4.6.2",
"pg": "7.18.1",
"randomstring": "^1.1.5",
"reconnecting-websocket": "^4.4.0",
"sequelize": "^5.21.2",
"sequelize-cli": "^5.5.1",
"serve-static": "^1.14.1",
"sharp": "0.24.0",
"sqlite3": "^4.1.1",
"stripe": "^8.0.0",
"web3": "1.0.0-beta.34",
"ws": "^7.2.0"
},
"devDependencies": {
"prettier": "1.19.1"
}
}
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.
6 changes: 6 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"packages": ["shop/**", "backend/**", "packages/**"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
}
Loading

0 comments on commit 67e6d01

Please sign in to comment.