Menu
io arcio arc
🌜
🌞
io arcio arc
  • Getting Started
  • Select languages and frameworks
  • Configuration
    • Overview
    • Site Settings
    • Build Settings
    • Extending the webpack
  • Build
    • Overview
    • HTML
    • CSS
    • JavaScript
  • Plugins
    • Overview
    • Tasks
      • browser-sync
      • clean
      • copy
      • manifest
      • service-worker
      • webp-converter
      • webpack-babel
      • webpack-css
      • webpack-html
      • webpack-pug
      • webpack-sass
      • webpack-stylus
      • webpack-typescript
      • webpack-vue
      • webpack-vue-typescript
      • yaml2json
    • Modules
      • env
        • Overview
        • Constants
          • Common
          • Site Information
          • HTML
          • CSS
          • JavaScript
          • Images
          • Static
          • YAML2JSON
      • file-list
      • logger
      • output-dir-diff
      • path-build
      • read-yaml
      • types
      • utils
      • webp-converter
      • webpack-loaders-image
      • webpack-loaders-js
      • webpack-loaders-pug-linter
      • webpack-plugins-task-message
      • webpack-settings
      • yaml2json

@io-arc/task-yaml2json

YAML to JSON conversion.

Usage#

$ npm i -D @io-arc/task-yaml2json
# once run
$ NODE_ENV=development MODE_ENV=once ia-yaml2json
# watch run
$ NODE_ENV=development MODE_ENV=watch ia-yaml2json

Or

package.json
{
"scripts": {
"yaml2json": "ia-yaml2json"
}
}
$ npm run yaml2json

Configuration#

Converts the YAML file in the working space to a JSON file and outputs it.

Working Directory: wsDir.yaml2json (Default: src/yaml2json)
Output Directory: outputDir/deployDir.json (Default: dist/common/data)
Minify: options.json.minify (Default: false)

Previous
« @io-arc/task-webpack-vue-typescript
Next
@io-arc/env »
  • Usage
  • Configuration
Copyright © 2022 io arc project.