Giter VIP home page Giter VIP logo

Comments (2)

korenmiklos avatar korenmiklos commented on August 17, 2024
bead command stata -b do main.do
bead save
bead develop NAME
bead input update
bead update

or

bead run

from bead.

e3krisztian avatar e3krisztian commented on August 17, 2024

I think entry_point is not a good name, what about build_command instead?

I was also thinking about the command line interface and implementation for using it (rebuilding beads):

bead build [--show] [BUILD COMMAND WITH ARGUMENTS]

Records or executes build commands

  • bead build make output records make output as the command used for building the output
  • bead build runs the previously recorded build command
  • bead build --show shows the previously recorded build command

bead build --recursive [--dir BUILD-DIR]

Rebuilds the workspace, the inputs are updated, and loaded.

Something like

# rebuild inputs
for INPUT in workspace.inputs:
    bead build --recursive --dir BUILD-DIR INPUT.bead_name
    bead input update INPUT.name
# rebuild workspace
bead build

bead build [--recursive] [--dir BUILD-DIR] --package PACKAGE

Rebuilds PACKAGE and if required, all of its dependencies recursively.

a recursive build would work like this:

cd BUILD-DIR
if file PACKAGE exists:
    # this package was already built
    return
bead develop PACKAGE
cd PACKAGE
if recursive:
    bead build --recursive --dir BUILD-DIR
else:
    bead input update
    bead build
bead save
cd ..
bead zap PACKAGE
# leave a sentinel behind to prevent repeated builds
touch PACKAGE

Notes:

  • existing BUILD-DIR/PACKAGE will prevent building PACKAGE
  • BUILD-DIR defaults to abspath('temp/build')
  • all bead build-s and bead save-s should be conditional for package builds (i.e. not a workspace initiated build): only if one of its dependencies have been updated

Open problem[s]:

  • What to do with existing beads? Smart default (make) or fail?
  • What should happen when there is a failure rebuilding one of the dependencies (e.g. no build command recorded, or command exiting with error)?

from bead.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.