Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Use new domain - closes #122
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf committed Feb 19, 2020
1 parent 22154f3 commit 0cd91f0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/commands/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function(args, options, callback) {
}

function listBuildingBlocks(args, options, callback) {
fetchUrl('foundation.zurb.com', '/building-blocks/data/building-blocks.json', function(blocksJson) {
fetchUrl('get.foundation', '/building-blocks/data/building-blocks.json', function(blocksJson) {
var i = 0;
var index = "";
var blocks = JSON.parse(blocksJson);
Expand Down Expand Up @@ -131,7 +131,7 @@ function installFiles(name, callback) {
var filename = name + filetype.name;
var path = '/building-blocks/files/building-blocks/' + name + '/' + filename;
fs.mkdir(filetype.directory, function() {
fetchUrl('foundation.zurb.com', path, function(file) {
fetchUrl('get.foundation', path, function(file) {
if(file.length > 0) {
fs.writeFile(filetype.directory + filetype.prefix + filename, file, cb);
} else {
Expand All @@ -145,7 +145,7 @@ function installFiles(name, callback) {
function downloadZipFile(name, callback) {
var filename = name + '.zip';
var path = '/building-blocks/files/building-blocks/' + filename;
fetchUrl('foundation.zurb.com', path, function(file) {
fetchUrl('get.foundation', path, function(file) {
if(file.length > 0) {
fs.writeFile(filename, file, callback);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var helpText = {
'',
'To learn more about a specific command, type ' + 'foundation help <command>'.cyan,
'',
'Need more help? Ask a question on the Foundation Forum: ' + 'foundation.zurb.com/forum'.cyan
'Need more help? Ask a question on the Foundation Forum: ' + 'foundation.discourse.group'.cyan
],
'new': [
'Usage:',
Expand Down
4 changes: 2 additions & 2 deletions lib/commands/kits.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function listKits(args, options, callback) {

function getKitList(callback) {
// For now until kits are implemented, use categories to test out build
fetchUrl('foundation.zurb.com', '/building-blocks/data/kits.json', function(kitJson) {
fetchUrl('get.foundation', '/building-blocks/data/kits.json', function(kitJson) {
var kits = JSON.parse(kitJson);
callback(kits);
});
Expand Down Expand Up @@ -72,7 +72,7 @@ function installKit(args, options, callback) {
function downloadZipFile(name, callback) {
var filename = name + '.zip';
var path = '/building-blocks/files/kits/' + filename;
fetchUrl('foundation.zurb.com', path, function(file) {
fetchUrl('get.foundation', path, function(file) {
if(file.length > 0) {
fs.writeFile(filename, file, callback);
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"update-notifier": "^0.2.2",
"which": "^1.0.8"
},
"homepage": "https://foundation.zurb.com",
"homepage": "https://get.foundation",
"repository": {
"type": "git",
"url": "https://github.com/zurb/foundation-cli"
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Foundation CLI

This is the command-line interface for [Foundation](https://foundation.zurb.com) family of frameworks. It downloads and installs blank templates in any of the three Foundation frameworks:
This is the command-line interface for [Foundation](https://get.foundation) family of frameworks. It downloads and installs blank templates in any of the three Foundation frameworks:

- [Foundation for Sites](https://foundation.zurb.com/sites), a framework for responsive websites
- [Foundation for Apps](https://foundation.zurb.com/apps), a framework for responsive web apps ([deprecated](https://github.com/zurb/foundation-apps#deprecation-notice))
- [Foundation for Emails](https://foundation.zurb.com/emails), a framework for responsive email
- [Foundation for Sites](https://get.foundation/sites), a framework for responsive websites
- [Foundation for Apps](https://get.foundation/apps), a framework for responsive web apps ([deprecated](https://github.com/zurb/foundation-apps#deprecation-notice))
- [Foundation for Emails](https://get.foundation/emails), a framework for responsive email

## Requirements

Expand Down

0 comments on commit 0cd91f0

Please sign in to comment.