Skip to content

Commit

Permalink
fix: revert to npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Jul 23, 2017
1 parent afb6f7d commit e2d3057
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
17 changes: 1 addition & 16 deletions npm/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,24 +138,12 @@ const tasks = {
}
})
},
/**
* Install Yarn
*/
installYarn() {
ora.text = 'Installing Yarn...'
return exec.stdout('npm', ['install', 'yarn'], {
cwd: installDir
}).then(results => {
ora.text = 'Yarn installed successfully.'
return true
})
},
/**
* Install npm dependencies
*/
installDependencies() {
ora.text = 'Installing Wiki.js npm dependencies...'
return exec.stdout('./node_modules/.bin/yarn', ['install', '--production', '--ignore-optional'], {
return exec.stdout('npm', ['install', '--only=production', '--no-optional'], {
cwd: installDir
}).then(results => {
ora.text = 'Wiki.js npm dependencies installed successfully.'
Expand Down Expand Up @@ -259,9 +247,6 @@ Promise.join(
}).then(() => {
isContainerBased && console.info('>> Creating config file...')
return tasks.ensureConfigFile()
}).then(() => {
isContainerBased && console.info('>> Installing Yarn...')
return tasks.installYarn()
}).then(() => {
isContainerBased && console.info('>> Installing dependencies...')
return tasks.installDependencies()
Expand Down
2 changes: 1 addition & 1 deletion npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wiki.js",
"version": "1.0.2",
"version": "1.0.3",
"description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown",
"main": "install.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wiki",
"version": "1.0.2",
"version": "1.0.3",
"description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown",
"main": "wiki.js",
"scripts": {
Expand Down

0 comments on commit e2d3057

Please sign in to comment.