question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make changes in the assets build process

See original GitHub issue

#What does it mean? Basically improve the way we prepare the assets for development or production. The main purposes are:

  • Improve development speed: watch, bundle, initialization,…
  • Improve deployment speed: don’t uglify already minified vendor files, for example, don’t run unnecessary development tasks here, etc.

It has a lot of implications, but the main tasks should be:

Main tasks

  • Migrate from Browserify to Webpack: already done in the test part thanks to @ivanmalagon.
  • Taking into account the previous bullet, we should not migrate the old code (editor) to this new “workflow”. That means only, for the moment, builder, dataset and public embed views will be “migrated”.
  • Start using lib-sass for compiling the CSS instead of ~compass~ for the whole project. We should leave this last one only for the old assets.
  • We should check if new tests task needs to be revisited after those new changes.

Caveats

  • We need to keep using the core <> client behaviour for assets touched “outside” of our usual workflow (mainly for solutions engineers).
  • ~Vendor files (like tangram) don’t need to be uglified, we should avoid this in order to gain time in the deploys~ Decided to leave it as it is for now (follow thread).
  • When a new file is added, it should be taken by the watch process.

Improvements

  • Research how to improve javascript source-map support for staging and production.

Issues:

Nice to have

  • Hot module replacement
  • Smart build: only build touched code. If the edited/new code belongs to Builder, only build the Builder. If the code belongs to Editor, only build the Editor. If there is code for both sides, build Builder and Editor.

@CartoDB/frontend

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:28 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
xavijamcommented, Jun 13, 2017

\o/

1reaction
xavijamcommented, Apr 11, 2017

IMO:

For development purposes:

  • For editor we should use grunt editor dev.
  • For builder we should use: grunt builder dev.

For only compilation, for example, staging or production:

  • For editor we should use grunt editor prod.
  • For builder we should use: grunt builder prod.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Accounting for Changes in the Market Value of Fixed Assets
A company can account for changes in the market value of its various fixed assets by conducting a revaluation of the fixed assets....
Read more >
Accounting for Buildings & Improvements - Finance & Business
Guidance on establishing when costs for buildings and improvements must be capitalized at the university. Building & Structure: A building ...
Read more >
Build client web assets for your Razor Class Library - .NET Blog
Learn how to integrate a build process for client web assets using tools like npm and webpack into the builds of your Razor...
Read more >
Addressable Assets development cycle - Unity - Manual
Addressable Assets development cycle. One of the key benefits of Addressable Assets is decoupling how you arrange, build, and load your content.
Read more >
Fixed Assets CS: Advancing changes from a prior period to ...
In your Fixed Assets CS client, Choose File > Select Period to Process or click the icon on the toolbar. Highlight the prior...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found