I'm developing a new game and I've seen that many games use TypeScript and SCSS. I'm trying to use them as well, but I have a few questions:
I see packages like these, but the game doesn't have a node_modules folder. Where are those modules? Should I run npm install to download them?
"bga-cards": "thoun/bga-cards#3.1.1",
"bga-animations": "thoun/bga-animations#1.1.1",
"bga-zoom": "thoun/bga-zoom#1.0.2",
"bga-help": "thoun/bga-help#1.0.0"
I've seen a tsconfig.json like this:
{
"rootDir": ".",
"compilerOptions": {
"target": "es5",
"module": "none",
"lib": ["dom", "esnext"],
"sourceMap": false,
"outFile": "aux.js"
},
"files": [
"bga-framework.d.ts",
"bga-zoom.d.ts",
"bga-score-sheet.d.ts",
"node_modules/bga-help/src/help-manager.ts",
"node_modules/bga-animations/src/animations.ts",
"node_modules/bga-animations/src/animations/attach-with-animation.ts",
"node_modules/bga-animations/src/animations/cumulated-animations.ts",
"node_modules/bga-animations/src/animations/pause-animation.ts",
"node_modules/bga-animations/src/animations/show-screen-center-animation.ts",
"node_modules/bga-animations/src/animations/slide-animation.ts",
"node_modules/bga-animations/src/animations/slide-to-animation.ts",
"node_modules/bga-animations/src/animations-utils.ts",
"node_modules/bga-animations/src/animation-manager.ts",
"node_modules/bga-cards/src/animations.ts",
"node_modules/bga-cards/src/stocks/card-stock.ts",
"node_modules/bga-cards/src/stocks/deck.ts",
"node_modules/bga-cards/src/stocks/all-visible-deck.ts",
"node_modules/bga-cards/src/stocks/line-stock.ts",
"node_modules/bga-cards/src/stocks/slot-stock.ts",
"node_modules/bga-cards/src/stocks/void-stock.ts",
"node_modules/bga-cards/src/card-manager.ts",
"node_modules/bga-cards/src/sort.ts",
"src/aux.d.ts",
"src/aux.ts",
"src/define.ts"
]
}
Again, should I actually download those node_modules files? Because when I download an already working project, those files aren't present.
I've tried a few things, but when I try to transpile from TypeScript to JavaScript, I get errors related to these files. Does anyone have a guide or something that explains the basics of how this is supposed to work? Or maybe a template project I could use as a starting point?
Thank you very much. Best regards!
I see packages like these, but the game doesn't have a node_modules folder. Where are those modules? Should I run npm install to download them?
"bga-cards": "thoun/bga-cards#3.1.1",
"bga-animations": "thoun/bga-animations#1.1.1",
"bga-zoom": "thoun/bga-zoom#1.0.2",
"bga-help": "thoun/bga-help#1.0.0"
I've seen a tsconfig.json like this:
{
"rootDir": ".",
"compilerOptions": {
"target": "es5",
"module": "none",
"lib": ["dom", "esnext"],
"sourceMap": false,
"outFile": "aux.js"
},
"files": [
"bga-framework.d.ts",
"bga-zoom.d.ts",
"bga-score-sheet.d.ts",
"node_modules/bga-help/src/help-manager.ts",
"node_modules/bga-animations/src/animations.ts",
"node_modules/bga-animations/src/animations/attach-with-animation.ts",
"node_modules/bga-animations/src/animations/cumulated-animations.ts",
"node_modules/bga-animations/src/animations/pause-animation.ts",
"node_modules/bga-animations/src/animations/show-screen-center-animation.ts",
"node_modules/bga-animations/src/animations/slide-animation.ts",
"node_modules/bga-animations/src/animations/slide-to-animation.ts",
"node_modules/bga-animations/src/animations-utils.ts",
"node_modules/bga-animations/src/animation-manager.ts",
"node_modules/bga-cards/src/animations.ts",
"node_modules/bga-cards/src/stocks/card-stock.ts",
"node_modules/bga-cards/src/stocks/deck.ts",
"node_modules/bga-cards/src/stocks/all-visible-deck.ts",
"node_modules/bga-cards/src/stocks/line-stock.ts",
"node_modules/bga-cards/src/stocks/slot-stock.ts",
"node_modules/bga-cards/src/stocks/void-stock.ts",
"node_modules/bga-cards/src/card-manager.ts",
"node_modules/bga-cards/src/sort.ts",
"src/aux.d.ts",
"src/aux.ts",
"src/define.ts"
]
}
Again, should I actually download those node_modules files? Because when I download an already working project, those files aren't present.
I've tried a few things, but when I try to transpile from TypeScript to JavaScript, I get errors related to these files. Does anyone have a guide or something that explains the basics of how this is supposed to work? Or maybe a template project I could use as a starting point?
Thank you very much. Best regards!