mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
e2e: make examples build per-platform
This commit is contained in:
@@ -2,9 +2,10 @@ module.exports = {
|
||||
dist: 'dist',
|
||||
distLib: 'dist/lib',
|
||||
src: {
|
||||
test: ['src/**/test/*.spec.js'],
|
||||
spec: ['src/**/test/*.spec.js'],
|
||||
js: ['src/**/*.js', '!src/**/test/**/*.js'],
|
||||
e2e: ['src/components/*/test/*/**/*'],
|
||||
e2eTest: ['src/components/*/test/*/'],
|
||||
e2e: ['src/components/*/test/**/*'],
|
||||
html: 'src/**/*.html',
|
||||
scss: 'src/components/**/*.scss',
|
||||
},
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<script src="platform.js"></script>
|
||||
</head>
|
||||
<body ion-app>
|
||||
</body>
|
||||
|
||||
2
scripts/e2e/platform.template.js
Normal file
2
scripts/e2e/platform.template.js
Normal file
@@ -0,0 +1,2 @@
|
||||
//TODO find a better override than window
|
||||
window.IONIC_PLATFORM = '<%= platform %>';
|
||||
Reference in New Issue
Block a user