Skip to content

Commit

Permalink
Merge pull request #852 from jpverde/main
Browse files Browse the repository at this point in the history
refac(cross): #849 rename builtins
  • Loading branch information
jpverde authored Jun 2, 2022
2 parents 286d982 + e4ab99c commit 9f2eba3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ Real life projects that run entirely on [Makes][MAKES]:
- [secretsForKubernetesConfigFromAws](#secretsforkubernetesconfigfromaws)
- [secretsForTerraformFromEnv](#secretsforterraformfromenv)
- [Utilities](#utilities)
- [makeNodeJsLockfile](#makenodejslockfile)
- [makePythonPypiEnvironmentSources](#makepythonpypienvironmentsources)
- [makeSopsEncryptedFile](#makesopsencryptedfile)
- [Framework Configuration](#framework-configuration)
- [extendingMakesDirs](#extendingmakesdirs)
Expand Down Expand Up @@ -281,9 +279,11 @@ Real life projects that run entirely on [Makes][MAKES]:
- [makeNodeJsVersion](#makenodejsversion)
- [makeNodeJsModules](#makenodejsmodules)
- [makeNodeJsEnvironment](#makenodejsenvironment)
- [makeNodeJsLock](#makenodejslock)
- [Python](#python)
- [makePythonVersion](#makepythonversion)
- [makePythonPypiEnvironment](#makepythonpypienvironment)
- [makePythonLock](#makepythonlock)
- [Ruby](#ruby)
- [makeRubyVersion](#makerubyversion)
- [makeRubyGemsInstall](#makerubygemsinstall)
Expand Down Expand Up @@ -2425,14 +2425,14 @@ Utilities provide an easy mechanism
for calling functions from makes
without having to specify them on any file.
### makeNodeJsLockfile
### makeNodeJsLock
You can generate a `package-lock.json`
for [makeNodeJsEnvironment](#makenodejsenvironment)
like this:
```bash
m github:fluidattacks/[email protected] /utils/makeNodeJsLockfile \
m github:fluidattacks/[email protected] /utils/makeNodeJsLock \
"${node_js_version}" \
"${package_json}" \
"${package_lock}"
Expand All @@ -2445,17 +2445,17 @@ m github:fluidattacks/[email protected] /utils/makeNodeJsLockfile \
to the `package-lock.json` file in your project, this file can be an empty
file.
### makePythonPypiEnvironmentSources
### makePythonLock
You can generate a `sourcesYaml`
for [makePythonPypiEnvironment](#makepythonpypienvironment)
like this:
```bash
m github:fluidattacks/[email protected] /utils/makePythonPypiEnvironmentSources \
m github:fluidattacks/[email protected] /utils/makePythonLock \
"${python_version}" \
"${dependencies_yaml}" \
"${sources_yaml}
"${sources_yaml}"
```
- Supported `python_version`s are: `3.7`, `3.8` and `3.9`.
Expand Down Expand Up @@ -3850,7 +3850,7 @@ It appends:
- `node_modules/.bin` to `PATH`.
- `node_modules` to [NODE_PATH][NODE_PATH].
Pre-requisites: [Generating a package-lock.json](#makenodejslockfile)
Pre-requisites: [Generating a package-lock.json](#makenodejslock)
Types:
Expand Down Expand Up @@ -3975,7 +3975,7 @@ where the provided set of [Python][PYTHON] packages
from the [Python Packaging Index (PyPI)][PYTHON_PYPI]
are installed.
Pre-requisites: [Generating a sourcesYaml](#makepythonpypienvironmentsources)
Pre-requisites: [Generating a sourcesYaml](#makepythonlock)
Types:
Expand Down Expand Up @@ -4055,7 +4055,7 @@ $ cat /path/to/my/project/makes/example/dependencies.yaml
Django: "3.2.6"
$ m github:fluidattacks/[email protected] /utils/makePythonPypiEnvironmentSources \
$ m github:fluidattacks/[email protected] /utils/makePythonLock \
3.8 \
/path/to/my/project/makes/example/dependencies.yaml \
/path/to/my/project/makes/example/sources.yaml
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}:
makeScript {
entrypoint = ./entrypoint.sh;
name = "make-node-js-lockfile";
name = "make-node-js-lock";
replace = {
__argNode14__ = makeNodeJsVersion "14";
__argNode16__ = makeNodeJsVersion "16";
Expand Down
2 changes: 1 addition & 1 deletion makes/utils/makePythonPypiEnvironmentSources/update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# shellcheck shell=bash

function main {
local cmd=(just m . /utils/makePythonPypiEnvironmentSources)
local cmd=(just m . /utils/makePythonLock)

: \
&& "${cmd[@]}" 3.7 \
Expand Down

0 comments on commit 9f2eba3

Please sign in to comment.