diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..ab1f743 --- /dev/null +++ b/.babelrc @@ -0,0 +1,18 @@ +{ + "presets": [ + // "env", + [ + "@babel/preset-env", + { + "corejs": 3, + "modules": "commonjs", // resolves https://github.com/noppa/ng-hot-reload/issues/31 + "shippedProposals": true, + "useBuiltIns": "usage" + } + ] + ], + "plugins": [ + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-transform-object-assign" + ] +} diff --git a/.eslintrc.json b/.eslintrc.json index 98e177c..1de46ad 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -77,7 +77,7 @@ // 7.11 https://github.com/airbnb/javascript#functions--signature-spacing // 19.2 https://github.com/airbnb/javascript#whitespace--before-blocks - "space-before-function-paren": ["error", "never"], + "space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}], "space-before-blocks": ["error", "always"], // 7.13 https://github.com/airbnb/javascript#functions--reassign-params @@ -244,6 +244,7 @@ // 23.8 https://github.com/airbnb/javascript#naming--PascalCase-singleton // 23.9 https://github.com/airbnb/javascript#naming--Acronyms-and-Initialisms }, + "parser": "@babel/eslint-parser", "parserOptions": { "ecmaVersion": 6, "sourceType": "module" diff --git a/.gitignore b/.gitignore index 1e293c1..c4bad80 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,7 @@ node_modules *.log dist/ yarn.lock + +/test-results/ +/playwright-report/ +/playwright/.cache/ diff --git a/README.md b/README.md index ec0a65d..69ef9b6 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ - `npm start` - serve with hot reload at `localhost:1234` - `npm run build` - build bundled version in `dist` folder - `npm run lint` - lint code with ESLint using included config +- `npm run e2e` - run e2e tests - `npm run format` - format code with Prettier - `npx hygen component new --name new-component --path relative/path/inside/of/src/app/folder` - generate folder with default component code files - `npx hygen service new --name new-service --path relative/path/inside/of/src/app/folder` - generate folder with default service code files diff --git a/app/components/navbar/navbar.component.js b/app/components/navbar/navbar.component.js index d1078a7..6a24cb7 100644 --- a/app/components/navbar/navbar.component.js +++ b/app/components/navbar/navbar.component.js @@ -4,21 +4,29 @@ import './navbar.scss'; const navbarComponent = { bindings: {}, template: ` - -
-
- -

{{ $ctrl.NavigationService.currentPageTitle }}

-
- - GitHub -
GitHub
-
-
-
+ +
+
+ +

+ {{ $ctrl.NavigationService.currentPageTitle }} +

+
+ + GitHub +
GitHub
+
+
+
`, controller, }; diff --git a/app/components/page-home/page-home.component.js b/app/components/page-home/page-home.component.js index 7289345..f0df519 100644 --- a/app/components/page-home/page-home.component.js +++ b/app/components/page-home/page-home.component.js @@ -5,14 +5,15 @@ const pageHomeComponent = { bindings: {}, template: ` -

Modern starter for AngularJS + Angular Material

+

Modern starter for AngularJS + Angular Material

ng-hotrod + alt="Hand sketch of an old hot rod car with the AngularJS logo on the door">

FEATURING:

-