scaffold-any-app
v0.3.1
Published
Create new applications from a single scaffold file and vice versa.
Downloads
32
Maintainers
Readme
Scaffold Any App
Create new applications from a single scaffold file and vice versa.
Why?
Scenario 1
An application can have large number of smaller-files and folders. This is especially applicable in the case of frameworks and micro-architectures, as they contain a large number of boiler-plate files. Even with modern editors like VS Code, it can be tedious to open each file to view or modify.
On the other hand, with powerful source control systems, like Git, it is easier to track changes in large files. Additionally, searching for a specific text within a larger file is easily done using editors. Thus, it makes more sense to store such applications in a single large file.
Scenario 2
There are framework-provided application generators e.g.
- CRA - Create-React-App
- Spring Initializr - start.spring.io
- etc.
Each generator creates a bare-minimum application, e.g. V1 of app1. But, it is not directly usable, without making additional changes, kind V2 of the app1. These same changes may have to be done again and again for every new future applications e.g. app2, app3 etc. Enhancing generators to create the version V2 directly, is either not possible or not very easy. This results in repeated work of applying boiler-plate changes, for every new application. Also, by that time, app1 may already have non-reusable, business-specific changes as part of say version V3. So, copying the app1 folder as app2 is also not feasible.
Solution
The scaffold-any-app
utility tries to fill-in this gap, by storing entire application in a tree-like structure inside a single file. This utility can be used to bootstrap new applications easily in the future. Moreover, a single file can be more easily kept up-to-date, as needed.
This is achieved by using the following approach:
- Create tree-like structure (in a single-file) from the application folder.
- Scaffold (write) new application folder using the same single file.
Installation
npm install --save-dev scaffold-any-app
Usage
scaffold-any-app <mode> <folder>
Create Mode
Creates single file from application folder.
Steps:
- Create a new application folder, say app, with all the files and sub-folders.
- Run
scaffold-any-app create ./app > files.js
. - This will create the trre-like structure in a single file
files.js
.
Write Mode
Creates application folder from single scaffold file.
Steps:
- Create a
files.js
file to represent file-structure of an application. Alternately, use the file created in Create Mode above. - Run
scaffold-any-app write ./app2
. - This will make a new app2 folder from the tree-like structure in the input file.
The utility will look for .gitignore
file for ignoring any files/folders. If not available, it will ignore .git, target, node_modules, classes, build
, by default.
Example scripts section of package.json
"scripts": {
"create": "scaffold-any-app create ./app > files.js",
"write": "scaffold-any-app write ./app2"
}
Full example is here.
Typical Workflow
- Create an application folder manually or using any framework-provided generators e.g.
npx create-react-app app
- Convert the application folder into a single file e.g.
scaffold-any-app create ./app > files.js
- Store the single file in your source control system.
- Modify the file as needed OR
- Modify folders / files, inside the original application folder, as needed, and then either
- Create scaffold file again e.g.
scaffold-any-app create ./app > files.js
OR - Manually change the scaffold file for changes in the original application folder.
- Create scaffold file again e.g.
- Finally, use the scaffold file to generate new applications e.g.
scaffold-any-app write ./app2
Scaffold file guidelines
Escape special characters e.g. newlines, string literals, variables etc.
Newlines
Escape newlines. So, use \\n
, instead of \n
String literals \ Backticks
Escape these as well. So use
\`
instead of
`
Variables
Escape variables e.g. Use $\{port}
instead of ${port}
Application files / folders
Generic names
Try to keep file and folder names and content generic, so that they can be re-used.
Ignore names
Add any non-generica / non-reusable names in .gitignore file, so that they are skipped in both Create and Write modes.
Heap Memory
For a large file, allocate more heap space, as needed.
export NODE_OPTIONS=--max_old_space_size=4096
Binary files
In Create mode, the binary files base64-encoded and then stored in single file.
Example file structure
[{
// This is a directory - provide its name as a key
src: {
// Because it's a directory, add the "directory" key
directory: {
// This is a file - provide its path as a key:
'main.js': {
// Because it's a file, add the "file" key
file: {
contents: `
console.log('Hello from Scaffold-Any-App!')
`,
},
},
// This is another file inside the same folder
'main.css': {
// Because it's a file, add the "file" key
file: {
contents: `
body {
margin: 0;
}
`,
},
},
// This is a binary file
"twitter.2.ico": {
file: {
contents: {
base64: "eyIwIjoxMzcsIjEiOjgwLCIyIjo3OCwiMyI6NzEsIjQiOjEzLCI1IjoxMCwiNiI6MjYsIjciOjEwLCI4IjowLCI5IjowLCIxMCI6MCwiMTEiOjEzLCIxMiI6NzMsIjEzIjo3MiwiMTQiOjY4LCIxNSI6ODIsIjE2IjowLCIxNyI6MCwiMTgiOjAsIjE5IjozMiwiMjAiOjAsIjIxIjowLCIyMiI6MCwiMjMiOjMyLCIyNCI6OCwiMjUiOjYsIjI2IjowLCIyNyI6MCwiMjgiOjAsIjI5IjoxMTUsIjMwIjoxMjIsIjMx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jkxIjo4OSwiNjkyIjo1MCwiNjkzIjo1OSwiNjk0IjoyMzYsIjY5NSI6MjQwLCI2OTYiOjEwNCwiNjk3IjoyNDAsIjY5OCI6MzEsIjY5OSI6MjE1LCI3MDAiOjUzLCI3MDEiOjI0MCwiNzAyIjoxMDAsIjcwMyI6MTkwLCI3MDQiOjI0OSwiNzA1IjoyMTIsIjcwNiI6MjQ1LCI3MDciOjAsIjcwOCI6MCwiNzA5IjowLCI3MTAiOjAsIjcxMSI6NzMsIjcxMiI6NjksIjcxMyI6NzgsIjcxNCI6NjgsIjcxNSI6MTc0LCI3MTYiOjY2LCI3MTciOjk2LCI3MTgiOjEzMH0="
}
}
}
},
},
'package.json': {
file: {
contents: `
{
"name": "vite-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^4.0.4"
}
}`,
},
},
'index.html': {
file: {
contents: `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>`,
},
},
}]