A Squarespace template project scaffold that keeps your source code separate from your template code.
If you haven't already done so, install grunt-init.
Once grunt-init is installed, clone the grunt-init-squarespace template into your ~/.grunt-init/
directory:
git clone https://github.com/kitajchuk/grunt-init-squarespace.git ~/.grunt-init/squarespace
If you already have grunt-init-squarespace installed and need to update it, you can do the following:
cd ~/.grunt-init/squarespace
git pull origin master
This init template is installing with the latest release of grunt-nautilus. Run the following command from your project's root, replacing "Firefly" with your project name:
grunt-init squarespace --project "Firefly"
This creates the following files in the current working directory:
- .gitignore
- Gruntfile.js
- package.json
Now you can install the necessary packages:
# Node modules
npm install
This will install grunt, grunt-nautilus and its peer packages as well as jquery and hammerjs.
Now clone your squarespace template into a directory called sqs_template
directory and manage your site pushes from there.
git clone https://firefly.squarespace.com/template.git sqs_template
You can also check out node-squarespace-server if you are interested in a local server for your project workflow.