-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I build codeflask from source? #115
Comments
It depends on why exactly do you want to build it from source. If you just want to use a built version of CodeFlask directly in the browser (without importing it in a project with bundlers like Webpack or Rollup), you can use it directly from a CDN:
If you want to build it locally, then under your project folder, run:
No need to install Rollup globally. The 1st step will already install rollup dependency locally and use it for further commands you run in the project. In the file I'm not sure if you're familiar with Node.js environments, but in Node.js projects all available tasks are located inside |
Thank-you. You are very understanding and patient.
I am new to Node.js.
I am grateful for your kindness.
Daniel
…On Sun, May 17, 2020 at 5:36 PM Claudio Holanda ***@***.***> wrote:
It depends on why exactly do you want to build it from source.
If you just want to use a built version of CodeFlask directly in the
browser (without importing it in a project with bundlers like Webpack or
Rollup), you can use it directly from a CDN:
https://unpkg.com/codeflask/build/codeflask.min.js
If you want to build it locally, then under your project folder, run:
1. Dependency install:
npm install
1. Project build
npm run build
No need to install Rollup globally. The 1st step will already install
rollup dependency locally and use it for further commands you run in the
project.
In the file rollup.config.js, you will see there is an output object that
defines where the build file will be located at. So your built file will be
at: build/codeflask.min.js.
I'm not sure if you're familiar with Node.js environments, but in Node.js
projects all available tasks are located inside package.json, under
scripts object. Think of it as a Makefile. So when in doubt, always take
a look at this section to know which commands you can run via npm run
{command}.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4DSMQJCMKV5KXIOVSYGTRSB7HNANCNFSM4NDQVU2Q>
.
|
I've cloned. I see rollup.config.js. I see rollup in your credits. I have nodejs installed. I run on OpenSUSE Linux. I installed rollup thus:
I ran rollup thus:
I saw a complaint about a missing plugin, which I installed thus:
By now I've almost lost interest, and have decided to look at some of the other many options, but I decided to ask for your help.
Can you help me?
Daniel
The text was updated successfully, but these errors were encountered: