Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
simple-web-cli
Advanced tools
Readme
⚡ A simple compiler to automate the development in HTML
, CSS | SCSS
, JS | TS
and PHP
languages, focused on Shared Hosts and using SFTP or FTP to deploy files processed automatically to final server.
npm i simple-web-cli -D
npx sw create
npx sw create
: prepares the environment without starting the service npx sw
npx sw
or npx sw start
: prepares the environment and starts the service npx sw build
npx sw build
: compiles the contents from src
and zips it to release.zip
src
is the default directory of development to watchdist
is the default directory with the compiled codesrc
.Import from external modules
// File: ./src/index.js
import { s } from 'node-and-vite-helpers';
const body = s('body');
// Output to ./dist/index.js:
!function(){"use strict";var e="body";document.querySelector(e)}();
Import from local modules
// File ./helpers/sum.js
const sum = (a, b) => a + b;
export default sum;
// File: ./src/index.js
import sum from '../helpers/sum';
console.log(sum(1, 2));
// Output to ./dist/index.js:
!function(){"use strict";console.log(3)}();
.swrc.js
, just insert the access infos:SFTP | FTP |
|
|
|
Assuming the root
option is /
and the remote directory is /var/www
, the input and output of the directories would be:
./src/
html/index.html
./dist/
html/index.html
/var/www/
html/index.html
You can only use one protocol at a time: SFTP
or FTP
INPUT
<div>
<h1>Title</h1>
<p>Paragraph</p>
</div>
OUTPUT
<div><h1>Title</h1><p>Paragraph</p></div>
.html
files recursively, based on the scss
import, for example:
<html>
<body>
<!-- import('./views/_header.html') -->
<section>
<!-- import('./views/_main.html') -->
</section>
<!-- import('../_footer.html') -->
</body>
</html>
INPUT
div {
display: flex;
}
OUTPUT
div{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}
INPUT
<?
$var = 'text'
?>
<div>
<?=$var?>
</div>
OUTPUT
<?php $var='text'?><div><?=$var?></div>
INPUT
# comment
<Directory /var/www/>
# another comment
Options Indexes FollowSymLinks MultiViews
</Directory>
OUTPUT
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
</Directory>
.swrc.js
{
strings: {
'*token*': {
start: '123',
build: '456'
},
'*site-name*': {
start: 'dev.weslley.io',
build: 'weslley.io'
}
}
}
INPUT
<?
$_POST['*token*'];
$site = '*site-name*';
OUTPUT DEV (npx sw)
<?php $_POST['123'];$site='dev.weslley.io';
OUTPUT BUILD (npx sw build)
<?php $_POST['456'];$site='weslley.io';
.swrc.js
Contributions | GitHub |
---|---|
Author | |
Translate en-US | |
Translate Review |
Create
dev dependencies
Made with sadness and sorrow in rainy nights by Weslley Araújo 💜
FAQs
⚡ A simple compiler to automate the development in HTML, CSS, SCSS, JavaScript, TypeScript and PHP languages, focused on Shared Hosts and using SFTP or FTP to deploy files processed automatically to final server.
The npm package simple-web-cli receives a total of 0 weekly downloads. As such, simple-web-cli popularity was classified as not popular.
We found that simple-web-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.