simple-web-cli
Advanced tools
Comparing version 4.1.3 to 4.2.0
{ | ||
"name": "simple-web-cli", | ||
"type": "module", | ||
"version": "4.1.3", | ||
"version": "4.2.0", | ||
"main": "./bin/index.js", | ||
@@ -12,3 +12,3 @@ "scripts": { | ||
"update": "npx npu; npm i --ignore-scripts; npm audit fix;", | ||
"test-services": "node \"bin/test-services.js\"" | ||
"test-services": "node \"src/test-services.js\"" | ||
}, | ||
@@ -69,3 +69,9 @@ "bin": { | ||
"npm": ">=7.0.2" | ||
} | ||
}, | ||
"files": [ | ||
"bin", | ||
"lib", | ||
"resources", | ||
".swrc.d.ts" | ||
] | ||
} |
@@ -1,2 +0,5 @@ | ||
export default { | ||
// @ts-check | ||
/** @type {import('simple-web-cli/.swrc.d.js').Options} */ | ||
const options = { | ||
workspaces: { | ||
@@ -6,3 +9,2 @@ src: 'src', | ||
}, | ||
start: { | ||
@@ -13,9 +15,2 @@ compile: { | ||
uglify: true, | ||
exclude: { | ||
requireBrowser: [ | ||
// You can use a file extension, a relative path or a part of it | ||
'.min.js', | ||
'.mjs', | ||
], | ||
}, | ||
}, | ||
@@ -29,5 +24,5 @@ scss: true, | ||
minify: true, | ||
htmlImportLikeSass: true, // If true, ignores the compilation when a HTML file name starts with _ | ||
htmlImportLikeSass: true, | ||
exclude: { | ||
htmlImport: [], // You can use a relative path or a part of it | ||
htmlImport: [], | ||
}, | ||
@@ -41,38 +36,28 @@ }, | ||
}, | ||
exclude: [ | ||
// You can use a file extension, a relative path or a part of it to exclude any file from compiling | ||
'.min.css', | ||
'.min.js', | ||
], | ||
exclude: ['.min.css', '.min.js'], | ||
}, | ||
}, | ||
/** | ||
* Don't process neither copy source file to dist path | ||
* You can use your frameworks in parallel and if you wish, you can define the framework's build output in the same dist directory from this workspace | ||
* Remove an item from blacklist if you want send just a copy from the original file to dist directory from this workspace | ||
**/ | ||
blacklist: [ | ||
// You can use a file extension, a relative path or a part of it to exclude any file from compiling | ||
'.coffee', | ||
'.jsx', | ||
'.less', | ||
'.pug', | ||
'.tsx', | ||
'.git/', | ||
'node_modules', | ||
], | ||
build: { | ||
level: 9, | ||
output: 'release', | ||
}, | ||
options: { | ||
initialCommit: true, // Performs the first commit when starting the project for the first time | ||
initialCommit: true, | ||
}, | ||
/* ----------------------------------------------------------------------- */ | ||
/* ----------------- A D V A N C E D O P T I O N S ----------------- */ | ||
/* ----------------------------------------------------------------------- */ | ||
/* --------------------------------------------- */ | ||
/* ---- A D V A N C E D O P T I O N S ---- */ | ||
/* --------------------------------------------- */ | ||
/** | ||
* 👮🏻♂️ Don't process neither copy source file to dist path | ||
*/ | ||
blacklist: ['.coffee', '.jsx', '.less', '.pug', '.tsx', '.git/', 'node_modules'], | ||
ftp: { | ||
// Keeps empty to ignore the FTP connection | ||
/** | ||
* ℹ️ Keeps empty to ignore the FTP connection | ||
* ❗️ Becareful: set access FTP data in an external .env or add the “.swrc.js” to .gitignore | ||
*/ | ||
start: { | ||
// Becareful! Set access FTP data on an external .env or add the “.swrc.js” to .gitignore | ||
root: '', | ||
@@ -83,30 +68,17 @@ host: '', | ||
pass: '', | ||
secure: true || 'explict', // If the server doesn't use SSL certification, set "explict" | ||
secure: true, | ||
isWindowsServer: false, | ||
}, | ||
build: {}, // Keeps empty to use the same data as set in "ftp.start" | ||
}, | ||
/** | ||
* You can duplicate "start.compile" in "build" and set different "start" and "build" settings | ||
* If you don't specify the "build.compile", it will use the settings from "start.compile" | ||
**/ | ||
build: { | ||
level: 9, // Compression level of zip output (0: fast, ..., 9: slow) | ||
output: 'release', // Generate a zip and creates the root content from this name (example: "release.zip", on extract: "./release/...") | ||
}, | ||
/** | ||
* Works on both "build" and "start" | ||
* This doesn't work on blacklisted files | ||
**/ | ||
plugins: { | ||
// Coming soon: Put simple-web-cli language plug-ins modules and path to an auto executable script to compile in other languages | ||
compiler: [], | ||
// You can create an easy to read code and on compiling, replace the specified strings: | ||
/** | ||
* ℹ️ You can create an easy to read code and on compiling, replace the specified strings | ||
*/ | ||
stringReplace: { | ||
strings: { | ||
/** | ||
* ❗️ always starts and ends the key string with: * | ||
*/ | ||
'*your-code-string*': { | ||
// always starts and ends the key string with * | ||
start: 'my-start-output', | ||
@@ -116,6 +88,6 @@ build: 'my-build-output', | ||
}, | ||
/** | ||
* If you want more specific extensions, you can add them here | ||
* By default, unlisted extesions are set as "false" | ||
**/ | ||
* ℹ️ If you want more specific extensions, you can add them here | ||
*/ | ||
languages: { | ||
@@ -135,5 +107,4 @@ html: true, | ||
/** | ||
* You can create a mirror project folder and add static resource files to replace temporary development files by this on compiling: | ||
* It can works joint with "replace-string" and accepts any type of file | ||
**/ | ||
* 🔄 You can create a mirror project folder and add static resource files to replace temporary development files by this on compiling | ||
*/ | ||
resourceReplace: { | ||
@@ -148,1 +119,3 @@ src: '.resources', | ||
}; | ||
export default options; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
0
12
5
88221
12
2044