-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(extend-lion-docs): support multi line exports
- Loading branch information
Showing
5 changed files
with
135 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'rocket-preset-extend-lion-docs': patch | ||
--- | ||
|
||
Support multi line exports and comments in exports | ||
|
||
```js | ||
export { | ||
// html, | ||
calculateSum, | ||
offsetValue, | ||
} from './src/helpers.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
7 changes: 7 additions & 0 deletions
7
...ges-node/rocket-preset-extend-lion-docs/test-node/fixtures/multi-line/@lion/core/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export { | ||
// | ||
html, | ||
CSSResult, | ||
// something, | ||
adoptStyles, | ||
} from 'lit'; |
54 changes: 54 additions & 0 deletions
54
...node/rocket-preset-extend-lion-docs/test-node/fixtures/multi-line/@lion/core/package.json
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,54 @@ | ||
{ | ||
"name": "@lion/core", | ||
"version": "0.5.0", | ||
"description": "Vertically stacked list of invokers that can be clicked to reveal or hide content associated with them.", | ||
"license": "MIT", | ||
"author": "ing-bank", | ||
"homepage": "https://github.com/ing-bank/lion/", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ing-bank/lion.git", | ||
"directory": "packages/accordion" | ||
}, | ||
"main": "index.js", | ||
"module": "index.js", | ||
"files": [ | ||
"*.d.ts", | ||
"*.js", | ||
"custom-elements.json", | ||
"docs", | ||
"src", | ||
"test", | ||
"test-helpers", | ||
"translations", | ||
"types" | ||
], | ||
"scripts": { | ||
"custom-elements-manifest": "custom-elements-manifest analyze --litelement --exclude \"docs/**/*\" \"test-helpers/**/*\"", | ||
"debug": "cd ../../ && npm run debug -- --group accordion", | ||
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group accordion", | ||
"debug:webkit": "cd ../../ && npm run debug:webkit -- --group accordion", | ||
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../", | ||
"prepublishOnly": "npm run publish-docs && npm run custom-elements-manifest", | ||
"test": "cd ../../ && npm run test:browser -- --group accordion" | ||
}, | ||
"sideEffects": [ | ||
"lion-accordion.js" | ||
], | ||
"dependencies": { | ||
"@lion/core": "0.17.0" | ||
}, | ||
"keywords": [ | ||
"accordion", | ||
"lion", | ||
"web-components" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"customElementsManifest": "custom-elements.json", | ||
"exports": { | ||
".": "./index.js", | ||
"./docs/": "./docs/" | ||
} | ||
} |
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