Giter Site home page Giter Site logo

bajel's People

Contributors

dependabot[bot] avatar eobrain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bajel's Issues

Allow a dependency to be a URL.

  • Download if newer than target.
  • Download to a temporary file, which is what $< and $+ will refer to.

So instead of ...

some_target:
  deps:
  - downloaded_file.csv"
  - other_dep
  exec: do_something $< >$@

downloaded_file.csv:
  exec: wget --output-document=$@ https://foo.com/some-url.csv

... you could just have ...

some_target:
  deps:
  - https://foo.com/some-url.csv
  - other_dep
  exec: do_something $< >$@

abc_test is flaky

If all the sets are run with npx ava then sometimes abc_test failes as shown below. It never seems to fail when running just npx ava test/abc_test.js.

  abc_test › abc generated var

  test/abc_test.js:135

   134:     const out = stdout + stderr          
   135:     t.regex(out, /^echo "Aaa" > .*\/a$/m)
   136:     t.regex(out, /^echo "Bbb" > .*\/b$/m)

  Value must match expression:

  `Problem expanding percents: Error: ENOENT: no such file or directory, stat 'test-REvEdH'
  `

  Regular expression:

  /^echo "Aaa" > .*\/a$/m

  › test/abc_test.js:135:7

variables in TOML, Markdown, etc. formats?

Hi,

The README says:

the following examples [...] each of which specify the same thing

but the examples don't look the same, since the JavaScript ones use variables like CC, CFLAGS, etc.
You might want to make that clearer.

"if you want to use variables for complex builds":
I like things clean and readable, but makefile-style variables seem hard to do without, even for simple builds...
So I tried doing a build.mjs but I get Error: Not supported and a stack trace ending with 'Error reading file': '/home/kai/fooproject/build.mjs'

But anyway I bet that, for a project like this to work, it needs its own custom language.
Using a standard format for programming is tempting, but I suspect, a dead-end.
That's why we have so many programming languages, and why we don't program (much) in XML or whatever.

Nice idea for a project, anyway.

Though it seems quite new to be referenced in Wikipedia, which is how I came across it...
https://en.wikipedia.org/wiki/List_of_build_automation_software#Make-incompatible

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.