Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new tailwind config with @apply support
- Loading branch information
Showing
61 changed files
with
3,522 additions
and
2,102 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
|
||
dist | ||
|
||
data |
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,41 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"plugin:jest/recommended", | ||
"prettier", | ||
"plugin:prettier/recommended", | ||
"prettier/@typescript-eslint", | ||
"prettier/react" | ||
], | ||
"plugins": ["react-hooks"], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "latest" | ||
} | ||
}, | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn" | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"vetur.format.defaultFormatterOptions": { | ||
"prettier": { | ||
"singleQuote": true | ||
} | ||
}, | ||
"jsxSingleQuote": true | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"baseUrl": "http://localhost:3000", | ||
"video": false | ||
} | ||
"baseUrl": "http://localhost:3000", | ||
"video": false | ||
} |
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 |
---|---|---|
@@ -1,45 +1,55 @@ | ||
const shell = require('shelljs'); | ||
const dotenv = require('dotenv'); | ||
dotenv.config({ path: '.env' }); | ||
const shell = require('shelljs') | ||
require('dotenv').config() | ||
|
||
// Start Config | ||
const PM2_NAME = 'h' | ||
const REMOTE_DIR = '/var/www/hopyshopy/www' | ||
const REMOTE_HOST = '139.59.42.129' | ||
const REMOTE_host = '139.59.42.129' | ||
const REMOTE_USER = 'root' | ||
const PRIVATE_KEY = process.env.LIVE_KEY | ||
const FILE_NAMES = '__sapper__ package.json static' | ||
// End Config | ||
|
||
// Zip and send file to remote server | ||
shell.cd('prod').exec('tar czf arialshop.tar.gz ' + FILE_NAMES) | ||
.exec('scp -i ' + PRIVATE_KEY + ' arialshop.tar.gz ' + REMOTE_USER + '@' + REMOTE_HOST + ':' + REMOTE_DIR); | ||
shell | ||
.cd('prod') | ||
.exec('tar czf arialshop.tar.gz ' + FILE_NAMES) | ||
.exec( | ||
'scp -i ' + | ||
PRIVATE_KEY + | ||
' arialshop.tar.gz ' + | ||
REMOTE_USER + | ||
'@' + | ||
REMOTE_host + | ||
':' + | ||
REMOTE_DIR | ||
) | ||
shell.rm('arialshop.tar.gz') | ||
|
||
// Extract and reload pm2 | ||
var host = { | ||
server: { | ||
host: REMOTE_HOST, | ||
port: 22, | ||
userName: REMOTE_USER, | ||
privateKey: require('fs').readFileSync(PRIVATE_KEY) | ||
}, | ||
commands: [ | ||
"cd " + REMOTE_DIR, | ||
"sudo tar xf arialshop.tar.gz -C " + REMOTE_DIR, | ||
"sudo rm arialshop.tar.gz", | ||
"sudo npm install --prod", | ||
"sudo pm2 reload " + PM2_NAME | ||
] | ||
}; | ||
server: { | ||
host: REMOTE_host, | ||
port: 22, | ||
userName: REMOTE_USER, | ||
privateKey: require('fs').readFileSync(PRIVATE_KEY), | ||
}, | ||
commands: [ | ||
'cd ' + REMOTE_DIR, | ||
'sudo tar xf arialshop.tar.gz -C ' + REMOTE_DIR, | ||
'sudo rm arialshop.tar.gz', | ||
'sudo npm install --prod', | ||
'sudo pm2 reload ' + PM2_NAME, | ||
], | ||
} | ||
|
||
var SSH2Shell = require('ssh2shell'), | ||
//Create a new instance passing in the host object | ||
SSH = new SSH2Shell(host), | ||
//Use a callback function to process the full session text | ||
callback = function (sessionText) { | ||
console.log(sessionText) | ||
} | ||
//Create a new instance passing in the host object | ||
SSH = new SSH2Shell(host), | ||
//Use a callback function to process the full session text | ||
callback = function (sessionText) { | ||
console.log(sessionText) | ||
} | ||
|
||
//Start the process | ||
SSH.connect(callback); | ||
SSH.connect(callback) |
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,11 @@ | ||
{ | ||
"version": 2, | ||
"name": "sapper-commerce", | ||
"builds": [ | ||
{ | ||
"src": "package.json", | ||
"use": "now-sapper" | ||
} | ||
], | ||
"regions": ["bom1"] | ||
} |
Oops, something went wrong.