Skip to content

Commit

Permalink
Finished initial setup with examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrique Barcelos committed Sep 19, 2019
1 parent c7738c4 commit d4ef9fa
Show file tree
Hide file tree
Showing 29 changed files with 199 additions and 108 deletions.
6 changes: 4 additions & 2 deletions .eslintignore
@@ -1,3 +1,5 @@
node_modules/**
dist/**
**/node_modules/
**/dist/
!**/.*rc.js
!**/.*rc.json
!**/*.config.js
44 changes: 14 additions & 30 deletions .eslintrc.json
@@ -1,9 +1,11 @@
{
"env": {
"es6": true
"es6": true,
"node": true,
"browser": true
},
"extends": [
"prettier-standard",
"prettier-standard/prettier-file",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
Expand All @@ -16,49 +18,31 @@
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"import"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "es5"
}
]
},
"plugins": ["import"],
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"extends": [
"prettier/@typescript-eslint",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
]
"plugins": ["@typescript-eslint"]
},
{
"files": [
"*.vue"
],
"extends": [
"plugin:vue/recommended",
"prettier/vue"
],
"files": ["*.vue"],
"extends": ["plugin:vue/recommended", "prettier/vue"],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "babel-eslint"
},
"plugins": [
"vue"
]
"plugins": ["vue"]
},
{
"files": ["*.json"],
"plugins": ["json"]
}
]
}
7 changes: 7 additions & 0 deletions .gitignore
Expand Up @@ -2,5 +2,12 @@
**/node_modules/
**/*.log
**/coverage

# Editor directories and files
.vs/
.vscode/
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
14 changes: 14 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,14 @@
{
"singleQuote": true,
"trailingComma": "es5",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf",
"overrides": [
{
"files": "*.json",
"options": {
"parser": "json"
}
}
]
}
7 changes: 3 additions & 4 deletions lerna.json
@@ -1,8 +1,7 @@
{
"version": "0.1.0",
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*"
]
"independent": true,
"packages": ["packages/*"]
}
17 changes: 10 additions & 7 deletions package.json
@@ -1,16 +1,22 @@
{
"name": "janus-platform",
"version": "0.1.0",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {},
"devDependencies": {
"@babel/node": "^7.6.1",
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/preset-env": "^7.6.0",
"@typescript-eslint/eslint-plugin": "^2.3.0",
"@typescript-eslint/parser": "^2.3.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"clean-webpack-plugin": "^3.0.0",
"concurrently": "^4.1.2",
"cross-env": "^5.0.5",
"cross-var": "^1.1.0",
"css-loader": "^3.2.0",
Expand All @@ -20,6 +26,7 @@
"eslint-config-standard": "^14.1.0",
"eslint-import-resolver-webpack": "^0.11.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-json": "^1.4.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-promise": "^4.2.1",
Expand All @@ -33,17 +40,13 @@
"nsp": "^3.2.1",
"prettier": "^1.18.2",
"prettier-config-standard": "^1.0.1",
"typescript": "^3.6.3",
"url-loader": "^2.1.0",
"vue-eslint-parser": "^6.0.4",
"vue-loader": "^15.0.0",
"vue-template-compiler": "^2.6.10",
"typescript": "^3.6.3",
"webpack": "^4.40.2",
"webpack-cli": "^3.3.8",
"webpack-dev-server": "^3.8.1"
},
"private": true,
"workspaces": [
"packages/*"
]
}
}
8 changes: 0 additions & 8 deletions packages/core/package.json

This file was deleted.

File renamed without changes.
Expand Up @@ -4,7 +4,5 @@
"description": "Janus Platform CLI client",
"main": "dist/index.js",
"license": "MIT",
"devDependencies": {
"@4cadia/janus-dev-utils": "^0.1.0"
}
"devDependencies": {}
}
@@ -1,2 +1 @@
const foo = 'bla';
export default function mid(req, res, next) {}
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,7 +1,5 @@
{
"extends": [
"../../.eslintrc.json"
],
"extends": ["../../.eslintrc.json"],
"settings": {
"import/resolver": {
"webpack": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions packages/example-indexer-dapp/package.json
@@ -0,0 +1,25 @@
{
"name": "@4cadia/janus-indexer-dapp",
"description": "Janus Platform web client",
"version": "1.0.0",
"author": "Henrique Barcelos <henrique@4cadia.com>",
"license": "MIT",
"private": true,
"scripts": {
"build": "cross-env NODE_ENV=production webpack --config config/webpack.prod.js --progress --hide-modules",
"dev": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.js --hot",
"format:html": "prettier \"**/*.html\" --write",
"format:json": "prettier \"**/*.json\" --write",
"format": "concurrently --raw \"yarn:format:html\" \"yarn:format:json\"",
"lint": "eslint . --ext js,vue,json",
"lint-fix": "eslint . --ext js,vue,json --fix"
},
"dependencies": {
"vue": "^2.5.11"
},
"browserslist": ["> 1%", "last 2 versions", "not ie <= 8"],
"devDependencies": {
"cross-env": "^6.0.0",
"eslint-import-resolver-webpack": "^0.11.1"
}
}
File renamed without changes
File renamed without changes.
7 changes: 7 additions & 0 deletions packages/example-indexer-dapp/src/main.js
@@ -0,0 +1,7 @@
import Vue from 'vue';
import App from '@/App.vue';

export default new Vue({
el: '#app',
render: h => h(App),
});
21 changes: 0 additions & 21 deletions packages/indexer-dapp/package.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/indexer-dapp/src/main.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/indexer/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions packages/spider/package.json

This file was deleted.

4 changes: 1 addition & 3 deletions tsconfig.json
Expand Up @@ -9,9 +9,7 @@
"strict": true,
"noUnusedLocals": true,
"moduleResolution": "node",
"types": [
"node"
],
"types": ["node"],
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
Expand Down

0 comments on commit d4ef9fa

Please sign in to comment.