AsherGlick / ResourceCalculator

A Video Game Resource Calculator
https://resourcecalculator.com
GNU General Public License v3.0
58 stars 33 forks source link

Build problem #8

Closed GhostJumper closed 4 years ago

GhostJumper commented 4 years ago

I am having problems with building

Issue 1:

root@localhost:~/ResourceCalculator# npm install
/root/Tobi/Programms/ResourceCalculator
├─┬ eslint@5.16.0
│ ├─┬ @babel/code-frame@7.8.3
│ │ └─┬ @babel/highlight@7.9.0
│ │   ├── @babel/helper-validator-identifier@7.9.5
│ │   └── js-tokens@4.0.0
│ ├─┬ ajv@6.12.2
│ │ ├── fast-deep-equal@3.1.1
│ │ ├── fast-json-stable-stringify@2.1.0
│ │ ├── json-schema-traverse@0.4.1
│ │ └─┬ uri-js@4.2.2
│ │   └── punycode@2.1.1
│ ├─┬ chalk@2.4.2
│ │ ├─┬ ansi-styles@3.2.1
│ │ │ └─┬ color-convert@1.9.3
│ │ │   └── color-name@1.1.3
│ │ ├── escape-string-regexp@1.0.5
│ │ └─┬ supports-color@5.5.0
│ │   └── has-flag@3.0.0
│ ├─┬ cross-spawn@6.0.5
│ │ ├── nice-try@1.0.5
│ │ ├── path-key@2.0.1
│ │ ├─┬ shebang-command@1.2.0
│ │ │ └── shebang-regex@1.0.0
│ │ └─┬ which@1.3.1
│ │   └── isexe@2.0.0
│ ├─┬ debug@4.1.1
│ │ └── ms@2.1.2
│ ├── doctrine@3.0.0
│ ├─┬ eslint-scope@4.0.3
│ │ ├── esrecurse@4.2.1
│ │ └── estraverse@4.3.0
│ ├── eslint-utils@1.4.3
│ ├── eslint-visitor-keys@1.1.0
│ ├─┬ espree@5.0.1
│ │ ├── acorn@6.4.1
│ │ └── acorn-jsx@5.2.0
│ ├─┬ esquery@1.3.1
│ │ └── estraverse@5.1.0
│ ├── esutils@2.0.3
│ ├─┬ file-entry-cache@5.0.1
│ │ └─┬ flat-cache@2.0.1
│ │   ├── flatted@2.0.2
│ │   ├── rimraf@2.6.3
│ │   └── write@1.0.3
│ ├── functional-red-black-tree@1.0.1
│ ├─┬ glob@7.1.6
│ │ ├── fs.realpath@1.0.0
│ │ ├─┬ inflight@1.0.6
│ │ │ └── wrappy@1.0.2
│ │ ├── inherits@2.0.4
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.1
│ ├── globals@11.12.0
│ ├── ignore@4.0.6
│ ├─┬ import-fresh@3.2.1
│ │ ├─┬ parent-module@1.0.1
│ │ │ └── callsites@3.1.0
│ │ └── resolve-from@4.0.0
│ ├── imurmurhash@0.1.4
│ ├─┬ inquirer@6.5.2
│ │ ├── ansi-escapes@3.2.0
│ │ ├─┬ cli-cursor@2.1.0
│ │ │ └─┬ restore-cursor@2.0.0
│ │ │   ├─┬ onetime@2.0.1
│ │ │   │ └── mimic-fn@1.2.0
│ │ │   └── signal-exit@3.0.3
│ │ ├── cli-width@2.2.1
│ │ ├─┬ external-editor@3.1.0
│ │ │ ├── chardet@0.7.0
│ │ │ ├─┬ iconv-lite@0.4.24
│ │ │ │ └── safer-buffer@2.1.2
│ │ │ └─┬ tmp@0.0.33
│ │ │   └── os-tmpdir@1.0.2
│ │ ├── figures@2.0.0
│ │ ├── mute-stream@0.0.7
│ │ ├── run-async@2.4.1
│ │ ├─┬ rxjs@6.5.5
│ │ │ └── tslib@1.13.0
│ │ ├─┬ string-width@2.1.1
│ │ │ └── is-fullwidth-code-point@2.0.0
│ │ ├─┬ strip-ansi@5.2.0
│ │ │ └── ansi-regex@4.1.0
│ │ └── through@2.3.8
│ ├─┬ js-yaml@3.14.0
│ │ ├─┬ argparse@1.0.10
│ │ │ └── sprintf-js@1.0.3
│ │ └── esprima@4.0.1
│ ├── json-stable-stringify-without-jsonify@1.0.1
│ ├─┬ levn@0.3.0
│ │ ├── prelude-ls@1.1.2
│ │ └── type-check@0.3.2
│ ├── lodash@4.17.15
│ ├─┬ minimatch@3.0.4
│ │ └─┬ brace-expansion@1.1.11
│ │   ├── balanced-match@1.0.0
│ │   └── concat-map@0.0.1
│ ├─┬ mkdirp@0.5.5
│ │ └── minimist@1.2.5
│ ├── natural-compare@1.4.0
│ ├─┬ optionator@0.8.3
│ │ ├── deep-is@0.1.3
│ │ ├── fast-levenshtein@2.0.6
│ │ └── word-wrap@1.2.3
│ ├── path-is-inside@1.0.2
│ ├── progress@2.0.3
│ ├── regexpp@2.0.1
│ ├── semver@5.7.1
│ ├─┬ strip-ansi@4.0.0
│ │ └── ansi-regex@3.0.0
│ ├── strip-json-comments@2.0.1
│ ├─┬ table@5.4.6
│ │ ├─┬ slice-ansi@2.1.0
│ │ │ └── astral-regex@1.0.0
│ │ └─┬ string-width@3.1.0
│ │   ├── emoji-regex@7.0.3
│ │   └─┬ strip-ansi@5.2.0
│ │     └── ansi-regex@4.1.0
│ └── text-table@0.2.0
└─┬ terser@4.7.0
  ├── commander@2.20.3
  ├── source-map@0.6.1
  └─┬ source-map-support@0.5.19
    └── buffer-from@1.1.1

npm WARN ResourceCalculator No repository field.
npm WARN ResourceCalculator No license field.

Issue 2:

root@localhost:~/ResourceCalculator# python3 build.py

/root/Tobi/Programms/ResourceCalculator/core/calculator.js
     6:14  error  Statement inside of curly braces should be on next line                                                        brace-style
   996:2   error  Missing semicolon                                                                                              semi
  1482:4   error  Closing curly brace should be on the same line as opening curly brace or on the line after the previous block  brace-style

✖ 3 problems (3 errors, 0 warnings)
  3 errors and 0 warnings potentially fixable with the `--fix` option.

output/minecraft
output/astroneer
output/breath of the wild

Steps to recreate:

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic
AsherGlick commented 4 years ago

Good news, both of those issues you described are warnings. It does say "error" in the second one but that is actually a linter check saying that there are some linter errors in the javascript. If you look in the generated directory "output" you should see the calculators. If you sync to the most recent version (634a65896c3e404da15fee0da906719240c89480 at the time of writing) I have fixed those warnings and modified the build.py output to be more clear that it is in fact generating the calculator dispute any warnings.