Code Monkey home page Code Monkey logo

parcel-plugin-htl's Introduction

Parcel Plugin HTL

This is a plugin for Parcel which compiles *.htl (i.e. Sightly) templates into dist/*.js output.

Status

THIS PROJECT IS DEPRECATED AND NO LONGER MAINTAINED

parcel-plugin-htl's People

Contributors

dominique-pfister avatar greenkeeper[bot] avatar kptdobe avatar semantic-release-bot avatar snyk-bot avatar stefan-guggisberg avatar trieloff avatar tripodsan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

parcel-plugin-htl's Issues

Apply HTL global scope changes

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}.

Remove pipeline specifics from parcel plugin

The current htl plugin is responsible for:

  • turning the .htl into a javascript function that produces the html
  • loading and executing the pre.js
  • loading the pipeline
  • wrapping everything into an openwhisk action

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

An in-range update of snyk is breaking the build 🚨

The dependency snyk was updated from 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.

Status Details
  • ❌ build: * build - Failed

Release Notes for v1.146.0

1.146.0 (2019-04-02)

Features

  • read targetFramework from assets file (8794722)
Commits

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

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @semantic-release/npm is breaking the build 🚨

The devDependency @semantic-release/npm was updated from 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.

Status Details
  • ❌ build: * build - Failed

Release Notes for v5.1.7

5.1.7 (2019-04-14)

Bug Fixes

  • package: update aggregate-error to version 3.0.0 (46ec5ee)
Commits

The new version differs by 1 commits.

  • 46ec5ee fix(package): update aggregate-error to version 3.0.0

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Build fails due to missing Templates

⏳  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

Unify unit testing, remove shelljs

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.

pre.js handling is broken

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.

An in-range update of @adobe/htlengine is breaking the build 🚨

The dependency @adobe/htlengine was updated from 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.

Status Details
  • ❌ build: * build - Failed

Release Notes for v2.1.4

2.1.4 (2019-04-11)

Bug Fixes

  • compiler: Support for identifiers with colon character and isolate global variables from user d (f13ed75), closes #15
Commits

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

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of parcel-bundler is breaking the build 🚨

The dependency parcel-bundler was updated from 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.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Commits

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

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

[Regression] HTL expressions in attributes are escaped

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>

Test don't terminate

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.

An in-range update of snyk is breaking the build 🚨

The devDependency snyk was updated from 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.

Status Details
  • ❌ build: * build - Failed

Release Notes for v1.171.0

1.171.0 (2019-06-02)

Features

  • add branch and pkg name to monitor analytics (b91d2ae)
Commits

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

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Respect return value of 'pre' as new payload

In order to avoid parameter re-assign, it should be possible to return the new payload. eg:

Simple

function pre(payload) {
  const myPayload = Object.assign({}, payload);
  myPayload.resource.time = `${new Date()}`;
  return myPayload;
}

Async

async function pre(payload) {
  const myPayload = Object.assign({}, payload);
  myPayload.resource.time = `${new Date()}`;
  return myPayload;
}

Promise

function pre(payload) {
  return new Promise(resolve => {
    const myPayload = Object.assign({}, payload);
    myPayload.resource.time = `${new Date()}`;
    resolve(myPayload);
  });
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.