Skip to content

Commit

Permalink
fix: getenv missing
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-roux-404 committed Jun 12, 2021
1 parent dae97cd commit 94d5adc
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 10 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# 4 space indentation
[*.{js|ts}]
indent_size = 2
indent_style = space

# Ignore paths
[*.md]
charset = none
end_of_line = none
insert_final_newline = none
trim_trailing_whitespace = none
indent_style = none
indent_size = none
4 changes: 3 additions & 1 deletion .manala.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ semantic_release:
exec:
publishCmd: npm run package
github:
assets: [{ path: ./build }, { path: ./assets }]
assets:
- { path: ./build/*.zip }
- { path: ./build/*.js }
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/exec", {"publishCmd":"npm run package"}],
["@semantic-release/github", {"assets":[{"path":"./build"},{"path":"./assets"}]}]
["@semantic-release/github", {"assets":[{"path":"./build/*.zip"},{"path":"./build/*.js"}]}]
]
}
13 changes: 6 additions & 7 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
// Linter
"dbaeumer.vscode-eslint", // Eslint js linter
"drknoxy.eslint-disable-snippets", // Disable Some Eslint rules
// Formatter
"esbenp.prettier-vscode", // Js|Ts Formatter
"SimonSiefke.prettier-vscode", // Better support of jinja
// Languages
"rbbit.typescript-hero"
"Kasik96.latte", // Nette Latte + Neon
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
"unwantedRecommendations": [

]
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@

{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
}
8 changes: 8 additions & 0 deletions src/utils/shell.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const run = command => {
const app = Application.currentApplication();
app.includeStandardAdditions = true;

return app.doShellScript(command)
}

export const getEnv = key => run(`echo $${key}`)

0 comments on commit 94d5adc

Please sign in to comment.