Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
simple-web-cli
Advanced tools
⚡ 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.
⚡ 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
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 95 weekly downloads. As such, simple-web-cli popularity was classified as not popular.
We found that simple-web-cli demonstrated a not healthy version release cadence and project activity because the last version was released 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.