description
...
You need Gulp installed globally:
$ npm i -g gulp
Install the dependencies:
$ npm install
You can execute any task like this:
$ gulp [task-name]
This is the list of available tasks:
-
dev: build the application and runs it in a dev server (webpack-dev-server)
-
dist: build a distribution version of the application
flags:
- --stage: builds the stage distribution version
-
stage: builds the stage distribution version. It is a shortcut to
gulp dist --stage
task -
tdd: executes specs in
~/spec/unit/
and watches for changes -
ci: executes specs ~/spec/unit/ one time (useful for CI scenarios, jenkins job)
-
lint: executes eslint task
Run in the dev server:
$ gulp dev
Open http://localhost:9090/webpack-dev-server/
in a browser.
- Run Gulp's task:
$ gulp dist
- Move the content of dist folder to the place where main site can reach it
...
-
Run Gulp's task:
gulp stage
-
Move the content of stage folder to a web server
-
Point to the
index.html
file
This project uses the following tech stack:
- Gulp
- Webpack
- React
- Babel - compiler for turning ES6+ code into ES5
- Mocha - feature-rich JavaScript test framework
- Chais - BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework
- PhantomJS - is a scripted, headless browser used for automating web page interaction.
- Sinon - standalone test spies, stubs and mocks for JavaScript. No dependencies, works with any unit testing framework.
- Axios - promise based HTTP client for the browser and node.js