Skip to content

Commit 630f85c

Browse files
authored
Merge pull request #57 from sardapv/upgrades/angular-14
Upgrades/angular14-tailwind3-more
2 parents 7f4d02a + e89dd7b commit 630f85c

28 files changed

+6518
-14092
lines changed

.github/workflows/build-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- name: Lint
3333
run: |
3434
npm run lint
35-
- name: Cypress Test
36-
run: |
37-
npm run e2e:ci
35+
# - name: Cypress Test // bug-doesn't return back to cli,
36+
# run: |
37+
# npm run e2e:ci
3838
- name: Test
3939
run: |
4040
npm run test

.github/workflows/coverage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
- name: Run unit tests
4040
run: npm run test:coverage
4141

42-
- name: Run Cypress tests
43-
run: npm run e2e:ci
42+
# - name: Run Cypress tests //bug-https://github.com/cypress-io/cypress/issues/23026
43+
# run: npm run e2e:ci
4444

45-
- name: Convert test results
46-
run: npx nyc report --reporter=lcov
45+
# - name: Convert test results
46+
# run: npx nyc report --reporter=json
4747

48-
- name: Upload coverage to Codecov
49-
uses: codecov/codecov-action@v1
48+
# - name: Upload coverage to Codecov
49+
# uses: codecov/codecov-action@v1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.editorconfig
33

44
.version
5-
5+
.angular
66
# compiled output
77
/dist
88
/tmp

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"recommendations": [
33
"angular.ng-template",
4+
"bradlc.vscode-tailwindcss", // tailwind auto suggestions
5+
"esbenp.prettier-vscode", //pretifier
6+
"mike-co.import-sorter", //sorts imports
7+
"johnpapa.Angular2", //angular snippets
8+
"formulahendry.auto-rename-tag", //auto renames tags
49
"dbaeumer.vscode-eslint",
510
"josefbiehler.cypress-fixture-intellisense",
6-
"esbenp.prettier-vscode",
711
"ms-vscode.test-adapter-converter",
812
"ghaschel.vscode-angular-html",
913
"connorshea.vscode-test-explorer-status-bar"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# angular-material-starter-template (ng-new-app 🍄)
22

3+
## Package has been updated withe everything latest, if you find any issues, please report. PRs welcome
4+
5+
_Note: Cypress RUN and Code Coverage is disabled from pipeline until officially fixed by Cypress Team_
6+
37
[![Lint-Prettier-Prettier:verify-Tests-CypressTests-Build-Purgecss-Deploy](https://github.com/sardapv/angular-material-starter-template/actions/workflows/build-deploy.yml/badge.svg)](https://github.com/sardapv/angular-material-starter-template/actions/workflows/build-deploy.yml) ![GitHub](https://img.shields.io/github/license/sardapv/ng-material-starter-template) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/sardapv/angular-material-starter-template)
48

59
![logo](logoForThisRepo.png?raw=true)

angular.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@
9494
"test": {
9595
"builder": "@angular-builders/jest:run",
9696
"options": {
97-
"polyfills": "src/polyfills.ts",
9897
"tsConfig": "tsconfig.spec.json",
99-
"inlineStyleLanguage": "scss",
98+
"inlineStyleLanguage": ["scss"],
10099
"assets": ["src/favicon.ico", "src/assets"],
101100
"styles": ["src/styles.scss"],
102101
"scripts": []
@@ -109,18 +108,18 @@
109108
}
110109
},
111110
"cypress-run": {
112-
"builder": "@briebug/cypress-schematic:cypress",
111+
"builder": "@cypress/schematic:cypress",
113112
"options": {
114113
"devServerTarget": "ng-new-app:serve"
115114
},
116115
"configurations": {
117116
"production": {
118-
"devServerTarget": "ng-new-app:serve:production"
117+
"devServerTarget": "ng-new-app:production"
119118
}
120119
}
121120
},
122121
"cypress-open": {
123-
"builder": "@briebug/cypress-schematic:cypress",
122+
"builder": "@cypress/schematic:cypress",
124123
"options": {
125124
"devServerTarget": "ng-new-app:serve",
126125
"watch": true,
@@ -133,7 +132,7 @@
133132
}
134133
},
135134
"e2e": {
136-
"builder": "@briebug/cypress-schematic:cypress",
135+
"builder": "@cypress/schematic:cypress",
137136
"options": {
138137
"devServerTarget": "ng-new-app:serve",
139138
"watch": true,

bin/generate-app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const currentPath = process.cwd();
1616
const projectPath = path.join(currentPath, projectName);
1717
const git_repo = 'https://github.com/sardapv/angular-material-starter-template.git';
1818
const features = [
19+
'New Version Updatee: Now Supports, Angular, Tailwind, Jest, Cypress @ Latest',
20+
'-------------------------------------------------------',
1921
'Scalable Project Structure, annotations configured, Global style.scss configured',
2022
'Angular Material Component, Icons, Typography & CDK integrated (just change _variables and colors)',
2123
'Utility first Tailwind CSS, some of the custom configuration added',
@@ -99,7 +101,7 @@ async function main() {
99101
console.log('\x1b[34m', ` 1. cd ${projectName}`);
100102
console.log(` 2. search and replace 'ng-new-app' in all files with your app-name using editor ⚠️`);
101103
console.log(` 3. Edit package.json and change starting details like author, description, git url, etc.`);
102-
console.log(` 4. If API calls supported, configure baseurl inenvironment*.ts files (don't end with /)`);
104+
console.log(` 4. If API calls supported, configure baseurl in environment*.ts files (don't end with /)`);
103105
console.log(' 5. Run npm start', '\x1b[0m');
104106
console.log();
105107
console.log('step 4/4 ⏳');

cypress.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
videosFolder: 'cypress/videos',
5+
screenshotsFolder: 'cypress/screenshots',
6+
fixturesFolder: 'cypress/fixtures',
7+
e2e: {
8+
// We've imported your old cypress plugins here.
9+
// You may want to clean this up later by importing these.
10+
setupNodeEvents(on, config) {
11+
return require('./cypress/plugins/index.js')(on, config);
12+
},
13+
baseUrl: 'http://localhost:4200',
14+
},
15+
});

cypress.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)