-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.ts
More file actions
41 lines (30 loc) · 731 Bytes
/
Copy pathcli.ts
File metadata and controls
41 lines (30 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env node
import { copyTemplate, getDest } from 'npm-init-helper'
import { join } from 'path'
async function main() {
let dest = await getDest()
let srcDir = join(__dirname, 'template')
console.log('Copying snowpack-canvas template to:', dest, '...')
await copyTemplate({ srcDir, dest, updatePackageJson: false })
console.log(
`
Done.
Inside that directory, you can run several commands:
npm start
Starts the auto-refresh development server.
npm run build
Builds the web project into 'build' folder.
Get started by typing:
cd ${dest}
pnpm i
npm start
Installation Alternatives:
pnpm i
or
yarn install
or
npm install
`.trim(),
)
}
main().catch(e => console.error(e))