Skip to content

Commit

Permalink
Merge pull request #150 from break-stuff/fix-async-file-save
Browse files Browse the repository at this point in the history
fix async file generation
  • Loading branch information
break-stuff authored Jul 24, 2024
2 parents 7351b9b + 3591794 commit 940144c
Show file tree
Hide file tree
Showing 28 changed files with 7,559 additions and 6,137 deletions.
28 changes: 14 additions & 14 deletions demo/lit-app/custom-elements.json
Original file line number Diff line number Diff line change
Expand Up @@ -823,46 +823,46 @@
},
{
"kind": "javascript-module",
"path": "src/radio-group/radio-group.ts",
"path": "src/radio-button/radio-button.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "RadioGroup",
"name": "RadioButton",
"declaration": {
"name": "RadioGroup",
"module": "src/radio-group/radio-group.ts"
"name": "RadioButton",
"module": "src/radio-button/radio-button.ts"
}
},
{
"kind": "custom-element-definition",
"name": "radio-group",
"name": "radio-button",
"declaration": {
"name": "RadioGroup",
"module": "/src/radio-group/RadioGroup.js"
"name": "RadioButton",
"module": "/src/radio-button/RadioButton.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/radio-button/radio-button.ts",
"path": "src/radio-group/radio-group.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "RadioButton",
"name": "RadioGroup",
"declaration": {
"name": "RadioButton",
"module": "src/radio-button/radio-button.ts"
"name": "RadioGroup",
"module": "src/radio-group/radio-group.ts"
}
},
{
"kind": "custom-element-definition",
"name": "radio-button",
"name": "radio-group",
"declaration": {
"name": "RadioButton",
"module": "/src/radio-button/RadioButton.js"
"name": "RadioGroup",
"module": "/src/radio-group/RadioGroup.js"
}
}
]
Expand Down
4 changes: 4 additions & 0 deletions packages/custom-jsdoc-tags/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.1.2

- Removed duplicate logs

## 1.1.1

- Fixed issue with "path" import
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-jsdoc-tags/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cem-plugin-custom-jsdoc-tags",
"version": "1.1.1",
"version": "1.1.2",
"description": "Translates custom JSDoc tags to the Custom Elements Manifest",
"main": "index.js",
"module": "index.js",
Expand Down
5 changes: 3 additions & 2 deletions packages/custom-jsdoc-tags/src/cem-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ export function customJSDocTagsPlugin(
component[propName] = cemTag;
}
});

},
packageLinkPhase: () => {
logGreen(
"[custom-jsdoc-tags] - Custom Elements Manifest updated.",
"[cem-expanded-types] - Custom Elements Manifest updated.",
options.hideLogs,
);
},
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-rules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.0.1

- Fixed async file output

## 1.0.0

- Initial release
4 changes: 2 additions & 2 deletions packages/eslint-rules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-eslint-rule-generator",
"version": "1.0.0",
"version": "1.0.1",
"description": "A tool for generating eslint rules for your custom elements.",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -29,7 +29,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.7.1"
"@prettier/sync": "^0.5.2"
},
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/expanded-types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.3.2

- Removed duplicate logs

## 1.3.1

- Fixed build error for "path" import
Expand Down
2 changes: 1 addition & 1 deletion packages/expanded-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cem-plugin-expanded-types",
"version": "1.3.1",
"version": "1.3.2",
"description": "A CEM Analyzer plugin to add expanded TypeScript types to the Custom Elements Manifest",
"main": "index.js",
"module": "index.js",
Expand Down
10 changes: 6 additions & 4 deletions packages/expanded-types/src/cem-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ export function expandTypesPlugin(
name: "expand-types-plugin",
collectPhase,
analyzePhase,
packageLinkPhase: () => {
logGreen(
"[cem-expanded-types] - Custom Elements Manifest updated.",
options.hideLogs,
);
},
};
}

Expand Down Expand Up @@ -254,10 +260,6 @@ function analyzePhase({ ts, node, moduleDoc, context }: any) {
}

updateExpandedTypes(component, context);
logGreen(
"[cem-expanded-types] - Custom Elements Manifest updated.",
options.hideLogs,
);
}

