Skip to content

Commit f6d471f

Browse files
Update dependencies
- Remove babel (modern browsers don't need transpilation) - Move static assets (styles, data) into public/ - Build outputs to dist/, tests use serve on built files - Add copy-webpack-plugin to bundle static assets
1 parent b71f832 commit f6d471f

30 files changed

+1450
-2203
lines changed

.babelrc

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

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ node_modules/
66
.*
77
yarn-error.log
88

9-
_bundles
10-
transpiled
9+
dist
1110

1211
cypress/screenshots
1312
cypress/videos

index.html

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

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"description": "Sample app for UI-Router for AngularJS",
44
"version": "1.0.2",
55
"scripts": {
6-
"clean": "shx rm -rf _bundles transpiled",
6+
"clean": "shx rm -rf dist",
77
"start": "webpack-dev-server --progress --open",
88
"build": "webpack",
9-
"test": "npm run build && playwright test",
9+
"test": "playwright install chromium && npm run build && playwright test",
1010
"test:ui": "npm run build && playwright test --ui",
1111
"e2e": "npm run test",
1212
"format": "prettier --write \"app/**/*.js\" \"tests/**/*.js\" \"*.js\" \"*.json\"",
13-
"gh-pages": "git checkout gh-pages && git rebase master && yarn && webpack && git add -f _bundles && git commit -m 'publish gh-pages' && git push origin gh-pages:gh-pages --force && git checkout master",
13+
"gh-pages": "git checkout gh-pages && git rebase master && yarn && webpack && git add -f dist && git commit -m 'publish gh-pages' && git push origin gh-pages:gh-pages --force && git checkout master",
1414
"prepare": "husky"
1515
},
1616
"contributors": [
@@ -26,29 +26,29 @@
2626
},
2727
"checkPeerDependencies": {
2828
"ignore": [
29-
"ajv"
29+
"ajv",
30+
"picomatch"
3031
]
3132
},
3233
"dependencies": {
33-
"@uirouter/angularjs": "^1.0.29",
34+
"@uirouter/angularjs": "^1.1.2",
35+
"@uirouter/core": "^6.1.2",
3436
"@uirouter/dsr": "^1.2.0",
3537
"@uirouter/sticky-states": "^1.5.1",
3638
"@uirouter/visualizer": "^7.2.1",
37-
"angular": "^1.8.2",
39+
"angular": "^1.8.3",
3840
"oclazyload": "^1.1.0"
3941
},
4042
"devDependencies": {
41-
"@babel/core": "^7.21.4",
42-
"@babel/preset-env": "^7.14.9",
4343
"@playwright/test": "^1.57.0",
44-
"babel-loader": "^9.1.2",
44+
"copy-webpack-plugin": "^13.0.1",
45+
"html-webpack-plugin": "^5.6.5",
4546
"husky": "^9.1.7",
4647
"prettier": "^3.7.4",
4748
"serve": "^14.2.5",
48-
"shx": "^0.3.4",
49-
"source-map-loader": "^4.0.1",
50-
"webpack": "^5.77.0",
51-
"webpack-cli": "^5.0.1",
52-
"webpack-dev-server": "^4.13.2"
49+
"shx": "^0.4.0",
50+
"webpack": "^5.104.1",
51+
"webpack-cli": "^6.0.1",
52+
"webpack-dev-server": "^5.2.2"
5353
}
5454
}
File renamed without changes.

0 commit comments

Comments
 (0)