SMPT website & build tools
Project uses node server environment. If you haven't already, install Node.js
- To verify Node installation, enter at command line:
node --version
- Download repository and unzip
- Install dependencies:
- Using Command Line (Win: cmd or powershell, Mac: terminal) navigate to application directory e.g.
cd downloads/SMPT-master
- From within application directory, enter at command line:
npm i
- Using Command Line (Win: cmd or powershell, Mac: terminal) navigate to application directory e.g.
HTML, SCSS, and Javascript files for editing are stored in src
directory.
Additional files for upload without processing website are in src/assets
directory.
Temporary build files stored in build
directory
Processed files output to publish
directory
Use npm scripts at Command Line from within application directory
npm run build
Processes src
directory with the following step:
-clean: empties build directory and publish/assets.
-sass: compile SCSS to CSS and output to build directory.
-autoprefix: add vendor prefixes for higher browser compatibility to css in build directory and output to publish.
-babel: compile JavaScript to ES5 for higher browser compaitibility and output to publish directory.
-copy: moves additional files to publish directory
npm run deploy
Upload publish
directory to gh-pages branch of GitHub repository.
- Must run
npm run build
before deploying. - Must be a contributer to desired repository
package.json
should contain correct "homepage" and "repository" url.