Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c522b8f

Browse files
committedApr 9, 2018
chore(example): use cypress-runner to launch e2e tests
1 parent 710053c commit c522b8f

File tree

4 files changed

+562
-874
lines changed

4 files changed

+562
-874
lines changed
 

‎index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div ui-view></div>
1414

1515
<script src="//cdn.polyfill.io/v2/polyfill.min.js?features=default,Array.prototype.find,MutationObserver"></script>
16-
<script src="_bundles/vendor.js"></script>
16+
<script src="_bundles/vendors~sampleapp.js"></script>
1717
<script src="_bundles/sampleapp.js"></script>
1818
</body>
1919
</html>

‎package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"description": "Sample app for UI-Router for AngularJS",
44
"version": "1.0.2",
55
"scripts": {
6+
"clean": "shx rm -rf _bundles transpiled",
67
"start": "webpack-dev-server --progress --open",
78
"build": "webpack --progress",
8-
"test": "run-s build e2e",
9-
"e2e": "run-p -r browser-sync cypress",
10-
"browser-sync": "browser-sync --port 4000 --no-open",
11-
"cypress": "wait-on tcp:4000 && cypress run",
9+
"test": "npm run build && cypress-runner run --path .",
10+
"test:open": "npm run build && cypress-runner open --path .",
11+
"e2e": "npm run test",
1212
"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"
1313
},
1414
"contributors": [
@@ -31,16 +31,14 @@
3131
"oclazyload": "^1.1.0"
3232
},
3333
"devDependencies": {
34+
"@uirouter/cypress-runner": "^1.0.4",
3435
"babel-core": "^6.26.0",
3536
"babel-loader": "^7.1.4",
3637
"babel-plugin-syntax-dynamic-import": "^6.18.0",
3738
"babel-preset-es2015": "^6.24.1",
3839
"babel-preset-es2015-ie": "^6.7.0",
39-
"browser-sync": "^2.23.6",
40-
"cypress": "^2.1.0",
41-
"npm-run-all": "^4.1.2",
40+
"shx": "^0.2.2",
4241
"source-map-loader": "^0.2.3",
43-
"wait-on": "^2.1.0",
4442
"webpack": "^4.1.1",
4543
"webpack-cli": "^2.0.10",
4644
"webpack-dev-server": "^3.1.1"

‎webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ module.exports = {
2222
extensions: ['.js']
2323
},
2424

25+
optimization: {
26+
splitChunks: { chunks: 'all', },
27+
},
28+
2529
module: {
2630
rules: [
2731
{

‎yarn.lock

Lines changed: 551 additions & 865 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.