commit
60c0440c67
10
.babelrc
10
.babelrc
|
@ -1,11 +1,15 @@
|
||||||
{
|
{
|
||||||
"presets": [
|
"presets": [
|
||||||
[
|
[
|
||||||
"@babel/preset-env", {
|
"@babel/preset-env",
|
||||||
"useBuiltIns": "usage"
|
{
|
||||||
|
"useBuiltIns": "usage",
|
||||||
|
"corejs": 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@babel/preset-react"
|
"@babel/preset-react"
|
||||||
],
|
],
|
||||||
"plugins": ["@babel/plugin-proposal-object-rest-spread"],
|
"plugins": [
|
||||||
|
"@babel/plugin-proposal-object-rest-spread"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
container_commands:
|
||||||
|
01_node_binary:
|
||||||
|
command: "ln -sf `ls -td /opt/elasticbeanstalk/node-install/node-* | head -1`/bin/node /bin/node"
|
||||||
|
02_npm_binary:
|
||||||
|
command: "ln -sf `ls -td /opt/elasticbeanstalk/node-install/node-* | head -1`/bin/npm /bin/npm"
|
|
@ -0,0 +1,4 @@
|
||||||
|
# 02_nodecommand.config
|
||||||
|
# option_settings:
|
||||||
|
# aws:elasticbeanstalk:container:nodejs:
|
||||||
|
# NodeCommand: npm run start:eb
|
|
@ -18,3 +18,9 @@ lib-cov
|
||||||
*.out
|
*.out
|
||||||
*.pid
|
*.pid
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
|
||||||
|
# Elastic Beanstalk Files
|
||||||
|
.elasticbeanstalk/*
|
||||||
|
!.elasticbeanstalk/*.cfg.yml
|
||||||
|
!.elasticbeanstalk/*.global.yml
|
||||||
|
.ebextensions/01_envvar.config
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Force npm to run node-gyp also as root, preventing permission denied errors in AWS with npm@5
|
||||||
|
unsafe-perm=true
|
|
@ -318,7 +318,7 @@ module.exports = {
|
||||||
* this, just try deploying without setting it and see if it works.) *
|
* this, just try deploying without setting it and see if it works.) *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
port: 80,
|
port: 8081,
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* *
|
* *
|
||||||
|
|
13
package.json
13
package.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "roe-base",
|
"name": "roe-base",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.1",
|
||||||
"description": "a Sails application",
|
"description": "a Sails application",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -10,6 +10,7 @@
|
||||||
"start:debug": "npm-run-all --parallel open:client debug",
|
"start:debug": "npm-run-all --parallel open:client debug",
|
||||||
"start:prod": "npm-run-all --parallel build:prod lift",
|
"start:prod": "npm-run-all --parallel build:prod lift",
|
||||||
"start:client": "webpack-dev-server --mode development",
|
"start:client": "webpack-dev-server --mode development",
|
||||||
|
"start:eb": "npm run db:migrate && npm run build:prod && npm run lift",
|
||||||
"lift": "sails lift",
|
"lift": "sails lift",
|
||||||
"build": "npm run build:prod",
|
"build": "npm run build:prod",
|
||||||
"build:dev": "webpack --mode development",
|
"build:dev": "webpack --mode development",
|
||||||
|
@ -54,9 +55,9 @@
|
||||||
"sails-postgresql": "^1.0.2",
|
"sails-postgresql": "^1.0.2",
|
||||||
"showdown": "^1.9.0",
|
"showdown": "^1.9.0",
|
||||||
"ta-json-x": "^2.5.0",
|
"ta-json-x": "^2.5.0",
|
||||||
"xmldom": "^0.1.27"
|
"webpack": "^4.23.1",
|
||||||
},
|
"webpack-cli": "^3.1.2",
|
||||||
"devDependencies": {
|
"xmldom": "^0.1.27",
|
||||||
"@babel/core": "^7.1.2",
|
"@babel/core": "^7.1.2",
|
||||||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
||||||
"@babel/polyfill": "^7.0.0",
|
"@babel/polyfill": "^7.0.0",
|
||||||
|
@ -76,14 +77,12 @@
|
||||||
"sass-loader": "^7.1.0",
|
"sass-loader": "^7.1.0",
|
||||||
"standard": "^12.0.1",
|
"standard": "^12.0.1",
|
||||||
"style-loader": "^0.23.1",
|
"style-loader": "^0.23.1",
|
||||||
"webpack": "^4.23.1",
|
|
||||||
"webpack-cli": "^3.1.2",
|
|
||||||
"webpack-dev-server": "^3.1.10"
|
"webpack-dev-server": "^3.1.10"
|
||||||
},
|
},
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/vagrant/roe-base.git"
|
"url": "git://github.com/ebookfoundation/riverofebooks.git"
|
||||||
},
|
},
|
||||||
"author": "vagrant",
|
"author": "vagrant",
|
||||||
"license": "",
|
"license": "",
|
||||||
|
|
Loading…
Reference in New Issue