Pre-requisites
node >= 6.0 (https://nodejs.org/en/download/current/)
npm >= 3.0 (comes pre-installed by node)
yarn (npm install yarn -g)
Install & start default test
npm install
npm start
Commands
npm start: "npm run redux-classcad",
npm run doc: "node_modules/.bin/esdoc -c esdoc.json",
npm run babel: "babel src -d build --no-babelrc --presets=es2015,stage-0 --plugins=transform-runtime",
npm run browser: "webpack --progress --colors",
npm run build: "npm run babel && npm run browser && npm run doc",
npm run classcad: "node classcad",
npm run redux: "webpack-dev-server --env.dev --progress --colors --config ./tests/redux/webpack.config.babel.js",
npm run redux-prod: "webpack-dev-server --env.prod --progress --colors --config ./tests/redux/webpack.config.babel.js",
npm run redux-classcad: "node_modules/.bin/npm-run-all --parallel classcad redux",
npm run redux-prod-classcad: "node_modules/.bin/npm-run-all --parallel classcad redux-prod",
npm run build-redux: "webpack --env.prod --progress --colors --config ./tests/redux/webpack.config.babel.js"
MacOS/Linux support (experimental)
ClassCAD depends on Windows and cannot run natively on Linux based systems. Though Wine can be used to emulate a Windows environment. This is highly experimental and certain ClassCAD or SMLIB related features may not run correctly or run at all. At the moment only x86 ClassCAD builds are supported.
Install wine and winetricks
brew install wine winetricks // MacOS
apt-get install wine winetricks // Linux
Now install the Visual Studio distributables for 2013 and 2015.
winetricks vcrun2013 vcrun2015
All project-commands (npm start, etc.) should work now.