rev-mobile-test v0.0.1
#Revolve Clothing mobile Web
##Installation
Here are the steps needed to install this thing:
git clone git@github.com:FiresqueakLLC/revolve-clothing-mobile-web.git
cd revolve-clothing-mobile-web
npm install
// this will run in watch mode with no server
npm start
// this will run in watch mode along with the dev server
npm run webpack-dev-serverUpon starting the dev server, a page will open in the default browser.
##Building
To build the compiled version:
npm run build##Test
To run the tests, issue the following command:
npm testRunning npm test will build static assets, start up a web dev server, and
eventually run casperjs. It'll also run karma in parallel for unit tests.
If you are running npm start in a separate tab, then issue the following
command:
npm run casperjs:suite -- -dThe -d will disable the server and expect the webpack dev server to be running
on port 8080, i.e the same port when running npm start.
Here are the different commands for running unit tests:
# will run the tests in a watch mode where it'll listen for changing and reload
# the tests - think of this as a tdd mode of sorts
npm run watch:test
# will run the tests on a single run using PhantomJS and turning off colors in
# case this is ran from a CI or something
npm run karma:singleTo see the full list of npm scripts available, enter this into the terminal:
npm runMore information on common npm commands can be found at docs/npm.md.
9 years ago