prismicio / slice-machine

A series of tools for developing and deploying website sections with Prismic
https://prismic.io/docs
Apache License 2.0
287 stars 53 forks source link

No option in —setup —lib for no libs #35

Closed justinmetros closed 4 years ago

justinmetros commented 4 years ago

Have existing Vue projects and don't want vue-essential-slices or any other, just the tool.

Is it possible to install with no framework, just slicemachine?

lihbr commented 4 years ago

Hi @justinmetros and thanks for contributing!

Currently there's no straightforward way to do that, what I'd recommend you is to run the --setup command with the --no-prismic flag, then you can safely remove vue-essential-slices (as well as node-sass and sass-loader if you're not using those) from your dependencies, finally you'll need to remove vue-essential-slices from the libraries array inside your sm.json config file and then you should be good to go 🙂

Also we were discussing the --no-lib option here: https://github.com/prismicio/slice-machine/issues/25#issuecomment-651895322 ~

justinmetros commented 4 years ago

Thank you @lihbr, very clear and easy enough.