marko-js-archive / marko-prettyprint Goto Github PK
View Code? Open in Web Editor NEWPrettyprint Marko template files in the syntax of your choice
License: MIT License
Prettyprint Marko template files in the syntax of your choice
License: MIT License
Input template:
<for(element in blah)>
<${element.foo}>
<include("foo")/>
</${element.foo}>
</for>
Bad output:
for(element in blah)
${element.foo}
include("foo")
Expected output:
for(element in blah)
<${element.foo}>
<include("foo")/>
</${element.foo}>
{
"syntax": "concise",
"maxLineLength": 80,
"indentStyle": "space",
"indentSize": 4,
"indent": " " /* alternative to indentStyle/indentSize */
}
Related: #4
Scriptlets are not supported
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
If youโre interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didnโt already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didnโt touch job or matrix configurations because these tend to be quite specific and complex, and itโs difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what youโre doing it may require additional work or may not be applicable at all. Weโre also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, Iโm a humble robot and wonโt feel rejected ๐ค
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 (HTML)
class {
constructor() {
this.state = {
count:0
};
}
increment() {
this.state.count++;
}
}
<div>The current count is ${state.count}</div>
<button on-click('increment')>+1</button>
Out (target:concise):
class [
{
constructor() {
this.state = {
count:0
};
}
increment() {
this.state.count++;
}
}
]
div -- The current count is ${state.count}
button on-click('increment') -- +1
Branch | Build failing ๐จ |
---|---|
Dependency | marko |
Current Version | 4.2.2 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
As marko is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itโs very likely also breaking them.
I recommend you give this issue a very high priority. Iโm sure you can resolve this ๐ช
The new version differs by 3 commits .
ff9334f
4.2.3
fc5c04c
Updated CHANGELOG.md
698746f
Fixes #649 - New line always added to textarea and other elements for single line/delimited HTML blocks
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot ๐ด
Thanks for making this tool!
It would be great if you could configure this with something like maxEmptyLines
to have it preserve empty lines in some cases. In its current state, everything becomes so overly compact removing every empty line in the template.
Branch | Build failing ๐จ |
---|---|
Dependency | mocha |
Current Version | 3.3.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As mocha is โonlyโ a devDependency of this project it might not break production or downstream projects, but โonlyโ your build or test tools โ preventing new deploys or publishes.
I recommend you give this issue a high priority. Iโm sure you can resolve this ๐ช
Mocha is now moving to a quicker release schedule: when non-breaking changes are merged, a release should happen that week.
This week's highlights:
allowUncaught
added to commandline as --allow-uncaught
(and bugfixed)--no-warnings
and --trace-warnings
flags (@sonicdoe)The new version differs by 9 commits0.
7554b31
Add Changelog for v3.4.0
9f7f7ed
Add --trace-warnings
flag
92561c8
Add --no-warnings
flag
ceee976
lint test/integration/fixtures/simple-reporter.js
dcfc094
Revert "use semistandard
directly"
93392dd
no special case for macOS running Karma locally
4d1d91d
--allow-uncaught cli option
fb1e083
fix allowUncaught in browser
4ed3fc5
Add license report and scan status
false
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot ๐ด
Branch | Build failing ๐จ |
---|---|
Dependency | js-beautify |
Current Version | 1.7.4 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
js-beautify 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 24 commits.
cebf32b
1.7.5
dc4c9dc
Python 1.7.5
cda60ff
Bump version numbers in README.md
788cae0
Update Changelog for 1.7.5
ac3b099
Merge pull request #1279 from Hirse/whitespace-important
f6ffd38
Merge branch 'master' into whitespace-important
7a008ce
Fix to use correct variable name. js_source_text > source_text
a4d7bc6
Improve invalid option output
6b60339
Merge pull request #1281 from sandrosc/test-for-preserve-newlines
c662b5a
new test for preserve new lines
49aa620
Merge branch 'master' into whitespace-important
873da98
Merge pull request #1277 from Coburn37/master
b411058
Merge branch 'master' into master
fb3e48d
Merge branch 'master' into whitespace-important
4c54364
Add another space before inline comment
There are 24 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 ๐ด
It would be great if we can have an option to keep the empty lines.
Example input:
<var config=data.config/>
<var pageQuery=data.pageQuery/>
<div class="reset-link" if(filterGroup.resetLink)>
<shui-textual-display model=filterGroup.resetLink/>
</div>
Current output:
<var config=data.config/>
<var pageQuery=data.pageQuery/>
<div class="reset-link" if(filterGroup.resetLink)>
<shui-textual-display model=filterGroup.resetLink/>
</div>
Output (Keep the empty lines):
<var config=data.config/>
<var pageQuery=data.pageQuery/>
<div class="reset-link" if(filterGroup.resetLink)>
<shui-textual-display model=filterGroup.resetLink/>
</div>
Branch | Build failing ๐จ |
---|---|
Dependency | prettier |
Current Version | 1.8.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
prettier 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.
There is a collection of frequently asked questions. If those donโt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot ๐ด
Follow up from marko-js/marko-migrate#10
It would be useful to have the max-line-length style setting exposed for easier marko migrations from v2 to v3.
Branch | Build failing ๐จ |
---|---|
Dependency | mocha |
Current Version | 3.2.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As mocha is โonlyโ a devDependency of this project it might not break production or downstream projects, but โonlyโ your build or test tools โ preventing new deploys or publishes.
I recommend you give this issue a high priority. Iโm sure you can resolve this ๐ช
Thanks to all our contributors, maintainers, sponsors, and users! โค๏ธ
As highlights:
--inspect-brk
on command-line (@igwejk)semistandard
directly (@kt3k)The new version differs by 89 commits0.
fb1687e
:ship: Release v3.3.0
1943e02
Add Changelog for v3.3.0
861e968
Refactor literal play-icon hex code to a var
1d3c5bc
Fix typo in karma.conf.js
9bd9389
Fix spec paths in test HTML files
0a93024
Adds tests for loading reporters w/ relative/absolute paths (#2773)
73929ad
Comment special treatment of '+' in URL query parsing
e2c9514
Merge pull request #2769 from igwejk/support_inspect_break_in_opts
038c636
Support --inspect-brk
on command-line
b4ebabd
Merge pull request #2727 from lamby/reproducible-build
882347b
Please make the build reproducible.
a2fc76c
Merge pull request #2703 from seppevs/cover_utils_some_fn_with_tests
ed61cd0
cover .some() function in utils.js with tests
f42cbf4
Merge pull request #2701 from craigtaub/landingSpec
6065242
use stubbed symbol
There are 89 commits in total.
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot ๐ด
0.15.0
to 0.15.1
.๐จ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
editorconfig 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.
There is a collection of frequently asked questions. If those donโt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot ๐ด
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.