Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/bs / src / prettier.ts
Size: Mime:
import { read, write } from 'flipfile'
import jetpack from 'fs-jetpack'
import prettier from 'prettier'
import { resolveToRoot } from './resolveToRoot'

const distManifest = resolveToRoot('dist/dist/bundled/client/assets.json')

const manifest = require(distManifest)
const fileName = manifest.index.js.split('/').pop()
const first = `${resolveToRoot('dist/dist/bundled/client')}/${fileName}`

const code = read(first)
const formatted = prettier.format(code, { semi: false, parser: 'typescript' })

write('./pretty.ts', formatted)