hyperscript.org
Advanced tools
Comparing version 0.0.1-alpha0 to 0.0.1-alpha1
@@ -8,6 +8,6 @@ { | ||
], | ||
"version": "0.0.1-alpha0", | ||
"version": "0.0.1-alpha1", | ||
"homepage": "https://hyperscript.org/", | ||
"bugs": { | ||
"url": "https://github.com/bigskysoftware/hyperscript/issues" | ||
"url": "https://github.com/bigskysoftware/_hyperscript/issues" | ||
}, | ||
@@ -20,13 +20,13 @@ "license": "BSD 2-Clause", | ||
], | ||
"main": "", | ||
"unpkg": "dist/hyperscript.min.js", | ||
"main": "dist/_hyperscript.min.js", | ||
"unpkg": "dist/_hyperscript.min.js", | ||
"scripts": { | ||
"test": "mocha-chrome test/index.html", | ||
"dist": "cp -r src/* dist/ && npm run-script uglify && gzip -k -f > dist/hyperscript.min.js.gz && exit", | ||
"dist": "cp -r src/* dist/ && npm run-script uglify && gzip -k -f dist/_hyperscript.min.js > dist/_hyperscript.min.js.gz && exit", | ||
"www": "node scripts/www.js", | ||
"uglify": "uglifyjs -m eval -o dist/hyperscript.min.js dist/hyperscript.js" | ||
"uglify": "uglifyjs -m eval -o dist/_hyperscript.min.js dist/_hyperscript.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/bigskysoftware/hyperscript.git" | ||
"url": "git+https://github.com/bigskysoftware/_hyperscript.git" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
@@ -1,14 +0,21 @@ | ||
# `///_hyperscript` | ||
[![//_hyperscript](https://hyperscript.org/img/light_logo.png "the underscore is silent")](https://hyperscript.org) | ||
*the underscore is silent* | ||
## introduction | ||
hypescript is a small web scripting language based [applescript](https://en.wikipedia.org/wiki/Applescript) and | ||
[hypertalk](https://en.wikipedia.org/wiki/HyperTalk) | ||
`_hyperscript` is a small, open scripting language inspired by [hypertalk](https://hypercard.org/HyperTalk%20Reference%202.4.pdf) | ||
it is a companion project of <https://htmx.org> | ||
## sample | ||
## quickstart | ||
```html | ||
<button hscript="toggle clicked"> | ||
<script src="https://unpkg.com/hyperscript.org@0.0.1-alpha0/dist/hyperscript.min.js"></script> | ||
<script> | ||
_hyperscript.start(); | ||
</script> | ||
<button _="on click toggle .clicked"> | ||
Toggle the "clicked" class on me | ||
@@ -18,6 +25,6 @@ </button> | ||
<div hscript="on mouseOver toggle mouse-over on #foo"> | ||
<div hs="on mouseOver toggle mouse-over on #foo"> | ||
</div> | ||
<div hscript="on click call aJavascriptFunction() then | ||
<div data-hs="on click call aJavascriptFunction() then | ||
wait 10s then | ||
@@ -27,2 +34,13 @@ call anotherJavascriptFunction()"> | ||
</div> | ||
``` | ||
``` | ||
## website & docs | ||
* <https://hyperscript.org> | ||
* <https://hyperscript.org/docs> | ||
## contributing | ||
* please write code, including tests, in ES5 for [IE 11 compatibility](https://stackoverflow.com/questions/39902809/support-for-es6-in-internet-explorer-11) | ||
* please include test cases in [`/test`](https://github.com/bigskysoftware/_hyperscript/tree/dev/test) and docs in [`/www`](https://github.com/bigskysoftware/_hyperscript/tree/dev/www) | ||
* development pull requests should be against the `dev` branch, docs fixes can be made directly against `master` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93981
1384
45
4
1