Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
- name: Install dependencies
run: yarn
- name: Run tests
run: yarn cypress_ci
run: yarn test_ci
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ testem.log
# System Files
.DS_Store
Thumbs.db
.wireit
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,8 @@
}
}
}
},
"cli": {
"analytics": "4af3d67b-15ea-40d9-8c3a-998fb02958b9"
}
}
160 changes: 124 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,30 @@
"name": "angular-split-app",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"lib-start": "ng build angular-split --watch",
"lint": "ng lint",
"app_build": "yarn lib_build && ng build --configuration production --base-href /angular-split/",
"app_analyze": "yarn lib_build && ng build --configuration production --stats-json && webpack-bundle-analyzer dist/angular-split-app/stats.json",
"app_analyze": "yarn build && ng build --configuration production --stats-json && webpack-bundle-analyzer dist/angular-split-app/stats.json",
"build": "wireit",
"test_live": "wireit",
"test_prod": "wireit",
"test_ci": "wireit",
"deploy": "ng deploy angular-split-app --branch main --base-href 'https://angular-split.github.io/' --repo https://github.com/angular-split/angular-split.github.io.git",
"lib_build": "ng build angular-split && yarn lib_copy",
"lib_copy": "cp ./LICENSE ./README.md ./dist/angular-split",
"lib_tgz": "yarn lib_build && cd dist/angular-split && npm pack",
"lib_pub_next": "yarn lib_build && npm publish --tag next ./dist/angular-split",
"lib_pub_latest": "yarn lib_build && npm publish --tag latest ./dist/angular-split",
"cypress_dev": "yarn lib_build && ng build --configuration production && concurrently \"ng serve --port 4242\" \"cypress open\"",
"cypress_prod": "yarn cypress_build && run-p --race cypress_serve cypress_open",
"cypress_ci": "yarn cypress_build && run-p --race cypress_serve cypress_run",
"cypress_build": "yarn lib_build && ng build angular-split-app --configuration production",
"cypress_serve": "serve -s -l 4242 ./dist/angular-split-app",
"cypress_open": "cypress open --config baseUrl=http://localhost:4242/",
"cypress_run": "cypress run --config baseUrl=http://localhost:4242/",
"format": "prettier --write '**/*.{js,json,css,scss,less,md,ts,tsx,html,component.html,graphql}'"
"format": "prettier --write '**/*.{js,json,css,scss,less,md,ts,tsx,html,component.html,graphql}'",
"lib_pub_latest": "wireit",
"lib_pub_next": "wireit",
"lib_tgz": "wireit",
"lint": "ng lint",
"ng": "ng",
"start": "wireit"
},
"private": true,
"dependencies": {
"@angular/animations": "^17.0.2",
"@angular/common": "^17.0.2",
"@angular/compiler": "^17.0.2",
"@angular/core": "^17.0.2",
"@angular/forms": "^17.0.2",
"@angular/platform-browser": "^17.0.2",
"@angular/platform-browser-dynamic": "^17.0.2",
"@angular/router": "^17.0.2",
"@angular/animations": "^17.1.0",
"@angular/common": "^17.1.0",
"@angular/compiler": "^17.1.0",
"@angular/core": "^17.1.0",
"@angular/forms": "^17.1.0",
"@angular/platform-browser": "^17.1.0",
"@angular/platform-browser-dynamic": "^17.1.0",
"@angular/router": "^17.1.0",
"angular-cli-ghpages": "^1.0.6",
"bootstrap": "5.3.1",
"core-js": "3.32.1",
Expand All @@ -46,13 +39,13 @@
"zone.js": "~0.14.2"
},
"devDependencies": {
"@angular-devkit/architect": "^0.1700.0",
"@angular-devkit/build-angular": "^17.0.0",
"@angular-devkit/core": "^17.0.0",
"@angular-devkit/schematics": "^17.0.0",
"@angular/cli": "^17.0.0",
"@angular/compiler-cli": "^17.0.2",
"@angular/language-service": "^17.0.2",
"@angular-devkit/architect": "^0.1701.0",
"@angular-devkit/build-angular": "^17.1.0",
"@angular-devkit/core": "^17.1.0",
"@angular-devkit/schematics": "^17.1.0",
"@angular/cli": "^17.1.0",
"@angular/compiler-cli": "^17.1.0",
"@angular/language-service": "^17.1.0",
"@types/marked": "^5.0.1",
"@types/node": "20.5.4",
"codelyzer": "^6.0.2",
Expand All @@ -66,11 +59,106 @@
"tslib": "^2.6.2",
"tslint": "~6.1.3",
"typescript": "5.2.2",
"webpack-bundle-analyzer": "4.9.0"
"webpack-bundle-analyzer": "4.9.0",
"wireit": "^0.14.3"
},
"lint-staged": {
"*.{js,json,css,scss,less,md,ts,tsx,html,component.html,graphql}": [
"prettier --write"
]
},
"wireit": {
"app_build_dev": {
"command": "yarn app_build -- --base-href /angular-split/"
},
"app_build": {
"command": "ng build angular-split-app --configuration production",
"dependencies": [
"lib_build"
],
"files": [
"src/"
],
"output": [
"dist/angular-split-app"
]
},
"build": {
"dependencies": [
"app_build",
"lib_build"
]
},
"test_ci": {
"dependencies": [
"cypress_run",
"cypress_serve"
]
},
"ng_serve": {
"command": "ng serve --port 4242",
"service": true
},
"test_live": {
"command": "cypress open --config baseUrl=http://localhost:4242/",
"dependencies": [
"ng_serve"
],
"service": true
},
"test_prod": {
"command": "cypress open --config baseUrl=http://localhost:4242/",
"dependencies": [
"build",
"cypress_serve"
],
"service": true
},
"cypress_run": {
"command": "cypress run --config baseUrl=http://localhost:4242/",
"dependencies": [
"cypress_serve"
]
},
"cypress_serve": {
"command": "serve -s -l 4242 ./dist/angular-split-app",
"service": true,
"dependencies": [
"build"
]
},
"lib_build": {
"command": "ng build angular-split && cp ./LICENSE ./README.md ./dist/angular-split",
"files": [
"projects/angular-split/"
],
"output": [
"dist/angular-split"
]
},
"lib_pub_latest": {
"command": "npm publish --tag latest ./dist/angular-split",
"dependencies": [
"lib_build"
]
},
"lib_pub_next": {
"command": "npm publish --tag next ./dist/angular-split",
"dependencies": [
"lib_build"
]
},
"lib_tgz": {
"command": "cd dist/angular-split && npm pack",
"dependencies": [
"lib_build"
]
},
"start": {
"command": "ng serve",
"dependencies": [
"lib_build"
]
}
}
}
}
Loading