Internal: upgrade to babel6
Upgrades to babel 6. The major win (aside from some minor performance gains), is that this module can now be `npm link`ed into a babel 6 code base.
This commit is contained in:
15
scripts/build.sh
Executable file
15
scripts/build.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
||||
source "scripts/env.sh"
|
||||
|
||||
babel="./node_modules/.bin/babel"
|
||||
|
||||
build () {
|
||||
$babel "$SRC_DIR" --out-dir "$OUT_DIR" $@
|
||||
}
|
||||
|
||||
build $@
|
7
scripts/env.sh
Normal file
7
scripts/env.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
# strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
export SRC_DIR="./src"
|
||||
export OUT_DIR="./build"
|
6
scripts/watch.sh
Executable file
6
scripts/watch.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
./scripts/build.sh --watch
|
Reference in New Issue
Block a user