Level / community

Discussion, support and common information for projects in the community.
MIT License
42 stars 15 forks source link

Create starter repository with level/browserify/webpack examples #62

Closed vweevers closed 5 years ago

vweevers commented 5 years ago

Forked from https://github.com/Level/levelup/issues/619, cc @fergiemcdowall.

We can use level-with-webpack-test as a starting point, maybe move the package to a subdirectory and add more subdirectories to demonstrate setups with browserify and others.

Or, create a starter repo for each? E.g. Level/level-with-webpack-starter.

fergiemcdowall commented 5 years ago

Yes, maybe a single repo like level-with-webpack-test with a script command for every supported packaging tool: npm run build-with-browserify, npm run build-with-webpack, (and if we can get it to work) npm run build-with-rollup ?

BTW: things I like about level-with-webpack-test as it is now:

vweevers commented 5 years ago

it is very terse, clear, and unpolluted by extraneous complications (test suites, linters, development servers, and other bells and whistles).

Yeah, that's why I'm leaning towards multiple starter repos (keeps dependencies and scripts clean). And level-with-webpack-test does have a linter atm (standard) but that was not intentional, we can remove it.

vweevers commented 5 years ago

(Side note: when creating level-with-webpack-test, which should have taken a minute, I wasted probably 15 minutes trying to understand webpack(-cli). First I installed webpack, which comes with what seems to be a dummy CLI, and it told me to install webpack-cli, so I did and removed webpack, but webpack-cli complained it couldn't find webpack, so I did the rm -rf node_modules && npm i dance, still didn't work, then I installed both and it worked. Waaat is this nonsense)

vweevers commented 5 years ago

Poll time! How should we structure this?

image

Edit: poll has closed.

vweevers commented 5 years ago

https://github.com/Level/webpack-starter

vweevers commented 5 years ago

https://github.com/Level/browserify-starter