Skip to content

Commit d4879b7

Browse files
author
Kalil de Lima
authored
generate package.json as part of inital_sockpuppet command (#51)
1 parent 9a0694e commit d4879b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sockpuppet/management/commands/initial_sockpuppet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ class Command(BaseGenerateCommand):
1010
help = "Generate scaffolding to compile javascript."
1111

1212
def handle(self, *args, **options):
13+
init = 'npm init -y'
1314
install = 'npm install -g add-project-script'
15+
subprocess.check_call(init, shell=True)
1416
subprocess.check_call(install, shell=True)
1517
try:
1618
build = 'add-project-script -n "build" -v "webpack --mode production"'

0 commit comments

Comments
 (0)