Skip to content

Commit

Permalink
Packaging updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 13, 2017
1 parent 052ced6 commit bd015d5
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 73 deletions.
43 changes: 2 additions & 41 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -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 <rattray.alex@gmail.com> (http://alexrattray.com/)
William C. Johnson <wcjohnson@oigroup.net> (https://github.com/wcjohnson)
41 changes: 41 additions & 0 deletions AUTHORS.acorn
Original file line number Diff line number Diff line change
@@ -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
38 changes: 9 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <rattray.alex@gmail.com>",
"homepage": "http://lightscript.org/",
"homepage": "http://wcjohnson.github.io/lightscript",
"license": "MIT",
"keywords": [
"babel",
Expand All @@ -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",
Expand Down

0 comments on commit bd015d5

Please sign in to comment.