The following are currently supported methods of installing Lucy.
curl -sSf https://lucylang.org/install.sh | bash
This will install the lucyc
binary to your $HOME/.lucy
folder. Open a new terminal and run:
lucyc --help
Lucy is available for the following build tools:
Snowpack users can use the @lucy/snowpack-plugin package to load .lucy
files.
First install the plugin:
npm install @lucy/snowpack-plugin
Then add it to your snowpack.config.js
configuration in the plugins
section like so:
module.exports = {
// ... Other configuration
plugins: [
'@lucy/snowpack-plugin'
]
};
Rollup users can use the @lucy/rollup-plugin package to load .lucy
files. Install the plugin:
npm install @lucy/rollup-plugin --save-dev
And use it in your Rollup config:
rollup.config.mjs
import lucy from '@lucy/rollup-plugin';
export default ({
input: 'entry.js',
plugins: [lucy()],
output: [{
file: 'bundle.js',
format: 'es'
}]
});
Vite supports Rollup plugins out of the box, so you can use the @lucy/rollup-plugin package in a Vite project.
Install:
npm install @lucy/rollup-plugin --save-dev
And in your config:
vite.config.mjs
import lucy from '@lucy/rollup-plugin';
export default {
plugins: [
lucy()
]
}
test