svelte-hackernews icon indicating copy to clipboard operation
svelte-hackernews copied to clipboard

Cross platform support

Open tomcon opened this issue 8 years ago • 0 comments

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

tomcon avatar Nov 27 '17 18:11 tomcon