This repo is the result of following the step-by-step instructions in the StealJS Quick Start Guide. You can follow that guide to create this example app from scratch.
Prerequisites:
- Install Node.js and npm.
- Set up a web server. If you don’t have one, you can install this simple command-line http-server.
Clone the repo.
git clone [email protected]:stealjs/quick-start.gitInstall Node modules
cd quick-start
npm installRun the following command to create a new folder in the project called dist.
npm run buildThe dist folder contains everything needed to run your app in production.
Spin up your web server or run http-server:
http-serverOpen file http://localhost:8080/index.html in browser.
Open the Network panel in Developer Tools and you should see only two JavaScript files. The steal-tools grunt task builds a graph of the required files, minifies and concatenates all the scripts into main.js.
