Skip to content

Commit

Permalink
Removed Linux only commands from build script (#131)
Browse files Browse the repository at this point in the history
* moved mkdir -p && cp to release run command

* Updating readme

* Updated readme with suggestions from comments

* Added missing cognite logo
  • Loading branch information
j-bjorne authored Feb 6, 2020
1 parent 08e2d59 commit 9354cdd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ Reveal viewer a highly performant viewer for the Web written in a combination of
This repository contains the source code for the new version of the Cognite Reveal 3D viewer,
including its file loading libraries.

## Prerequisites ##
Install [Node](https://nodejs.org/en/download/)
Install [Rust](https://www.rust-lang.org/)

### Install wasm-pack

##### Windows

With Rust installed and ready to go, open a command shell and run `cargo install wasm-pack`

##### Linux / macOS

You can either run the same command as in Windows, or install it faster through https://rustwasm.github.io/wasm-pack/

## Getting started ##

To test the viewer, you need to build the viewer first and then the examples:
Expand Down
Binary file added cognite_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"release": "webpack --env.three-examples false --env.cesium-examples false",
"build": "mkdir -p dist && cp package.json README.md dist/ && webpack --env.development",
"release": "mkdir -p dist && cp package.json README.md dist/ && webpack --env.three-examples false --env.cesium-examples false",
"build": "webpack --env.development",
"clean": "rimraf -rf dist/ target/ pkg/",
"test": "jest",
"coverage": "jest --coverage",
Expand Down

0 comments on commit 9354cdd

Please sign in to comment.