diff --git a/.circleci/config.yml b/.circleci/config.yml index d33057a4..e6b58f70 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,14 +3,22 @@ orbs: ci: bigcommerce/internal@volatile microapp: bigcommerce/internal-microapp@volatile +default_params: &default_params + context: Bintray Access + +##################################################### +# Workflows +##################################################### workflows: version: 2 - ci-checks: + full: jobs: - - microapp/lint - - microapp/test - - microapp/build - - ci/validate-commits + - microapp/lint: + <<: *default_params + - microapp/test: + <<: *default_params + - microapp/build: + <<: *default_params - microapp/upload-artifact: context: Artifact Bucket Access @@ -18,8 +26,3 @@ workflows: - microapp/lint - microapp/test - microapp/build - - - ci/notify-success: - requires: - - ci/validate-commits - - microapp/upload-artifact diff --git a/.eslintrc.js b/.eslintrc.js index 2891c4b0..d3adba51 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,28 +10,38 @@ module.exports = { '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/ban-ts-ignore': 'off', - '@typescript-eslint/member-ordering': 'warn', - '@typescript-eslint/unbound-method': 'warn', - '@typescript-eslint/tslint/config': 'warn', + '@typescript-eslint/member-ordering': 'off', + '@typescript-eslint/unbound-method': 'off', + '@typescript-eslint/tslint/config': 'off', '@typescript-eslint/naming-convention': 'off', - '@typescript-eslint/ban-types': 'warn', + '@typescript-eslint/ban-types': 'off', '@typescript-eslint/camelcase': 'off', - '@typescript-eslint/ban-ts-comment': 'warn', - '@typescript-eslint/semi': 'warn', - 'import/namespace': 'warn', - 'import/no-extraneous-dependencies': 'warn', - 'import/order': 'warn', - 'import/default': 'warn', - 'import/extensions': 'warn', - 'import/no-unresolved': 'warn', - 'no-restricted-syntax': 'warn', - eqeqeq: 'warn', - 'no-useless-return': 'warn', - 'no-shadow': 'warn', + '@typescript-eslint/ban-ts-comment': 'off', + '@typescript-eslint/semi': 'off', + 'import/namespace': 'off', + 'import/no-extraneous-dependencies': 'off', + 'import/order': 'off', + 'import/default': 'off', + 'import/extensions': 'off', + 'import/no-unresolved': 'off', + 'no-restricted-syntax': 'off', + eqeqeq: 'off', + 'no-useless-return': 'off', + 'no-shadow': 'off', 'no-global-assign': 'off', - 'react/destructuring-assignment': 'warn', - 'react/jsx-no-bind': 'warn', - 'jsdoc/require-param-type': 'warn' + 'react/destructuring-assignment': 'off', + 'react/jsx-no-bind': 'off', + 'jsdoc/require-param-type': 'off', + 'func-names': 'off', + 'quote-props': 'off', + 'react/jsx-indent-props': 'off', + 'react/jsx-one-expression-per-line': 'off', + 'space-before-function-paren': 'off', + '@typescript-eslint/space-before-function-paren': 'off', + 'import/no-named-as-default': 'off', + 'import/no-named-as-default-member': 'off', + 'no-console': 'off', + '@typescript-eslint/no-non-null-assertion': 'off' }, settings: { react: { diff --git a/.gitignore b/.gitignore index 8e219b37..bd19b37c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,7 @@ # IDE .vscode/ +.DS_Store + +# Logs +yarn-error.log diff --git a/gulpfile.js b/gulpfile.js index 19d55d6e..b9dfad7c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,3 +17,5 @@ const registry = new NgBuild(this, { }) gulp.registry(registry) +gulp.task('ci:lint', gulp.series(['lint'])) +gulp.task('ci:test', gulp.series(['test'])) diff --git a/package.json b/package.json index 8c89232e..3c8e55f0 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "js-cookie": "^2.2.0", "lodash": "^4.17.5", "nanoid": "^1.0.2", - "ng-build": "github:bigcommerce-labs/ng-build#14.0.10", + "ng-build": "git+ssh://git@github.com:bigcommerce-labs/ng-build.git#14.0.10", "prop-types": "^15.6.1", "react-emotion": "^9.1.2", "styled-components": "^4.4.1" diff --git a/yarn.lock b/yarn.lock index 3e03b167..b0c353f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15617,9 +15617,9 @@ next-tick@^1.0.0, next-tick@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" -"ng-build@github:bigcommerce-labs/ng-build#14.0.10": +"ng-build@git+ssh://git@github.com:bigcommerce-labs/ng-build.git#14.0.10": version "14.0.10" - resolved "git+ssh://git@github.com/bigcommerce-labs/ng-build.git#53366df79cba5db81695969d8493180611c34a4e" + resolved "git+ssh://git@github.com:bigcommerce-labs/ng-build.git#53366df79cba5db81695969d8493180611c34a4e" dependencies: "@babel/core" "^7.10.2" "@babel/plugin-proposal-class-properties" "^7.10.1"