#NEWLINE# def create_package_json( self , name = 'PyxleyApp' , version = '0.0.1' , main = 'index.js' , dependencies = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , scripts = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# if ( 'build' not in scripts ) : #NEWLINE# #INDENT# _build = 'node_modules/.bin/webpack' #NEWLINE# scripts [ 'build' ] = _build #NEWLINE# #UNINDENT# options = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'version' : version , #NEWLINE# 'main' : main , #NEWLINE# 'scripts' : json . dumps ( scripts ) , #NEWLINE# 'dependencies' : json . dumps ( rt ) , #NEWLINE# 'dev_dependencies' : json . dumps ( self . dev_dependencies ) , #NEWLINE# #UNINDENT# } #NEWLINE# rt = ReactTemplate ( self . package_template , options , ( self . repo_root + '/package.json' ) ) #NEWLINE# rt . to_js ( )