Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
gulp-gapps-rename
Advanced tools
Gulp Plugin to rename files to Google Apps Script compatible names. To be used before uploading files to GApps
If you're developing for Google App Script, you'll soon realize that the platform only supports .gs
and .html
files.
You probably don't want to limit yourself to these 2 file extensions, and that's why this plugin exists.
This gulp plugin helps you with local development of Google App Script projects by renaming your local files to what GApps expects before uploading.
Checkout the Usage section to see how this is done in detail.
$ npm install --save-dev gulp-gapps-rename
const gulp = require('gulp');
const gappsRename = require('gulp-gapps-rename');
gulp.task('default', () => {
gulp.src('src/*')
.pipe(gappsRename())
.pipe(gulp.dest('dist'))
);
The plugin's job is to take in a stream of files and prepare them to be uploaded to a Google App Script project.
It does so by applying the two following type of operations:
This gulp plugin will rename file extensions based on the following rules:
.gs.js
files will be renamed to .gs
.js
files will be renamed to .js.html
.css
files will be renamed to .css.html
This gulp plugin will wrap the content of certain files based on the following rules:
.js
files will be wrapped with a <script>
tag.css
files will be wrapped with a <style>
tagImagine you have the following list of files:
backend.gs.js
scripts.js
styles.css
template.html
After applying the gulp-gapps-rename
plugin, the files will become:
backend.gs # the .js is dropped
scripts.html # The content will be wrapped by a <script> tag
styles.css # The content will be wrapped by a <style> tag
template.html # untouched
This is the main method of the gulp plugin that you should pass to .pipe()
.
The plugin currently does not have any options.
Contributions are welcome!
If you want to contribute, don't hesitate to open a new issue or send a pull request to this repo.
You can run the test by running:
$ npm test
MIT © rodyhaddad
FAQs
Gulp Plugin to rename files to Google Apps Script compatible names. To be used before uploading files to GApps
The npm package gulp-gapps-rename receives a total of 0 weekly downloads. As such, gulp-gapps-rename popularity was classified as not popular.
We found that gulp-gapps-rename 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.