-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update to support Stencil v1 collection format
- Updated the demo components package to use the latest Stencil compiler version - Updated the means for importing the package to follow the latest guidelines from the Stencil docs BREAKING CHANGE: `ember-cli-stencil` now requires that collections are authored using `@stencil/core` v1.0.0 or higher.
- Loading branch information
1 parent
12b82d3
commit 0642e11
Showing
17 changed files
with
175 additions
and
1,208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,24 @@ | ||
{ | ||
"name": "demo-components", | ||
"version": "0.4.0", | ||
"version": "0.0.1", | ||
"description": "Stencil Component Starter", | ||
"main": "dist/index.js", | ||
"module": "dist/esm/index.js", | ||
"module": "dist/index.mjs", | ||
"es2015": "dist/esm/index.mjs", | ||
"es2017": "dist/esm/index.mjs", | ||
"types": "dist/types/index.d.ts", | ||
"collection": "dist/collection/collection-manifest.json", | ||
"private": true, | ||
"collection:main": "dist/collection/index.js", | ||
"unpkg": "dist/demo-components/demo-components.js", | ||
"files": [ | ||
"dist/" | ||
"dist/", | ||
"loader/" | ||
], | ||
"scripts": { | ||
"build": "stencil build", | ||
"dev": "sd concurrent \"stencil build --dev --watch\" \"stencil-dev-server\" ", | ||
"serve": "stencil-dev-server", | ||
"start": "npm run dev" | ||
"build": "stencil build" | ||
}, | ||
"devDependencies": { | ||
"@stencil/core": "^0.12.4", | ||
"@stencil/dev-server": "latest", | ||
"@stencil/utils": "latest" | ||
"@stencil/core": "^1.0.7" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ionic-team/stencil-component-starter.git" | ||
}, | ||
"author": "Ionic Team", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ionic-team/stencil" | ||
}, | ||
"homepage": "https://github.com/ionic-team/stencil" | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/demo-components/src/components/demo-event-emitter/demo-event-emitter.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/demo-components/src/components/demo-passing-props/demo-passing-props.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Config } from "@stencil/core"; | ||
|
||
export const config: Config = { | ||
namespace: "demo-components", | ||
outputTargets: [ | ||
{ | ||
type: "dist", | ||
esmLoaderPath: "../loader" | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 22 additions & 10 deletions
32
packages/ember-cli-stencil/lib/generate-import-initializer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.