From bd015d52b654743209d09368913ca933ce4aa879 Mon Sep 17 00:00:00 2001 From: "William C. Johnson" Date: Thu, 12 Oct 2017 19:26:35 -0400 Subject: [PATCH] Packaging updates --- AUTHORS | 43 ++----------------------------------------- AUTHORS.acorn | 41 +++++++++++++++++++++++++++++++++++++++++ README.md | 38 +++++++++----------------------------- package.json | 5 ++--- 4 files changed, 54 insertions(+), 73 deletions(-) create mode 100644 AUTHORS.acorn diff --git a/AUTHORS b/AUTHORS index 2f39deff4b..915ff4da3a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,41 +1,2 @@ -List of Acorn contributors. Updated before every release. - -Adrian Rakovsky -Alistair Braidwood -Andres Suarez -Aparajita Fishman -Arian Stolwijk -Artem Govorov -Brandon Mills -Charles Hughes -Conrad Irwin -David Bonnet -Forbes Lindesay -Gilad Peleg -impinball -Ingvar Stepanyan -Jesse McCarthy -Jiaxing Wang -Joel Kemp -Johannes Herr -Jürg Lehni -keeyipchan -Kevin Kwok -krator -Marijn Haverbeke -Martin Carlberg -Mathias Bynens -Mathieu 'p01' Henri -Max Schaefer -Max Zerzouri -Mihai Bazon -Mike Rennie -Nick Fitzgerald -Oskar Schöldström -Paul Harper -Peter Rust -PlNG -r-e-d -Rich Harris -Sebastian McKenzie -zsjforcn +Alex Rattray (http://alexrattray.com/) +William C. Johnson (https://github.com/wcjohnson) diff --git a/AUTHORS.acorn b/AUTHORS.acorn new file mode 100644 index 0000000000..2f39deff4b --- /dev/null +++ b/AUTHORS.acorn @@ -0,0 +1,41 @@ +List of Acorn contributors. Updated before every release. + +Adrian Rakovsky +Alistair Braidwood +Andres Suarez +Aparajita Fishman +Arian Stolwijk +Artem Govorov +Brandon Mills +Charles Hughes +Conrad Irwin +David Bonnet +Forbes Lindesay +Gilad Peleg +impinball +Ingvar Stepanyan +Jesse McCarthy +Jiaxing Wang +Joel Kemp +Johannes Herr +Jürg Lehni +keeyipchan +Kevin Kwok +krator +Marijn Haverbeke +Martin Carlberg +Mathias Bynens +Mathieu 'p01' Henri +Max Schaefer +Max Zerzouri +Mihai Bazon +Mike Rennie +Nick Fitzgerald +Oskar Schöldström +Paul Harper +Peter Rust +PlNG +r-e-d +Rich Harris +Sebastian McKenzie +zsjforcn diff --git a/README.md b/README.md index 0d7fc90bc2..015654c952 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,20 @@ # @oigroup/babylon-lightscript -> NB: This is a fork of babylon-lightscript which implements language changes that are not necessarily endorsed by upstream. Generally speaking, our intent is to closely follow the upstream language -- however, there may be notable deviations which are documented below. +## If you are looking to get started with the LightScript language, this is the wrong place -- [check out the docs here!](http://wcjohnson.github.io/lightscript) -The parser for [LightScript](http://lightscript.org). +@oigroup/lightscript is a futuristic fork of the [LightScript](http://lightscript.org) language with additional features, fixes, and tools. This is the parser for [@oigroup/LightScript](http://wcjohnson.github.io/lightscript). To be used with [@oigroup/babel-plugin-lightscript](https://github.com/wcjohnson/babel-plugin-lightscript). -A minimally-invasive fork of [Babylon](https://github.com/babel/babylon). -With the exception of a few reserved keywords, -it parses JS as JS unless the `"lightscript"` plugin is passed. +Unless you are working on tooling or hacking the language itself, you don't need this -- get the [Babel preset](http://wcjohnson.github.io/lightscript) instead. + +A fork of [Babylon](https://github.com/babel/babylon). ### Contributing - yarn +To get up and running: + + npm install npm run build npm test -New tests should go in the -[lightscript](https://github.com/lightscript/babylon-lightscript/tree/lightscript/test/fixtures/lightscript) -directory. - -### Deviations from LightScript proper - -#### If Statements and Expressions - -(See https://github.com/wcjohnson/babylon-lightscript/issues/2) - -`@oigroup/babylon-lightscript` enforces consistent syntax between if statements and if expressions, so that programmers don't encounter land mines when switching between the two. In practical terms, this means: - -**This is now illegal syntax:** -```js -if a: {x} else b -``` -If you use colon syntax on one clause of an `if` you must use it on all clauses. - -**This is now legal syntax:** -```js -y = if(three()) 3 else 4 -``` -Traditional JavaScript `if` syntax now works with `if` expressions (as it should, since it works for `if` statements). +Issues: https://github.com/wcjohnson/lightscript/issues diff --git a/package.json b/package.json index 3701b47a56..ccf54f0ea4 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,7 @@ "name": "@oigroup/babylon-lightscript", "version": "3.0.0-beta.1", "description": "A LightScript parser, based on babylon (a JavaScript parser)", - "author": "Alex Rattray ", - "homepage": "http://lightscript.org/", + "homepage": "http://wcjohnson.github.io/lightscript", "license": "MIT", "keywords": [ "babel", @@ -12,7 +11,7 @@ "babylon", "lightscript" ], - "repository": "https://github.com/lightscript/babylon-lightscript", + "repository": "https://github.com/wcjohnson/babylon-lightscript", "main": "lib/index.js", "files": [ "bin",