2017-12-14 03:19:55 +04:00

19 lines
269 B
Bash

#!/bin/bash
set -euo pipefail
cd `dirname $0`
npm i
if ! [ -d acorn/.git ]; then
git clone https://github.com/c9/acorn
fi
pushd acorn
git fetch origin
git reset origin/master --hard
npm i
npm run build
popd
cp acorn/dist/* node_modules/acorn/dist
node eslint.js