Skip to content

Commit

Permalink
trying to fix make dist
Browse files Browse the repository at this point in the history
  • Loading branch information
zupo committed Jul 13, 2023
1 parent b4d2927 commit 673f3f0
Show file tree
Hide file tree
Showing 7 changed files with 1,684 additions and 7,474 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ repl-temp-*
.direnv/
geckodriver.log
yarn-error.log
.parcel-cache/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dist:
# For modules (commonjs or ES6)
@parcel build src/index.js
# For html script tags
@parcel build --global SalaryCalculator src/salary-calculator.js src/index.html
@parcel build src/salary-calculator.js src/index.html

# Testing and linting targets
.PHONY: lint
Expand Down
7 changes: 3 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ let
};
yarnLock = ./yarn.lock;
publishBinsFor = [
"codecov"
"elm-upgrade"
"eslint"
"parcel-bundler"
# "elm-upgrade"
# "eslint"
"parcel"
];
};

Expand Down
9 changes: 5 additions & 4 deletions elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm-community/maybe-extra": "5.0.0",
"elm-community/result-extra": "2.2.1",
"elm/browser": "1.0.1",
"elm/core": "1.0.2",
"elm/html": "1.0.0",
"elm/json": "1.1.3",
"elm/url": "1.0.0",
"elm-community/maybe-extra": "5.0.0",
"elm-community/result-extra": "2.2.1",
"rundis/elm-bootstrap": "5.1.0"
},
"indirect": {
Expand All @@ -27,9 +27,10 @@
"elm-explorations/test": "2.1.1"
},
"indirect": {
"elm/random": "1.0.0",
"elm/regex": "1.0.0",
"elm/svg": "1.0.1"
"elm/svg": "1.0.1",
"elm/bytes": "1.0.8",
"elm/random": "1.0.0"
}
}
}
16 changes: 4 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "salary-calculator",
"version": "0.1.0",
"description": "Elm engine running the Niteo Salary Calculator",
"main": "dist/index.js",
"scripts": {
"build": "make dist",
"test": "make test"
Expand All @@ -24,17 +23,10 @@
},
"homepage": "https://github.com/teamniteo/salarycalc#readme",
"devDependencies": {
"@babel/core": "^7.3.4",
"babel-plugin-transform-es2015-modules-strip": "^0.1.1",
"codecov": "^3.2.0",
"elm-analyse": "^0.16.1",
"elm-coverage": "^0.2.0",
"elm-hot": "^1.0.1",
"elm-upgrade": "^0.19.8",
"elm-verify-examples": "^4.0.0",
"eslint": "^7.9.0",
"node-elm-compiler": "^5.0.5",
"parcel-bundler": "^1.12.0"
"node-elm-compiler": "*",
"parcel": "*",
"@parcel/transformer-yaml": "*",
"@parcel/transformer-elm": "*"
},
"dependencies": {}
}
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
</div>
</div>

<script type="text/javascript" src="./salary-calculator.js">
<script type="module" src="./salary-calculator.js">
</script>
<script type="text/javascript">
<script type="module">
SalaryCalculator.init(
document.getElementById("app-container"),
SalaryCalculator.defaults
Expand Down
Loading

0 comments on commit 673f3f0

Please sign in to comment.