Skip to content

Commit 82a98fd

Browse files
feat: initial import
0 parents  commit 82a98fd

35 files changed

+4261
-0
lines changed

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
*.log
7+
*.tmp
8+
*.tmp.*
9+
log.txt
10+
*.sublime-project
11+
*.sublime-workspace
12+
.idea/
13+
.vscode/
14+
npm-debug.log*
15+
16+
.sourcemaps/
17+
.sass-cache/
18+
.tmp/
19+
.versions/
20+
coverage/
21+
node_modules/
22+
tmp/
23+
temp/
24+
platforms/
25+
plugins/
26+
plugins/android.json
27+
plugins/ios.json
28+
$RECYCLE.BIN/
29+
30+
.DS_Store
31+
Thumbs.db
32+
UserInterfaceState.xcuserstate
33+
34+
dist/

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"arrowParens": "always",
5+
"bracketSpacing": false,
6+
"bracketSameLine": true,
7+
"trailingComma": "none"
8+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 David Dal Busco
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Juno CLI
2+
3+
The [Juno] command-line interface.
4+
5+
## Installation
6+
7+
```bash
8+
npm i -g @junobuild/cli
9+
```
10+
11+
Detailed installation instructions can be found in the [CLI documentation](https://juno.build/docs/miscellaneous/cli).
12+
13+
## License
14+
15+
MIT © [David Dal Busco](mailto:david.dalbusco@outlook.com)
16+
17+
[juno]: https://juno.build

esbuild.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import esbuild from 'esbuild';
2+
import {existsSync, mkdirSync, writeFileSync} from 'fs';
3+
import {join} from 'path';
4+
5+
const dist = join(process.cwd(), 'dist');
6+
7+
if (!existsSync(dist)) {
8+
mkdirSync(dist);
9+
}
10+
11+
const script = esbuild.buildSync({
12+
entryPoints: ['src/index.ts'],
13+
bundle: true,
14+
minify: true,
15+
platform: 'node',
16+
write: false
17+
});
18+
19+
writeFileSync('dist/index.js', `#!/usr/bin/env node\n${script.outputFiles[0].text}`);

0 commit comments

Comments
 (0)