This is a plugin for Parcel which compiles *.htl
(i.e. Sightly) templates into dist/*.js
output.
THIS PROJECT IS DEPRECATED AND NO LONGER MAINTAINED
HTL/Sightly support for Parcel
License: Apache License 2.0
modify circleci to use rules described in adobe/project-helix#278
Is there a way for us to make it
implicit, so that all properties within it
just become the global scope within HTL? That way {it.request.path}
would become simply {request.path}
.
As mentioned in https://github.com/adobe/project-helix/issues/267, it should be super easy to write a pre.js
without knowing the complexity of the pipeline.
pipeline autodetects pre in simple form like:
module.exports = function pre(payload) {
payload.resource.time = `${new Date()}`;
}
The current htl plugin is responsible for:
pre.js
The plugin should only be responsible to create the JS function, and the rest should be handled by hlx build
. this allows to use other scripts like JST or simple transformers needed for JSON rendering. see adobe/helix-cli#70
the current function returns:
{
body: ...
}
but should better return:
{
response: {
body: ...
}
}
to be conform with https://github.com/adobe/helix-pipeline/blob/master/docs/context.schema.json
1.145.0
to 1.146.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
snyk is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 5 commits.
29d3d89
Merge pull request #425 from snyk/feat/bump-snyk-nuget-plugin
8794722
feat: read targetFramework from assets file
be7a0f1
Merge pull request #420 from snyk/test/assert-targetfile-sent-to-monitor
44cb8b5
chore: Update return types for plugins
4c091ec
Merge pull request #410 from snyk/fix/parallel-builds
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
as discussed in adobe/helix-cli#295,
the processing of the HT(M)L causes more harm than benefit, and we revert #16 again.
the inlined code looks a bit ugly...better to use a file.
https://github.com/adobe/parcel-plugin-htl/blob/0.3.0-class/HTLAsset.js#L57-L90
5.1.6
to 5.1.7
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
@semantic-release/npm is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 1 commits.
46ec5ee
fix(package): update aggregate-error to version 3.0.0
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
β³ Building html.htl...
π¨ /code/project-helix/prototypes/parcel-plugin-pipeline/test/integration/htl-only/src/html.htl: ENOENT: no such file or directory, open '/code/project-helix/prototypes/parcel-plugin-pipeline/test/integration/htl-only/node_modules/@adobe/parcel-plugin-htl/node_modules/@adobe/htlengine/src/compiler/JSRuntimeTemplate.js'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at TransientCompiler.compile (/code/project-helix/prototypes/parcel-plugin-pipeline/test/integration/htl-only/node_modules/@adobe/parcel-plugin-htl/HTLAsset.js:41:23)
at HTLAsset.parse (/code/project-helix/prototypes/parcel-plugin-pipeline/test/integration/htl-only/node_modules/@adobe/parcel-plugin-htl/HTLAsset.js:64:30)
at HTLAsset.parseIfNeeded (/code/project-helix/prototypes/parcel-plugin-pipeline/test/integration/htl-only/node_modules/parcel-bundler/src/Asset.js:62:29)
at <anonymous>
Depends on adobe/htlengine#3
since the htl scripts are using an already safe markup from the helix-pipeline, it is safe to use the unsafe markup context:-)
Leverage source map support available in htlengine, v1.0.4
The current test setup means we have to maintain two test directories and test cases cannot be merged.
It would be better to call Parcel programmatically and run everything in one single mocha command.
We need good examples, tests and documentation of pre.js
handling, so that @kptdobe can get it to work.
Right now, the tests don't cover pre.js
and the function signature might need some explanation.
use semantic-release plugin to simplify release management
2.1.3
to 2.1.4
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
@adobe/htlengine is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 2 commits.
c34ad47
chore(release): 2.1.4 [skip ci]
f13ed75
fix(compiler): Support for identifiers with colon character and isolate global variables from user d
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
1.9.7
to 1.10.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
parcel-bundler is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 68 commits.
10960f7
1.10.0
4023c84
Fix merging parser plugins in babel 6
6c8c231
Donβt add export proposal syntax by default
78b9e36
Update changelog
5dfef90
Changelog v1.10 (#1949)
6844492
Remove wasm-gc from RustAsset (#2048)
43a0f5e
feat:added no content hashing option to build cli (#1934)
92b5c08
fix security vuln (#1794)
6ab52e8
Add support for Elm assets (#1968)
becfd81
Set up CI with Azure Pipelines (#2047)
45a479c
fix node 6 tests (#2049)
3ed33fd
Added LD+JSON asset and test case (#1936)
d2f5a05
Don't modify script nodes with text/html type (#1924)
a769fa7
Fix windows bugs & tests (#1965)
4bbd84d
General documentation edits. (#2018)
There are 68 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
[email protected] now supports dom document. the dom factory should be enabled if the context contains such a document.
Regression introduced by #19
Run:
hlx demo test
cd test
Edit src/html.htl
and add this line anywhere in the file:
<a href="${it.request.path}">${it.request.path}</a>
Run hlx up
-> the HTML output of the link is: <a href="/$%7Bit.request.path%7D">/index.html</a>
The tests do not terminate. after investigation, I think this has something to do with the parcel bundler that doesn't shutdown all the workers.
payload
and context
as global variablepayload
that report deprecation warning if used@trieloff WDYT?
1.170.0
to 1.171.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
snyk is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 6 commits.
305ac09
Merge pull request #543 from snyk/feat/add_monitor_branch_pname_analytics
b91d2ae
feat: add branch and pkg name to monitor analytics
464b784
Merge pull request #544 from snyk/chore/delete-docker-promo
d82df40
chore: delete expired docker promo
3d66ee6
Merge pull request #534 from snyk/chore/refactor-errors
76b0565
chore: refactor snyk missing api token
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
In order to avoid parameter re-assign, it should be possible to return the new payload. eg:
function pre(payload) {
const myPayload = Object.assign({}, payload);
myPayload.resource.time = `${new Date()}`;
return myPayload;
}
async function pre(payload) {
const myPayload = Object.assign({}, payload);
myPayload.resource.time = `${new Date()}`;
return myPayload;
}
function pre(payload) {
return new Promise(resolve => {
const myPayload = Object.assign({}, payload);
myPayload.resource.time = `${new Date()}`;
resolve(myPayload);
});
}
Similar how parcel processes linked assets in html source (i.e. relative links to CSS/JS),
the htl plugin should also process this similarly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.