jst.git
2 years agoAllow to output either raw or transformed AST, fix several transformation bugs with... master
Nick Downing [Fri, 14 Jan 2022 11:10:31 +0000 (22:10 +1100)]
Allow to output either raw or transformed AST, fix several transformation bugs with "...arguments" syntax caused by lack of return statements in transform.js

2 years agoAllow option of raw AST output
Nick Downing [Fri, 14 Jan 2022 10:54:46 +0000 (21:54 +1100)]
Allow option of raw AST output

2 years agoRemove parentheses around interpolated value since almost always JSON
Nick Downing [Wed, 12 Jan 2022 14:20:49 +0000 (01:20 +1100)]
Remove parentheses around interpolated value since almost always JSON

2 years agoChange String.replace() to replaceAll() everywhere (this was a nasty bug), implement...
Nick Downing [Wed, 12 Jan 2022 13:47:14 +0000 (00:47 +1100)]
Change String.replace() to replaceAll() everywhere (this was a nasty bug), implement string interpolation from server-side to client-side code in a script { }

2 years agoImprove how the uglified content of script { } tags is generated
Nick Downing [Wed, 12 Jan 2022 07:34:56 +0000 (18:34 +1100)]
Improve how the uglified content of script { } tags is generated

2 years agoAllow option of either astring (normal) or UglifyJS (minified) output
Nick Downing [Wed, 12 Jan 2022 07:16:10 +0000 (18:16 +1100)]
Allow option of either astring (normal) or UglifyJS (minified) output

2 years agoUpdate transform walker with latest node types
Nick Downing [Sun, 9 Jan 2022 02:05:19 +0000 (13:05 +1100)]
Update transform walker with latest node types

2 years agoFix extends keyword bug (superclass name was interpreted as an HTML expression)
Nick Downing [Sun, 9 Jan 2022 01:36:19 +0000 (12:36 +1100)]
Fix extends keyword bug (superclass name was interpreted as an HTML expression)

2 years agoUpgrade astring to 1.8.1 and uglify-es to uglify-js 3.14.5
Nick Downing [Sun, 9 Jan 2022 00:21:29 +0000 (19:21 -0500)]
Upgrade astring to 1.8.1 and uglify-es to uglify-js 3.14.5

2 years agoUpgrade to https://github.com/acornjs/acorn.git commit 84eda6bf
Nick Downing [Sun, 9 Jan 2022 00:17:50 +0000 (19:17 -0500)]
Upgrade to https://github.com/acornjs/acorn.git commit 84eda6bf

2 years agoChange from pnpm to npm, add ./link.sh shortcut for npm style package linking
Nick Downing [Mon, 3 Jan 2022 03:59:04 +0000 (14:59 +1100)]
Change from pnpm to npm, add ./link.sh shortcut for npm style package linking

4 years agoChange yarn to pnpm, add commander dependency, fix command line help slightly
Nick Downing [Mon, 3 Feb 2020 15:56:03 +0000 (02:56 +1100)]
Change yarn to pnpm, add commander dependency, fix command line help slightly

5 years agoMinor consistency fixes
Nick Downing [Tue, 27 Nov 2018 03:39:07 +0000 (14:39 +1100)]
Minor consistency fixes

5 years agoFix slight Markdown booboo in README.md
Nick Downing [Mon, 26 Nov 2018 05:05:17 +0000 (16:05 +1100)]
Fix slight Markdown booboo in README.md

5 years agoPublish version 0.1.5 to NPM
Nick Downing [Mon, 26 Nov 2018 04:43:00 +0000 (15:43 +1100)]
Publish version 0.1.5 to NPM

5 years agoSplit out README.md material that belongs in jst_cache.git, improve the rest
Nick Downing [Sun, 25 Nov 2018 08:56:06 +0000 (19:56 +1100)]
Split out README.md material that belongs in jst_cache.git, improve the rest

5 years agoRemove caching facility, jst() now does bare text-to-text conversion, add CLI
Nick Downing [Tue, 20 Nov 2018 00:19:14 +0000 (11:19 +1100)]
Remove caching facility, jst() now does bare text-to-text conversion, add CLI

5 years agoDo our own HTML escaping using replace(), makes the escaping less aggressive
Nick Downing [Mon, 19 Nov 2018 06:50:16 +0000 (17:50 +1100)]
Do our own HTML escaping using replace(), makes the escaping less aggressive

5 years agoPublish version 0.1.4 to NPM
Nick Downing [Sun, 18 Nov 2018 13:01:16 +0000 (00:01 +1100)]
Publish version 0.1.4 to NPM

5 years agoUpdate to disk_build.git commit b8ff724
Nick Downing [Sun, 18 Nov 2018 11:26:29 +0000 (22:26 +1100)]
Update to disk_build.git commit b8ff724

5 years agoSplit out disk date checking stuff into a helper module, @ndcode/disk_build
Nick Downing [Sat, 17 Nov 2018 23:27:42 +0000 (10:27 +1100)]
Split out disk date checking stuff into a helper module, @ndcode/disk_build

