ondemand v0.0.2
OnDemand
An interactive site editor for Volcanic themes.
How to setup
- hello
- hello Clone this repository
git clone https://github.com/volcanic-uk/onDemand.gitcd to the downloaded folder.
Then run
npm installDev server
to run the dev server on localhost
npm startRun this on a volcanic theme.
//TODO
Build to production
To build and transpile the project run
npm run buildthen to run the production code locally
npm run servermake sure that your build the project before running the server in production.
Run tests
For testing we are using Mocha & Chai and webpack with mocha-loader to run tests in the browser The following will open your browser and run the tests in the application interface directly
npm testThe test command will do 3 things:
- Run all your unit tests in node environment ( to run only this you can run
npm run test:cli). - Compile and build a development server and test files to run the tests in the browser ( to run only this you can run
npm run test:e2e). - Lint your entire application ( to run only this you can run
npm run lint).
Linting
you can lint everything you write in the src folder by running the command
npm run lintto try and auto fix some linting issues, run
npm run lint:fixWhen you run npm start, npm test or npm build the lint command will run.
Making new commits
Always make sure to run npm run build before you commit changes.
This project utilizes angular commit style for new commits.
Deploy to now
Always make sure to npm run build before you deploy.
To test outside of your localhost run the following command and follow the instructions
now --publicConfigs
We are using webpack to build the project with 3 types of configs:
- Dev
- Test
- Production
more to come ... 👻