Skip to content

Commit

Permalink
feat: implemented core and cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvilla committed Mar 31, 2022
1 parent 0950ca7 commit a45597e
Show file tree
Hide file tree
Showing 568 changed files with 23,880 additions and 11,381 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ root = true
charset = utf-8
indent_style = space
indent_size = 2
tab_width = 2
max_line_length = 150
insert_final_newline = true
trim_trailing_whitespace = true

Expand Down
90 changes: 55 additions & 35 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,71 +1,91 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*",
"electron/**/*"
"cli/gushio",
"cli/coverage/**/*",
"cli/dist/**/*",
"cli/tmp/**/*",
"core/coverage/**/*",
"core/dist/**/*",
"core/gushio",
"desktop-app/coverage/**/*",
"desktop-app/dist/**/*",
"desktop-app/electron/**/*",
"desktop-app/e2e/**/*",
"desktop-app/gushio",
"desktop-app/scripts/notarize.js",
"gushio/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.app.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
"plugin:@angular-eslint/template/process-inline-templates",
"prettier"
],
"rules": {
"@angular-eslint/component-selector": [
"prettier/prettier": "error",
"brace-style": ["error", "1tbs"],
"id-blacklist": ["error"],
"no-underscore-dangle": "off",
"no-case-declarations": "off",
"no-dupe-else-if": "warn",
"no-unused-vars": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@angular-eslint/directive-selector": [
"error",
"@typescript-eslint/explicit-module-boundary-types": [
"warn",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
"warn",
{
"accessibility": "explicit"
"accessibility": "explicit",
"overrides": {
"accessors": "off",
"constructors": "no-public",
"methods": "no-public",
"properties": "off",
"parameterProperties": "off"
}
}
],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-for-of": "off",
"arrow-parens": [
"off",
"always"
],
"brace-style": [
"@angular-eslint/component-selector": [
"error",
"1tbs"
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"id-blacklist": "error",
"import/order": "off",
"max-len": [
"@angular-eslint/directive-selector": [
"error",
{
"code": 1024
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"no-trailing-spaces": "off",
"no-underscore-dangle": "off"
]
}
},
{
Expand Down
59 changes: 37 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
/release
desktop-app/dist
desktop-app/tmp
desktop-app/out-tsc
desktop-app/release
# Only exists if Bazel was run
/bazel-out
desktop-app/bazel-out
desktop-app/.angular

# dependencies
/node_modules
**/node_modules

# profiling files
chrome-profiler-events.json
speed-measure-plugin.json
**/chrome-profiler-events.json
**/speed-measure-plugin.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
.cache/
.python-version
*.launch
.settings/
*.sublime-workspace
release/

# IDE - VSCode
.vscode/*
Expand All @@ -35,30 +35,45 @@ speed-measure-plugin.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
**/.sass-cache
**/connect.lock
**/coverage
**/libpeerconnection.log
**/npm-debug.log
**/yarn-error.log
**/testem.log
**/typings

# System Files
.DS_Store
Thumbs.db

# Windows certificate
windows.pfx
desktop-app/windows.pfx

package-lock.json
**/package-lock.json

/electron/dist
desktop-app/electron/dist

start.sh
buildAll.sh

#Mkdocs
site/
temp/

core/package-lock.json
core/node_modules
core/dist

cli/*-debug.log
cli/*-error.log
cli/.nyc_output
cli/dist
cli/lib
cli/package-lock.json
cli/tmp
cli/yarn.lock
cli/node_modules
cli/oclif.manifest.json
/release/
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit
npx --no-install commitlint --edit
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.14.1
16.14.0
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"arrow-parens": ["error", "always"],
"trailing-spaces": "off"
}
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10.2
12 changes: 12 additions & 0 deletions .run/Buil Core.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build-Run Desktop App" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/desktop-app/package.json" />
<command value="run" />
<scripts>
<script value="build-and-run-dev" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/Build Core.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build Core" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/core/package.json" />
<command value="run" />
<scripts>
<script value="build" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
14 changes: 14 additions & 0 deletions .run/Build-Run Desktop App.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build-Run Desktop App" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/desktop-app/package.json" />
<command value="run" />
<scripts>
<script value="build-and-run-dev" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Build Core" run_configuration_type="js.build_tools.npm" />
</method>
</configuration>
</component>
13 changes: 13 additions & 0 deletions .run/CLI Tests.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="CLI Tests" type="JavaScriptTestRunnerJest">
<node-interpreter value="project" />
<node-options value="" />
<jest-package value="$PROJECT_DIR$/cli/node_modules/jest" />
<working-dir value="$PROJECT_DIR$/cli" />
<envs />
<scope-kind value="ALL" />
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Build CLI" run_configuration_type="js.build_tools.npm" />
</method>
</configuration>
</component>
14 changes: 14 additions & 0 deletions .run/Compile CLI.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build CLI" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/cli/package.json" />
<command value="run" />
<scripts>
<script value="prepack" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Build Core" run_configuration_type="js.build_tools.npm" />
</method>
</configuration>
</component>
13 changes: 13 additions & 0 deletions .run/Core Tests.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Core Tests" type="JavaScriptTestRunnerJest">
<node-interpreter value="project" />
<node-options value="" />
<jest-package value="$PROJECT_DIR$/core/node_modules/jest" />
<working-dir value="$PROJECT_DIR$/core" />
<envs />
<scope-kind value="ALL" />
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Build Core" run_configuration_type="js.build_tools.npm" />
</method>
</configuration>
</component>
Loading

0 comments on commit a45597e

Please sign in to comment.