mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(): correct config to allow for watch and live-reload on test folders.
This commit is contained in:
@ -1,47 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html dir="ltr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Ionic</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<script src="/dist/ionic.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ion-app>
|
||||
|
||||
<ion-page>
|
||||
|
||||
<button-bar></button-bar>
|
||||
|
||||
<script>
|
||||
class ButtonBar extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
const shadowRoot = this.attachShadow({ mode: 'open' });
|
||||
shadowRoot.innerHTML = `
|
||||
<style>
|
||||
:host {
|
||||
|
||||
};
|
||||
</style>
|
||||
|
||||
<ion-toolbar>
|
||||
<ion-button>News</ion-button>
|
||||
</ion-toolbar>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define('button-bar', ButtonBar)
|
||||
</script>
|
||||
|
||||
</ion-content>
|
||||
|
||||
</ion-page>
|
||||
|
||||
</ion-app>
|
||||
|
||||
</body>
|
||||
</html>
|
991
packages/core/package-lock.json
generated
991
packages/core/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@
|
||||
"main": "dist/collection/collection-manifest.json",
|
||||
"scripts": {
|
||||
"build": "npm run copy.vendor && stencil build --prod",
|
||||
"dev": "npm run copy.vendor && stencil build --watch --debug",
|
||||
"dev": "npm run copy.vendor && concurrently \"stencil build --watch --debug\" \"stencil-dev-server\"",
|
||||
"copy.vendor": "mkdir -p ./dist/collection/vendor && cp -Rf ./src/vendor ./dist/collection",
|
||||
"link.stencil": "npm link @stencil/core",
|
||||
"test": "jest"
|
||||
@ -15,9 +15,10 @@
|
||||
"url": "git+https://github.com/ionic-team/ionic.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@stencil/core": "^0.0.1"
|
||||
"@stencil/core": "0.0.2-1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^3.5.0",
|
||||
"ionicons": "3.0.0"
|
||||
},
|
||||
"author": "Ionic Team",
|
||||
|
@ -1,6 +1,7 @@
|
||||
exports.config = {
|
||||
namespace: 'Ionic',
|
||||
buildDest: 'dist',
|
||||
staticBuildDir: '/dist',
|
||||
generateCollection: true,
|
||||
diagnosticsDest: 'demos/.dev-diagnostics.html',
|
||||
bundles: [
|
||||
|
Reference in New Issue
Block a user