forked from vigetlabs/blendid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
133 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ Desktop.ini | |
node_modules | ||
**/generated/_icons.sass | ||
npm-debug.log | ||
.vscode/ | ||
.vscode/ | ||
/_helpers/_accessDeploy.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"hostname": "1.1.1.1", | ||
"username": "user", | ||
"port": 22, | ||
"hostDestination": "/home/www/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//Rsync | ||
const Rsync = require('rsync'); | ||
const pkg = require('../package.json'); | ||
const access = require('./_accessDeploy.json'); | ||
|
||
const directory = pkg.name; | ||
const startDate = pkg.startDate; | ||
const localPath = 'public/'; | ||
const hostname = access.hostname; | ||
const username = access.username; | ||
const port = access.port; | ||
const hostDestination = `${access.hostDestination}${startDate}_${directory}`; | ||
const rsync = new Rsync() | ||
.set('progress') | ||
.shell(`ssh -p ${port}`) | ||
.exclude(['.DS_Store']) | ||
.flags('az') | ||
.source(localPath) | ||
.destination(`${username}@${hostname}:${hostDestination}/`); | ||
|
||
rsync.execute(function (error, code) { | ||
if (error) { | ||
console.log(error); | ||
} | ||
if (code === 0) { | ||
console.log(`Deployed 'build/' to ${username}@${hostname}:${hostDestination}/`); | ||
console.log(`http://dev.csscoder.pro/${directory}/csscoder.html`); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ Desktop.ini | |
node_modules | ||
**/generated/_icons.sass | ||
npm-debug.log | ||
_accessDeploy.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
For npm package management- use YARN https://yarnpkg.com/lang/en/ | ||
|
||
# Tasks | ||
|
||
### Development task | ||
|
||
yarn run blendid | ||
// or | ||
yarn dev | ||
|
||
### Production task | ||
|
||
yarn run blendid -- build | ||
// or | ||
yarn build | ||
|
||
### Note | ||
|
||
1. Sources build to 'public' folder. | ||
|
||
2. All sources in 'src' folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"hostname": "1.1.1.1", | ||
"username": "user", | ||
"port": 22, | ||
"hostDestination": "/home/www/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//Rsync | ||
const Rsync = require('rsync'); | ||
const pkg = require('../package.json'); | ||
const access = require('./_accessDeploy.json'); | ||
|
||
const directory = pkg.name; | ||
const localPath = 'public/'; | ||
const hostname = access.hostname; | ||
const username = access.username; | ||
const port = access.port; | ||
const hostDestination = `${access.hostDestination}${directory}`; | ||
const rsync = new Rsync() | ||
.set('progress') | ||
.shell(`ssh -p ${port}`) | ||
.exclude(['.DS_Store']) | ||
.set('delete') | ||
.flags('az') | ||
.source(localPath) | ||
.destination(`${username}@${hostname}:${hostDestination}/`); | ||
|
||
rsync.execute(function (error, code) { | ||
if (error) { | ||
console.log(error); | ||
} | ||
if (code === 0) { | ||
console.log(`Deployed 'public/' to ${username}@${hostname}:${hostDestination}/`); | ||
console.log(`http://dev.csscoder.pro/${directory}/csscoder.html`); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters