Skip to content

Commit

Permalink
@lydell experimental package
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Nov 14, 2022
1 parent 401eb0e commit 05ddefd
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 31 deletions.
9 changes: 9 additions & 0 deletions installers/npm/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# EXPERIMENTAL PACKAGE

**This is not the official `elm` npm package!**

This is an experiment to package Elm as a dependency free npm package. If you want to try that out, go ahead and install this package.

👉 [Official elm package](https://www.npmjs.com/package/elm)


# Elm Installer

[Elm](https://elm-lang.org) is a functional programming language that compiles to JavaScript.
Expand Down
2 changes: 1 addition & 1 deletion installers/npm/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function()
{
// figure out package of binary
var version = package.version.replace(/^(\d+\.\d+\.\d+).*$/, '$1'); // turn '1.2.3-alpha' into '1.2.3'
var subPackageName = '@evancz/elm_' + process.platform + '_' + process.arch;
var subPackageName = '@lydell/elm_' + process.platform + '_' + process.arch;

verifyPlatform(version, subPackageName);

Expand Down
20 changes: 10 additions & 10 deletions installers/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "elm",
"name": "@lydell/elm",
"version": "0.19.1-9",
"description": "Installer for Elm: just downloads the binary into node_modules",
"description": "EXPERIMENTAL Installer for Elm: just downloads the binary into node_modules",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/elm/compiler.git"
"url": "https://github.com/lydell/compiler.git"
},
"homepage": "https://github.com/elm/compiler/tree/master/installers/npm",
"bugs": "https://github.com/elm/compiler/issues",
"homepage": "https://github.com/lydell/compiler/tree/master/installers/npm",
"bugs": "https://github.com/lydell/compiler/issues",
"author": {
"name": "Evan Czaplicki",
"email": "[email protected]",
Expand Down Expand Up @@ -36,10 +36,10 @@
],
"bin": { "elm": "bin/elm" },
"optionalDependencies": {
"@evancz/elm_darwin_arm64": "0.19.1-0",
"@evancz/elm_darwin_x64": "0.19.1-1",
"@evancz/elm_linux_arm64": "0.19.1-2",
"@evancz/elm_linux_x64": "0.19.1-0",
"@evancz/elm_win32_x64": "0.19.1-0"
"@lydell/elm_darwin_arm64": "0.19.1-0",
"@lydell/elm_darwin_x64": "0.19.1-1",
"@lydell/elm_linux_arm64": "0.19.1-2",
"@lydell/elm_linux_x64": "0.19.1-0",
"@lydell/elm_win32_x64": "0.19.1-0"
}
}
2 changes: 1 addition & 1 deletion installers/npm/packages/elm_darwin_arm64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Elm

This is the macOS ARM 64-bit binary for [Elm](https://elm-lang.org/).
EXPERIMENTAL: This is the macOS ARM 64-bit binary for [Elm](https://elm-lang.org/).
6 changes: 3 additions & 3 deletions installers/npm/packages/elm_darwin_arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@evancz/elm_darwin_arm64",
"name": "@lydell/elm_darwin_arm64",
"version": "0.19.1-0",
"description": "The macOS ARM 64-bit binary for Elm.",
"repository": "https://github.com/elm/compiler",
"description": "EXPERIMENTAL: The macOS ARM 64-bit binary for Elm.",
"repository": "https://github.com/lydell/compiler",
"license": "BSD-3-Clause",
"os": [ "darwin" ],
"cpu": [ "arm64" ]
Expand Down
2 changes: 1 addition & 1 deletion installers/npm/packages/elm_darwin_x64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Elm

This is the macOS 64-bit binary for [Elm](https://elm-lang.org/).
EXPERIMENTAL: This is the macOS 64-bit binary for [Elm](https://elm-lang.org/).
6 changes: 3 additions & 3 deletions installers/npm/packages/elm_darwin_x64/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@evancz/elm_darwin_x64",
"name": "@lydell/elm_darwin_x64",
"version": "0.19.1-1",
"description": "The macOS 64-bit binary for Elm.",
"repository": "https://github.com/elm/compiler",
"description": "EXPERIMENTAL: The macOS 64-bit binary for Elm.",
"repository": "https://github.com/lydell/compiler",
"license": "BSD-3-Clause",
"os": [ "darwin" ],
"cpu": [ "x64" ]
Expand Down
2 changes: 1 addition & 1 deletion installers/npm/packages/elm_linux_arm64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Elm

This is the Linux ARM 64-bit binary for [Elm](https://elm-lang.org/).
EXPERIMENTAL: This is the Linux ARM 64-bit binary for [Elm](https://elm-lang.org/).
6 changes: 3 additions & 3 deletions installers/npm/packages/elm_linux_arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@evancz/elm_linux_arm64",
"name": "@lydell/elm_linux_arm64",
"version": "0.19.1-2",
"description": "The Linux ARM 64-bit binary for Elm.",
"repository": "https://github.com/elm/compiler",
"description": "EXPERIMENTAL: The Linux ARM 64-bit binary for Elm.",
"repository": "https://github.com/lydell/compiler",
"license": "BSD-3-Clause",
"os": [ "linux" ],
"cpu": [ "arm64" ]
Expand Down
2 changes: 1 addition & 1 deletion installers/npm/packages/elm_linux_x64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Elm

This is the Linux 64-bit binary for [Elm](https://elm-lang.org/).
EXPERIMENTAL: This is the Linux 64-bit binary for [Elm](https://elm-lang.org/).
6 changes: 3 additions & 3 deletions installers/npm/packages/elm_linux_x64/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@evancz/elm_linux_x64",
"name": "@lydell/elm_linux_x64",
"version": "0.19.1-0",
"description": "The Linux 64-bit binary for Elm.",
"repository": "https://github.com/elm/compiler",
"description": "EXPERIMENTAL: The Linux 64-bit binary for Elm.",
"repository": "https://github.com/lydell/compiler",
"license": "BSD-3-Clause",
"os": [ "linux" ],
"cpu": [ "x64" ]
Expand Down
2 changes: 1 addition & 1 deletion installers/npm/packages/elm_win32_x64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Elm

This is the Windows 64-bit binary for [Elm](https://elm-lang.org/).
EXPERIMENTAL: This is the Windows 64-bit binary for [Elm](https://elm-lang.org/).
6 changes: 3 additions & 3 deletions installers/npm/packages/elm_win32_x64/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@evancz/elm_win32_x64",
"name": "@lydell/elm_win32_x64",
"version": "0.19.1-0",
"description": "The Windows 64-bit binary for Elm.",
"repository": "https://github.com/elm/compiler",
"description": "EXPERIMENTAL: The Windows 64-bit binary for Elm.",
"repository": "https://github.com/lydell/compiler",
"license": "BSD-3-Clause",
"os": [ "win32" ],
"cpu": [ "x64" ]
Expand Down

0 comments on commit 05ddefd

Please sign in to comment.