5 years agoSwitch to clean-css parser inside style {...}, removing need for quoting of CSS
Nick Downing [Sat, 17 Nov 2018 13:40:08 +0000 (00:40 +1100)]
Switch to clean-css parser inside style {...}, removing need for quoting of CSS

5 years agoAdd automatic uglification of script {...} content
Nick Downing [Sat, 17 Nov 2018 01:48:59 +0000 (12:48 +1100)]
Add automatic uglification of script {...} content

5 years agoRationalize calling interface to pass only root, dirname is implied by pathname
Nick Downing [Fri, 16 Nov 2018 13:16:57 +0000 (00:16 +1100)]
Rationalize calling interface to pass only root, dirname is implied by pathname

5 years agoChange name from js_template to org scoped @ndcode/jst
Nick Downing [Sun, 11 Nov 2018 04:47:39 +0000 (15:47 +1100)]
Change name from js_template to org scoped @ndcode/jst

5 years agoPublishable version
Nick Downing [Sat, 10 Nov 2018 11:11:46 +0000 (22:11 +1100)]
Publishable version

5 years agoImprovements and corrections to the README.md text
Nick Downing [Tue, 30 Oct 2018 14:25:26 +0000 (01:25 +1100)]
Improvements and corrections to the README.md text

5 years agoAdd LICENSE and README.md, add license information to every source file
Nick Downing [Tue, 30 Oct 2018 11:42:54 +0000 (22:42 +1100)]
Add LICENSE and README.md, add license information to every source file

5 years agoMake the root directory and current directory available as _root and _dirname
Nick Downing [Tue, 30 Oct 2018 01:13:10 +0000 (12:13 +1100)]
Make the root directory and current directory available as _root and _dirname

5 years agoFix a bug affecting relative path resolution, change _req() to _require(), add abilit...
Nick Downing [Mon, 29 Oct 2018 10:12:57 +0000 (21:12 +1100)]
Fix a bug affecting relative path resolution, change _req() to _require(), add ability for js_template() caller to pass in arbitrary extra symbols and values

5 years agoImprove _req() resolution by writing a .js file and then using node.js require()...
Nick Downing [Sun, 21 Oct 2018 23:58:52 +0000 (10:58 +1100)]
Improve _req() resolution by writing a .js file and then using node.js require() to get the exact correct behaviour, reuse the .js file without rebuilding where appropriate, optimize '...' strings in HTML by escaping them in the compiler

5 years agoTurn off BuildCache diagnostics, and do our own diagnostic only if file present
Nick Downing [Sun, 21 Oct 2018 09:39:53 +0000 (20:39 +1100)]
Turn off BuildCache diagnostics, and do our own diagnostic only if file present

5 years agoUpdate to build_cache.git commit 02de2a2
Nick Downing [Sat, 20 Oct 2018 03:52:49 +0000 (14:52 +1100)]
Update to build_cache.git commit 02de2a2

5 years agoAdd _root parameter, add lightweight immediately awaited async wrapper function
Nick Downing [Mon, 15 Oct 2018 02:25:25 +0000 (13:25 +1100)]
Add _root parameter, add lightweight immediately awaited async wrapper function

5 years agoAdd build cache and path resolution scheme, fix packaging
Nick Downing [Sun, 14 Oct 2018 13:45:34 +0000 (00:45 +1100)]
Add build cache and path resolution scheme, fix packaging

5 years agoImplement script tag (outputs JavaScript body as a string; slightly minified)
Nick Downing [Sun, 14 Oct 2018 12:29:30 +0000 (23:29 +1100)]
Implement script tag (outputs JavaScript body as a string; slightly minified)

5 years agoImplement IDs with syntax like "div.my-class#my-id() {}"
Nick Downing [Sun, 14 Oct 2018 12:01:23 +0000 (23:01 +1100)]
Implement IDs with syntax like "div.my-class#my-id() {}"

5 years agoImplement classes with syntax like "div.my-class.my-class2() {}", improve handling...
Nick Downing [Sun, 14 Oct 2018 11:52:41 +0000 (22:52 +1100)]
Implement classes with syntax like "div.my-class.my-class2() {}", improve handling of reserved words in tag or attributes, allowing quotes if still not handled

5 years agoAdd HTML escaping
Nick Downing [Sun, 14 Oct 2018 07:05:44 +0000 (18:05 +1100)]
Add HTML escaping

5 years agoInitial commit of JS template modifications
Nick Downing [Sun, 14 Oct 2018 03:47:16 +0000 (14:47 +1100)]
Initial commit of JS template modifications

5 years agoAdd .gitignore
Nick Downing [Tue, 30 Oct 2018 07:34:21 +0000 (18:34 +1100)]
Add .gitignore

5 years agoPristine copy of just the acorn subdirectory from acorn.git commit 56fce39
Nick Downing [Tue, 30 Oct 2018 07:25:44 +0000 (18:25 +1100)]
Pristine copy of just the acorn subdirectory from acorn.git commit 56fce39