feat: support YAML (#4563)

* feat: support YAML

* fix: do not indent sequence in mappingValue

* docs: add yaml to index.md

* fix: reduce `SyntaxError: Node#parse consumed no characters`

* chore: remove old-build and new-worker.js

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* fix: no space after `<<`

* fix: add yaml to standalone test

* test: add tests

* fix: next empty line in flow collection

* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/

* fix: update parser

* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id

* chore: fix node 4

* chore: add tools_yaml.svg

* chore: remove resolved TODO

* refactor: remove unnecessary workaround

* chore(worker): importScriptOnce

* chore(build): rename with babelPlugins

* make it rollup compatible

* feat: support singleQuote

* refactor
This commit is contained in:
Ika authored and GitHub committed 2018-06-21 10:29:42 +08:00
1 parent 9ec1da1ad1
commit dcf44ffbdc
382 files changed
+9220 -51

No files matched your search

+3 -1
View File
@@ -5,6 +5,7 @@ const path = require("path");
const { rollup } = require("rollup");
const webpack = require("webpack");
const resolve = require("rollup-plugin-node-resolve");
const alias = require("rollup-plugin-alias");
const commonjs = require("rollup-plugin-commonjs");
const nodeGlobals = require("rollup-plugin-node-globals");
const json = require("rollup-plugin-json");
@@ -36,7 +37,7 @@ const EXTERNALS = [
function getBabelConfig(bundle) {
const config = {
babelrc: false,
plugins: [],
plugins: bundle.babelPlugins || [],
compact: bundle.type === "plugin" ? false : "auto"
};
if (bundle.type === "core") {
@@ -108,6 +109,7 @@ function getRollupConfig(bundle) {
replace(replaceStrings),
executable(),
json(),
bundle.alias && alias(bundle.alias),
bundle.target === "universal" &&
nativeShims(path.resolve(__dirname, "shims")),
resolve({