Skip to content
This repository was archived by the owner on Aug 11, 2019. It is now read-only.
This repository was archived by the owner on Aug 11, 2019. It is now read-only.

Cross platform support #13

@tomcon

Description

@tomcon

Over a couple of hurdles but fell at the end.

node -v
v8.9.1

npm install cross-env --save-dev
npm install rimraf --save-dev

updated package.json scripts section:

  "scripts": {
    "build:all": "rimraf dist && mkdir -p dist server/manifests && npm run build:server && npm run build:client && npm run build:sw",
    "build:server": "node build",
    "build:client": "rimraf client/dist && rollup -c client/rollup.config.js",
    "build:sw": "rollup -c service-worker/rollup.config.js",
    "deploy": "npm run build:all && now && now alias",
    "dev:client": "rimraf client/dist && export DEV=true && rollup -c client/rollup.config.js -w",
    "dev:sw": "cross-env DEV=true && rollup -c service-worker/rollup.config.js -w",
    "dev": "cross-env DEV=true && npm run build:server && npm run dev:client & npm run dev:sw & cross-env DEV=true && node server",
    "start": "node server",
    "lint": "eslint client && eslint server"
  },

Fails on this:

> svelte-hackernews@1.0.0 build:server C:\Apps\Testarea\svelte\_hackernews
> node build
(node:5492) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): TypeError: ast.body is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions