Gathering detailed insights and metrics for @diotoborg/architecto-at
Gathering detailed insights and metrics for @diotoborg/architecto-at
Gathering detailed insights and metrics for @diotoborg/architecto-at
Gathering detailed insights and metrics for @diotoborg/architecto-at
npm install @diotoborg/architecto-at
Typescript
Module System
Node Version
NPM Version
71.7
Supply Chain
100
Quality
86.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
5,714
Last Day
3
Last Week
425
Last Month
1,897
Last Year
5,714
1,941 Commits
1 Watching
1 Branches
1 Contributors
Latest Version
4.14.82
Package Id
@diotoborg/architecto-at@4.14.82
Unpacked Size
184.44 kB
Size
97.26 kB
File Count
509
NPM Version
10.8.2
Node Version
20.17.0
Publised On
01 Sept 2024
Cumulative downloads
Total Downloads
Last day
-93.2%
3
Compared to previous day
Last week
7.9%
425
Compared to previous week
Last month
0.1%
1,897
Compared to previous month
Last year
0%
5,714
Compared to previous year
29
Gulp plugin to preprocess HTML, JavaScript, and other files based on custom context or environment configuration
Package | gulp-preprocess |
Node Version | >= 18 |
Gulp Version | >= 4 |
npm install gulp-preprocess --save-dev
1var preprocess = require("gulp-preprocess"); 2 3gulp.task("html", function () { 4 gulp 5 .src("./app/*.html") 6 .pipe(preprocess({ context: { NODE_ENV: "production", DEBUG: true } })) // To set environment variables in-line 7 .pipe(gulp.dest("./dist/")); 8}); 9 10gulp.task("scripts", function () { 11 gulp.src(["./app/*.js"]).pipe(preprocess()).pipe(gulp.dest("./dist/")); 12});
1<head> 2 <title>Your App</title> 3 4 <!-- @if NODE_ENV='production' --> 5 <script src="some/production/lib/like/analytics.js"></script> 6 <!-- @endif --> 7 8</head> 9<body> 10 <!-- @ifdef DEBUG --> 11 <h1>Debugging mode - <!-- @echo RELEASE_TAG --> </h1> 12 <!-- @endif --> 13 <p> 14 <!-- @include welcome_message.txt --> 15 </p> 16</body>
1var configValue = "/* @echo FOO */" || "default value"; 2 3// @ifdef DEBUG 4someDebuggingCall(); 5// @endif
CoffeeScript files are also supported.
gulp-preprocess
uses preprocess. More examples can be found in its README.
Type: Object
Default: {}
Context for directives used in your preprocessed files. The default context consists of the current user environment variables. Custom context is merged with process.env
.
Type: String
Base directory for included files. By default, the path to included files is relative to the file currently being processed.
Type: String
Override the file extension. This determines what regular expressions are used for comments. You may wish to do this if you are using a custom extension or need to force a particular comment syntax (for example, to allow HTML-style comments in .php
files).
The MIT License (MIT)
Copyright (c) 2014 Jason Sandmeyer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
No security vulnerabilities found.