Brain.js: modernize our packing and release systems

Created on 26 Jun 2018  路  12Comments  路  Source: BrainJS/brain.js

All 12 comments

If you mean script building for release, we can use parcel-bundler, which is super easy to use (zero configure) and its fast!

Also, I can help by adding dev & build scripts using parcel.

Much of the system currently feels so manual, if this is a step towards automation... Bring it on!

I am on it! 馃憤

Analyzing the code base and scripts, I believe following things needed to be done:

  • [x] Update Read-me to include CDN link
  • [x] Update package JSON to include Browser field
  • [x] Replace browserify/uglify with Parcel-Bundler
  • [x] Add Dev & Build scripts
  • [x] Reduce files distributed with the npm package install.
  • [x] Update brain.js imports in examples
  • [x] Validate that all tests run fine

This will make sure:

  • When using npm we don't need to load minified or build version and index.js will be the entry point for the script. This will also ensure that brain.js is built using the developer environment (babel etc)
  • For direct usage in Browser

    • a CDN link will be available.

    • a build/minified will be available in dist directory.

  • existing browser.js & browser.min.js files will be removed from the root directory.

Please let me know if you have any questions about these tasks.

I need tests back for the FeedForward class, Recurrent class, praxis folder, and layer folder.
They should equal 1 to 1 like you are doing with the new directory.

I don't mind resolving this. It may be easier for me to do it because it looks like the version of nn-gpu-layers was slightly outdated.

Ok, I've restored the tests, but have not changed them. I as well ensured that the important stuff from nn-gpu-layers made it in to develop. If you'd like to resume, by all means.

Have you also removed redundant files? (I think recurrent dir inside src).

I will working on tests now.

I did. Lets keep them for the time being, both tests and source. We aren't totally covering all the use cases yet, so just for convenience in reference of design lets keep them for the time being.

fantastic!

When you have time, can you jump on hangouts so we can quickly coordinate efforts?

sure, in few moments.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TomDobbelaere picture TomDobbelaere  路  6Comments

grigori-gru picture grigori-gru  路  4Comments

ximik753 picture ximik753  路  3Comments

dan-ryan picture dan-ryan  路  4Comments

lynxionxs picture lynxionxs  路  5Comments