function getComponent(node: any, moduleDoc: any) {
Expand Down
4 changes: 4 additions & 0 deletions packages/jet-brains-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.6.2

- Fixed async file output

## 1.6.1

- Fixed `referenceTemplate` mapping
Expand Down
4 changes: 2 additions & 2 deletions packages/jet-brains-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-jet-brains-integration",
"version": "1.6.1",
"version": "1.6.2",
"description": "Tools for integrating web components/custom elements into JetBrains IDEs",
"main": "index.js",
"module": "index.js",
Expand All @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/break-stuff/cem-tools/blob/main/packages/jet-brains-integration/README.md",
"dependencies": {
"prettier": "^2.8.0"
"@prettier/sync": "^0.5.2"
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.6.3",
Expand Down
4 changes: 4 additions & 0 deletions packages/jsx-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.5.2

- Fixed async file output

## 1.5.1

- Fixed event names
Expand Down
4 changes: 2 additions & 2 deletions packages/jsx-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-jsx-integration",
"version": "1.5.1",
"version": "1.5.2",
"description": "Tools for integrating custom elements into JSX projects",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -29,7 +29,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.7.1"
"@prettier/sync": "^0.5.2"
},
"keywords": [
"custom-elements",
Expand Down
4 changes: 4 additions & 0 deletions packages/lazy-loader/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.3.1

- Fixed async file output

## 1.3.0

- Added the ability to hide logs
Expand Down
4 changes: 2 additions & 2 deletions packages/lazy-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-lazy-loader",
"version": "1.3.0",
"version": "1.3.1",
"description": "A tool for generating an entry point for lazy-loading custom elements/web components.",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -28,7 +28,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.4.1"
"@prettier/sync": "^0.5.2"
},
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/react-wrappers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.6.6

- Fixed async file output

## 1.6.5

- Fixed casing for camel-case event names
Expand Down
4 changes: 2 additions & 2 deletions packages/react-wrappers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-react-wrappers",
"version": "1.6.5",
"version": "1.6.6",
"description": "A tool for generating react-compatible wrappers for custom elements",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -30,7 +30,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.7.1"
"@prettier/sync": "^0.5.2"
},
"keywords": [
"custom-elements",
Expand Down
4 changes: 4 additions & 0 deletions packages/solidjs-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.8.1

- Fixed async file output

## 1.8.0

- Added support for [custom directives](https://docs.solidjs.com/configuration/typescript#custom-directives)
Expand Down
4 changes: 2 additions & 2 deletions packages/solidjs-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-solidjs-integration",
"version": "1.8.0",
"version": "1.8.1",
"description": "Tools for integrating custom elements into SolidJS",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.7.1"
"@prettier/sync": "^0.5.2"
},
"keywords": [
"custom-elements",
Expand Down
4 changes: 4 additions & 0 deletions packages/svelte-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.1.1

- Fixed async file output

## 1.1.0

- Added the ability to hide logs
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-svelte-integration",
"version": "1.1.0",
"version": "1.1.1",
"description": "Tools for integrating custom elements into a Svelte project",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.7.1"
"@prettier/sync": "^0.5.2"
},
"keywords": [
"custom-elements",
Expand Down
4 changes: 4 additions & 0 deletions packages/vs-code-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.4.1

- Fixed async file output

## 1.4.0

- Added the ability to generate your own files
Expand Down
4 changes: 2 additions & 2 deletions packages/vs-code-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-vs-code-integration",
"version": "1.4.0",
"version": "1.4.1",
"description": "Tools for integrating web components/custom elements into VS Code",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -34,7 +34,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.7.1"
"@prettier/sync": "^0.5.2"
},
"keywords": [
"custom-elements",
Expand Down
4 changes: 4 additions & 0 deletions packages/vuejs-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.3.2

- Fixed async file output

## 1.3.1

- Fixed event name format for JSX types
Expand Down
4 changes: 2 additions & 2 deletions packages/vuejs-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-element-vuejs-integration",
"version": "1.3.1",
"version": "1.3.2",
"description": "Types for integrating custom elements into Vue.js projects",
"main": "index.js",
"module": "index.js",
Expand Down Expand Up @@ -29,7 +29,7 @@
"tsup": "^7.1.0"
},
"dependencies": {
"prettier": "^2.7.1"
"@prettier/sync": "^0.5.2"
},
"keywords": [
"custom-elements",
Expand Down
Loading

0 comments on commit 940144c

Please sign in to comment.