Package Details: js-beautify 1.6.4-1

Git Clone URL: https://aur.archlinux.org/js-beautify.git (read-only)
Package Base: js-beautify
Description: Beautify JavaScript/JSON (jsbeautifier.org)
Upstream URL: http://jsbeautifier.org/
Licenses: MIT
Submitter: tokland
Maintainer: tokland
Last Packager: tokland
Votes: 25
Popularity: 1.944717
First Submitted: 2010-12-04 22:02
Last Updated: 2016-10-25 19:48

Latest Comments

yan12125 commented on 2016-08-18 10:36

Could you update to 1.6.3?

tokland commented on 2015-09-18 09:03

@simon04: I forgot to commit the changes, done.

simon04 commented on 2015-09-18 08:56

You seem to have forgotten to run `mksrcinfo` before committing/pushing. The dependencies as well as the version are still out of date …

tokland commented on 2015-09-15 17:18

@simon04: updated using npm2arch, thx!

simon04 commented on 2015-09-15 13:13

This is as simple as installing https://aur.archlinux.org/packages/nodejs-npm2arch and running `npm2PKGBUILD js-beautify` afterwards.

tokland commented on 2015-09-15 11:40

No reason other than I didn't know about it. If you can provide the PKGBUILD, I'll be grateful!

simon04 commented on 2015-09-14 12:10

* Version 1.5.10 is out.
* Please mention jsbeautifier.org in the description (allows to find this package when searching by the URL of the online converter)
* Is there a reason why you don't use https://aur.archlinux.org/packages/nodejs-npm2arch?

tokland commented on 2015-01-31 20:47

@prurigro: It seems the old github repository points to the new, so let's just replace the PKGBUILD with the one you provided.

prurigro commented on 2015-01-31 07:22

@tokland: Hmm true, it looks like there are python and node versions both available in the same package. I'm not sure if they're both equivalent, but I do notice the python one lacks the html and css shortcuts. Would there be any sense to package both together on that note?

tokland commented on 2015-01-29 19:11

It looks like it's a complete rewrite, with different dependencies, options, etc. Question: does it make sense to create a separate AUR package?

prurigro commented on 2015-01-29 16:48

Hey, I've written an updated js-beautify package for the current version that you can feel free to use compliments of the ArchAssault project- Cheers!

https://ezcrypt.it/A8An#ziBTlHLEI0aht3zxGHGc7J0v

temoto commented on 2013-10-02 14:08

Does not build

% pacaur -S js-beautify
:: Package(s) js-beautify not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages (1): js-beautify-v1.4.0.5.g4a3263b-1

:: Proceed with installation? [Y/n]

:: View js-beautify PKGBUILD? [Y/n] n
:: Building js-beautify package...
==> Making package: js-beautify v1.4.0.5.g4a3263b-1 (Wed Oct 2 18:06:45 MSK 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning js-beautify git repo...
Cloning into bare repository '/tmp/pacaurtmp-temoto/js-beautify/js-beautify'...
remote: Counting objects: 5008, done.
remote: Compressing objects: 100% (2674/2674), done.
remote: Total 5008 (delta 2672), reused 4569 (delta 2289)
Receiving objects: 100% (5008/5008), 1.80 MiB | 767.00 KiB/s, done.
Resolving deltas: 100% (2672/2672), done.
Checking connectivity... done
==> Validating source files with md5sums...
js-beautify ... Skipped
==> Extracting sources...
-> Creating working copy of js-beautify git repo...
Cloning into 'js-beautify'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Entering fakeroot environment...
==> Starting package()...
install: cannot create regular file ‘/tmp/pacaurtmp-temoto/js-beautify/pkg/js-beautify/usr/bin/js-beautify’: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
:: js-beautify cleaned
pacaur -Sy js-beautify 1.86s user 0.66s system 14% cpu 16.955 total

tokland commented on 2013-06-28 16:00

Thanks, I had no idea "source" understood git links. Updated to your PKGBUILD only changing the commit (to the last one).

alzeih commented on 2013-06-28 08:33

Sure: http://sprunge.us/fHUg

tokland commented on 2013-06-26 20:23

hi @alzeih, thanks for the tip. Could you modify the PKGBUILD to take a fixed commit? as you say to take the last one would be better for a -git package.

alzeih commented on 2013-06-26 13:34

New PKGBUILD if helpful: http://sprunge.us/jGYU

Technically probably for a package called js-beautify-git though, I haven't tied it to a release.

tokland commented on 2012-06-09 12:47

Updated to the last commit in master.

jpike commented on 2012-06-09 09:24

The git commit referenced in the PKGBUILD no longer exists.

I had to change it to "master", then it worked fine. Bit bleeding edge I guess.

Anonymous comment on 2011-11-13 07:45

tokland: Just ran an update and it installed cleanly. Thanks :).

tokland commented on 2011-11-12 16:58

Andrew: that's weird, the commit ID I was using it's not there anymore so it just used branch master as default, where things have changed. I have uploaded a new PKGBUILD, can you test?

Anonymous comment on 2011-11-12 16:38

I couldn't install it, had to change the "install" line to this:

python setup.py -q install --root="${pkgdir}"
install -m 755 ${srcdir}/${pkgname}/python/js-beautify $BINDIR/js-beautify || return 1

Both lines were taken from other PKGBUILDs, though, so I can't really be sure if everything's alright with them.

tokland commented on 2011-05-24 21:43

uses new python script, the binary path is the same: /usr/bin/js-beautify

tokland commented on 2011-05-24 21:33

btw, I just realized the python script that the first user mentioned is in fact the official one:

https://github.com/einars/js-beautify/blob/master/attic/readme.txt

March 27, 2011
"Here lay the scripts that were useful at a time, now they are kind of
obsoleted by the python script, but you may still find them useful."

So I guess I'll just this one and get rid of rhino.

tokland commented on 2011-05-24 21:21

1) rhino: indeed, I was unaware of that, I made a /usr/local/bin/rhino long ago and I forgot.

depends=('rhino-with-interpreter')

2) The paths have changed, but I'd prefer still to copy beautify-cl.js. Try

mkdir -p $SHAREDIR $BINDIR || return 1
install -m 644 ${srcdir}/${pkgname}/*.js $SHAREDIR || return 1
install -m 644 ${srcdir}/${pkgname}/attic/beautify-cl/beautify-cl.js $SHAREDIR || return 1
install -m 755 ${srcdir}/js-beautify.sh $BINDIR/js-beautify || return 1
}

this works for me

louac commented on 2011-05-24 19:58

I was able to run it after:

1) modified /usr/bin/js-bautify as exec rhino $SHARE/beautify.js -d "$SHARE" "$@" __and not__ exec rhino $SHARE/beautify_cl.js -d "$SHARE" "$@"
2) chmod ou+x -R /usr/share/js-beautify/

install rhino_with_interpreter from aur (rhino does not provide rhino executable)

or I missed something ?



lolilolicon commented on 2011-05-04 13:04

FYI, the python3 version depends on python3 only:
https://github.com/einars/js-beautify/raw/master/python/jsbeautifier.py