Closed pflagerd closed 4 years ago
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:
Dependency install:
npm install
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}
.
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 notifications@github.com 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:
- Dependency install:
npm install
- 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 https://github.com/kazzkiq/CodeFlask/issues/115#issuecomment-629887775, 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