This plugin provides a YAML parser for FARM.
Currently only simple YAML syntax parsing is supported.
pnpm install -D @jstors/farm-plugin-yaml
export default defineConfig({
plugins: [
'@jstors/farm-plugin-yaml',
]
});
import yamlFile from './base.yaml'
console.log(yamlFile)
languages:
- Ruby
- Perl
- Python
websites:
YAML: yaml.org
Ruby: ruby-lang.org
Python: python.org
Perl: use.perl.org
number: 1
is: true
c:
module.exports = {"websites":{"YAML":"yaml.org","Ruby":"ruby-lang.org","Python":"python.org","Perl":"use.perl.org"},"is":"true","number":"1","c":"null","languages":["Ruby","Perl","Python"]}