Skip to content

Commit

Permalink
feat: upgrade to stencil one
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvaler committed Oct 5, 2019
1 parent 5da81dd commit 789123b
Show file tree
Hide file tree
Showing 7 changed files with 8,032 additions and 8,241 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ cache:
notifications:
email: false
node_js:
- '11'
- '10'
- '9'
- '8'
before_install:
- npm install -g greenkeeper-lockfile
install: npm install # npm ci won't work with greenkeeper pull
Expand Down
16,149 changes: 7,977 additions & 8,172 deletions package-lock.json

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"types": "dist/types/components.d.ts",
"collection": "dist/collection/collection-manifest.json",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"module": "dist/index.js",
"es2015": "dist/esm/index.mjs",
"es2017": "dist/esm/index.mjs",
"jsnext:main": "dist/esm/index.mjs",
"files": [
"dist/"
],
Expand All @@ -21,15 +24,15 @@
},
"dependencies": {},
"devDependencies": {
"@stencil/core": "^0.11.3",
"@stencil/core": "^1.5.4",
"@stencil/dev-server": "latest",
"@stencil/sass": "0.1.1",
"@stencil/utils": "latest",
"@types/jest": "^23.3.1",
"@types/node": "10.10.0",
"travis-deploy-once": "^5.0.2",
"semantic-release": "^15.9.6",
"jest": "^23.4.2"
"@stencil/sass": "^1.0.1",
"@stencil/utils": "0.0.5",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.11",
"jest": "^24.9.0",
"semantic-release": "^15.13.24",
"travis-deploy-once": "^5.0.11"
},
"repository": {
"type": "git",
Expand Down
74 changes: 30 additions & 44 deletions src/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,67 +1,53 @@
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
/* tslint:disable */

import '@stencil/core';

import { HTMLStencilElement, JSXBase } from '@stencil/core/internal';


export namespace Components {
interface ChuckNorrisJokes {
'firstname': string;
'lastname': string;
}
}

declare global {
interface HTMLElement {
componentOnReady?: () => Promise<this | null>;
}

interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;

forceUpdate(): void;
interface HTMLChuckNorrisJokesElement extends Components.ChuckNorrisJokes, HTMLStencilElement {}
var HTMLChuckNorrisJokesElement: {
prototype: HTMLChuckNorrisJokesElement;
new (): HTMLChuckNorrisJokesElement;
};
interface HTMLElementTagNameMap {
'chuck-norris-jokes': HTMLChuckNorrisJokesElement;
}
}

interface HTMLAttributes {}

namespace StencilComponents {

interface ChuckNorrisJokes {
'firstname': string;
'lastname': string;
}
declare namespace LocalJSX {
interface ChuckNorrisJokes {
'firstname'?: string;
'lastname'?: string;
}


interface HTMLChuckNorrisJokesElement extends StencilComponents.ChuckNorrisJokes, HTMLStencilElement {}

var HTMLChuckNorrisJokesElement: {
prototype: HTMLChuckNorrisJokesElement;
new (): HTMLChuckNorrisJokesElement;
};


namespace JSX {
interface Element {}
export interface IntrinsicElements {
'chuck-norris-jokes': JSXElements.ChuckNorrisJokesAttributes;
}
interface IntrinsicElements {
'chuck-norris-jokes': ChuckNorrisJokes;
}
}

namespace JSXElements {

export interface ChuckNorrisJokesAttributes extends HTMLAttributes {
'firstname'?: string;
'lastname'?: string;
}
}
export { LocalJSX as JSX };

interface HTMLElementTagNameMap {
'chuck-norris-jokes': HTMLChuckNorrisJokesElement
}

interface ElementTagNameMap {
'chuck-norris-jokes': HTMLChuckNorrisJokesElement;
declare module "@stencil/core" {
export namespace JSX {
interface IntrinsicElements {
'chuck-norris-jokes': LocalJSX.ChuckNorrisJokes & JSXBase.HTMLAttributes<HTMLChuckNorrisJokesElement>;
}
}
}
declare global { namespace JSX { interface StencilJSX {} } }

export declare function defineCustomElements(window: any): void;

2 changes: 1 addition & 1 deletion src/components/chuck-norris-jokes/chuck-norris-jokes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Prop, State } from '@stencil/core';
import { Component, h, Prop, State } from '@stencil/core';

interface Joke {
id: string;
Expand Down
22 changes: 10 additions & 12 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
<title>Chuck Norris Jokes</title>
<script src="/build/chuck-norris-jokes.js"></script>

</head>
<body>

<chuck-norris-jokes firstname="" lastname=""></chuck-norris-jokes>

</body>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<title>Chuck Norris Jokes</title>
<script type="module" src="/build/chuck-norris-jokes.esm.js"></script>
<script nomodule src="/build/chuck-norris-jokes.js"></script>
</head>
<body>
<chuck-norris-jokes firstname="" lastname=""></chuck-norris-jokes>
</body>
</html>
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './components';
export * from './components/chuck-norris-jokes/chuck-norris-jokes';

0 comments on commit 789123b

Please sign in to comment.