Add json parser to dist/ build (#2178)

This fixes the build, as shown by:

    yarn build
    yarn test --prod -- tests/json/
master
Joseph Frazier 2017-06-17 17:09:48 -04:00 committed by GitHub
parent a42db30946
commit d46b778dba
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,9 @@ node_modules/.bin/rollup -c scripts/build/rollup.parser.config.js --environment
echo 'Bundling lib parse5...';
node_modules/.bin/rollup -c scripts/build/rollup.parser.config.js --environment parser:parse5
echo 'Bundling lib json...';
node_modules/.bin/rollup -c scripts/build/rollup.parser.config.js --environment parser:json
echo 'Bundling lib postcss...';
# PostCSS has dependency cycles and won't work correctly with rollup :(
./node_modules/.bin/webpack --hide-modules src/parser-postcss.js dist/parser-postcss.js
@ -65,6 +68,9 @@ node_modules/.bin/rollup -c scripts/build/rollup.docs.config.js --environment fi
echo 'Bundling docs parse5...';
node_modules/.bin/rollup -c scripts/build/rollup.docs.config.js --environment filepath:parser-parse5.js
echo 'Bundling docs json...';
node_modules/.bin/rollup -c scripts/build/rollup.docs.config.js --environment filepath:parser-json.js
echo;
## --- Misc ---