-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from yoichiro/support-transforming-static-files
Support transforming static files
- Loading branch information
Showing
9 changed files
with
256 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Integration Test `alternative` Page</title> | ||
</head> | ||
<body> | ||
<div>{{> static }}</div> | ||
<div> | ||
<a href="index.html">Go to the `index` page.</a> | ||
</div> | ||
</body> | ||
</html> |
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,10 +1,14 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Integration Test Web Page</title> | ||
<title>Integration Test `index` Page</title> | ||
<script type="module" src="src/app.js"></script> | ||
</head> | ||
<body> | ||
<div id="app">This will be replaced dynamically.</div> | ||
<div>{{> static }}</div> | ||
<div> | ||
<a href="alternative.html">Go to the `alternative` page.</a> | ||
</div> | ||
</body> | ||
</html> |
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 @@ | ||
<p>This is {{ upper-case keyword }} partial.</p> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@yoichiro/vite-plugin-handlebars", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"author": { | ||
"name": "Yoichiro Tanaka", | ||
"email": "[email protected]", | ||
|
@@ -25,10 +25,13 @@ | |
"node": "^18.0.0 || >=20.0.0" | ||
}, | ||
"scripts": { | ||
"type-check": "tsc --noEmit", | ||
"build": "tsc", | ||
"prepare": "npm run build", | ||
"test": "vitest", | ||
"integration-test": "npm run build && vite --config integration/vite.config.ts" | ||
"integration-dev": "npm run build && vite --config integration/vite.config.ts", | ||
"integration-build": "npm run build && vite build --config integration/vite.config.ts", | ||
"integration-preview": "npm run build && vite preview --config integration/vite.config.ts" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"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
Oops, something went wrong.