These are chat archives for brunch/brunch

Dec 2016
Dec 12 2016 10:38
morning all
I was wanting to use typescript on both the server and front-end - Is this possible ? I can very easily handle the client / front end and it works rather well - however I am struggling to get the server-side working, and was wondering if it were possible, and if so, if someone has a sample config as a starting guide
Denys Dovhan
Dec 12 2016 17:45
@jmls can you provide a better explanation of your problem on server-side?
Dec 12 2016 19:59
@denysdovhan hey! I can't seem to get brunch to compile the server-side typescript files : or, if I can, they all get zapped into vendor.js, which is obviously not what I want to do ;)
my tsconfig is thus
    "compilerOptions": {
      "target": "es2015",
      "module": "commonjs",
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "rootDir": "typescript",
      "outDir": "./"

    "include": [

    "exclude": []
Mauro Oviedo
Dec 12 2016 20:22
@jmls i think ur error is related to
ur files definition
Dec 12 2016 20:29
ya, I also think so - but I can't figure out how to compile the server .ts files but keep them as separate .js files rather than concatenating like the client side
Mauro Oviedo
Dec 12 2016 20:33
just create add another items to joinTo
joinTo: {
      'javascripts/server.js': /^server/,
u have to separate you server side code into it's own directory