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

Cross platform support #13

Open
tomcon opened this issue Nov 27, 2017 · 0 comments
Open

Cross platform support #13

tomcon opened this issue Nov 27, 2017 · 0 comments

Comments

@tomcon
Copy link

tomcon commented Nov 27, 2017

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:

> [email protected] 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant