This is a migrated thread and some comments may be shown as answers.

Add selected components from custom download tool in JS comments

17 Answers 198 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 26 Jun 2015, 01:46 AM
I use the custom download tool http://www.telerik.com/download/custom-download to get the smallest package possible but when a Kendo UI update is released I always find it hard to remember exactly which components I need to include in the download that I used last time. It would be helpful to include all the ticked items in the downloaded JS as comments at the top of the file. 

17 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 30 Jun 2015, 06:55 AM

Hello Adam,

Currently selection cannot be persisted with the custom download build tool. You can use the grunt builder and persists the selection there. How to build custom distribution with grunt is explained in the following README:

https://github.com/telerik/kendo-ui-core

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Adam
Top achievements
Rank 1
answered on 02 Jul 2015, 07:52 AM
Thanks that will be useful. But can I do this across non-free components e.g. Grid? I won't have the source files in a form that will work with Grunt will?
0
Kiril Nikolov
Telerik team
answered on 02 Jul 2015, 12:12 PM

Hello Adam,

 

You can use Grunt to build the non-opensource version of the product as well. The approach is the same. You just need to have the required files available on your machine.

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Darlesson
Top achievements
Rank 1
answered on 14 Jan 2016, 12:12 AM

The professional version 2016.1.112 released today doesn't include the Gruntfile.js anymore. I was using the Grunt to run grunt custom task in a child process and unfortunately that is now broken. I thought I was doing something wrong as the documentation http://docs.telerik.com/kendo-ui/intro/installation/what-you-need still states Grunt should be used. When I checked the /src folder I saw it was replaced by Gulp.

0
Kiril Nikolov
Telerik team
answered on 14 Jan 2016, 09:24 AM

Hello Darlesson,

 

Grunt was replaced by Gulp in the latest release, this is why we ship gulpfile.js now. We have updated the README of the repository as well. We have also added note in the breaking changes documentation page:

http://docs.telerik.com/kendo-ui/backwards-compatibility/2016/2016-backward-compatibility

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Scott
Top achievements
Rank 1
answered on 16 May 2016, 12:16 AM

I've tried building the telerik.kendoui.professional.2016.2.504.commercial-source.zip files using gulp and I'm consistently getting errors.  A newer gulp version is out, which is easy to fix, but this one is consistent on both Linux and Windows.  Any ideas?

/home/scott/src/kendouipro/src/gulpfile.js:83

    .pipe(uglify, { compress, mangle, preserveComments: "license" })
                            ^
SyntaxError: Unexpected token ,
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:193:16)
    at module.exports (/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)
    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:185:9)

0
Kiril Nikolov
Telerik team
answered on 16 May 2016, 07:16 AM
Hello,

Which gulp version are you using? What is the version of the gulpfile, is it the latest one?

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Scott
Top achievements
Rank 1
answered on 16 May 2016, 02:04 PM

I've got gulp 3.9.1 installed globally and the gulpfile.js is the one that came with the source code.  I've attached a zip containing the gulpfile.js, npm-shrinkwrap.json and package.json files.  There didn't seem to be any kind of version number in the gulpfile.js I could reference.

0
Kiril Nikolov
Telerik team
answered on 17 May 2016, 08:15 AM
Hello,

Note that the latest version is available here:

https://github.com/telerik/kendo-ui-core/blob/master/gulpfile.js

and it is different than the one in the file that you sent.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Scott
Top achievements
Rank 1
answered on 18 May 2016, 07:54 PM

I was still having issues so I created an Ubuntu 16.04 VM using VirtualBox and followed the instructions on this page to build the free

core version of Kendo UI...

https://github.com/telerik/kendo-ui-core

Which worked.  One thing I had to do was setup a symbolic link for nodejs (sudo ln -s /usr/bin/nodejs /usr/bin/node) but mostly it went very smooth.

I then took a copy of the professional version and ran...

 

  1. npm install
  2. gulp less
  3. gulp custom -c autocomplete,dropdownlist

 

...which worked without issue.

 

Why this worked when nothing else I tried did?  I don't know, but I thought I would put my experience here so that if someone else has this issue it may help them.

0
Kiril Nikolov
Telerik team
answered on 20 May 2016, 07:32 AM
Hi,

Thanks for sharing Scott! It will really be helpful for the other I am sure.

As for why it did not work - it might be something in your machine configuration or the node version that you are using.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Adam
Top achievements
Rank 1
answered on 30 Oct 2016, 07:22 AM
Is there in anyway to replicate the feature selection of a component in the js build tool? It seems you can only add whole components without selecting specific features.
0
Kiril Nikolov
Telerik team
answered on 31 Oct 2016, 08:01 AM
Hello,

Currently this is not possible, however you can submit it as a feature request in our feedback portal, so it can be considered for future improvement.

Regards,
Kiril Nikolov
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
0
evb
Top achievements
Rank 1
answered on 10 Nov 2016, 02:20 PM

I'm using angularjs together with kendo ui

I tried the suggested way : gulp custom -c autocomplete,dropdownlist

It creates a customized kendo.custom.min.js file, but when trying to use it, the application throws error that it don't find the kendo.directives.

So is the gulp custom task useable with angularjs?

How we say that the gulp task must include the needed angularjs kendo code?

Regards

0
Kiril Nikolov
Telerik team
answered on 11 Nov 2016, 08:55 AM
Hello,

You need to include the angular directives as well:

gulp custom -c angular,autocomplete,dropdownlist

Regards,
Kiril Nikolov
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
0
evb
Top achievements
Rank 1
answered on 14 Nov 2016, 09:44 AM

That sounds so obvious, why didn't I think about it myself.

It is now working, thanks,

0
Kiril Nikolov
Telerik team
answered on 14 Nov 2016, 12:18 PM
Hi,

I am glad to hear that the issue is resolved.

Regards,
Kiril Nikolov
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
Tags
Grid
Asked by
Adam
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Adam
Top achievements
Rank 1
Darlesson
Top achievements
Rank 1
Scott
Top achievements
Rank 1
evb
Top achievements
Rank 1
Share this question
or