mholt / json-to-go

Translates JSON into a Go type in your browser instantly (original)
https://mholt.github.io/json-to-go/
MIT License
4.51k stars 475 forks source link

build dist app.js #75

Closed YaroslavPodorvanov closed 4 years ago

YaroslavPodorvanov commented 4 years ago

package.json & webpack.config.js need to build app.js

json-to-go.test.js need to be sure that jsonToGo work fine

i did minimal changes to optimize, that matter

mholt commented 4 years ago

app.js is something new. Let's just keep things the same, but remove the parts of highlight.js that we don't need.

YaroslavPodorvanov commented 4 years ago

app.js is something new, yes, app.js is build of other needest file

you can build app.js yourself with

rm -rf ./dist
npm install -D
npm run build
mholt commented 4 years ago

Sorry, but this works fine without npm as-is. I'll close this unless we can find a way to slim it down without, ironically, adding heavy dependencies.

YaroslavPodorvanov commented 4 years ago

I only transform already added html-direct dependencies to npm-direct dependencies, without any new dependencies, as for me webpack-npm is right way

I will try solve other issues in this project, and maybe you'll change your mind

mholt commented 4 years ago

I just like to keep things simple. This project doesn't need all the fancy tooling. It's just a few JS files (some minified) that a static HTML page uses.