A metalsmith base starter kit used at Evocode.com. Some features:
- Metalsmith
- Gulp
- Bootstrap 4
- jQuery
- Babel / ES6
- Development Server
- Static Site, Blog, Robots, Sitemap
- MIT license
mkdir newproject
git clone [email protected]:evocode/metalsmith-base.git newproject
cd newproject
npm install
This command will fully build a development version of the site, start the gulp watchers, and setup a development server. The command output will list the server address to open in your browser.
npm run start
This command will build a production version of the site and sync it with a git repository, ready to be comitted.
To link the build process to your repository, you can do of the following options:
- Create a repo dotfile:
echo "[email protected]:username/repository.git" > .buildrepo
- Edit
package.json
script section:"build": "./node_modules/.bin/gulp --production --build && ./build.sh [email protected]:username/repository.git"
After the repository is setup, simply run:
npm run build
npm run dev
- Run a development buildnpm run start
- Run a development build, start the development server and watchersnpm run debug
- Run a development build in debug modenpm run production
- Run a production build, compiles assets and minifiesnpm run build
- Run a production build and sync with gitnpm run watch
- Start the gulp watchersnpm run vendor
- Copies over any vendor files from node_modules to metalsmith assets
All commands can be run directly with: ./node_modules/.bin/gulp