fix jquery error and move package.json etc to root dir
This commit is contained in:
parent
6eff2d91c9
commit
17a9a2d23a
9 changed files with 13 additions and 14 deletions
|
@ -15,10 +15,11 @@ Now install homebrew.
|
|||
|
||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
|
||||
Then install nodejs and frontend code
|
||||
Then install nodejs and ES6 code
|
||||
|
||||
brew install nodejs
|
||||
(cd frontend && npm install && npm run build)
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
And postgresql:
|
||||
|
||||
|
|
|
@ -50,9 +50,8 @@ Install the specific version of ruby needed this will take some time
|
|||
|
||||
rvm install $(cat metamaps/.ruby-version)
|
||||
|
||||
While that is running, you can open another terminal and install the npm frontend code
|
||||
While that is running, you can open another terminal and install the ES6 code
|
||||
|
||||
cd frontend
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
|
|
|
@ -20,12 +20,10 @@ Now you are ready to clone the Metamaps git repository:
|
|||
The third `bundle install` command downloads and installs the rubygem
|
||||
dependencies of Metamaps.
|
||||
|
||||
You also need to install the Javascript frontend code from the nodejs repositories:
|
||||
You also need to install the ES6 code from the nodejs repositories:
|
||||
|
||||
cd frontend
|
||||
npm install
|
||||
npm run build
|
||||
cd ..
|
||||
|
||||
At this point you should be in C:\git\metamaps, or whatever equivalent
|
||||
directory you've chosen. The next step is to set up your database
|
||||
|
|
|
@ -60,11 +60,10 @@ Run this in the metamaps directory, still as metamaps:
|
|||
# create, load schema, seed
|
||||
rake db:setup
|
||||
|
||||
#### Install js frontend code
|
||||
#### Install node & ES6 modules
|
||||
|
||||
sudo aptitude install nodejs npm
|
||||
sudo ln -s /usr/bin/nodejs /usr/bin/node
|
||||
cd frontend
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
|
|
|
@ -23,7 +23,8 @@ Now that you have the code, run these commands:
|
|||
source .env
|
||||
|
||||
bundle install
|
||||
(cd frontend && npm install && npm run build)
|
||||
npm install
|
||||
npm run build
|
||||
rake db:migrate
|
||||
rake assets:precompile
|
||||
rake perms:fix
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
To setup javascript dev, `cd frontend` and then run
|
||||
To setup javascript dev, first run
|
||||
|
||||
npm install
|
||||
|
||||
to set up your testing environment. Then use
|
||||
|
||||
npm test
|
||||
npm run test
|
||||
|
||||
to see the results of testing the current javascript files.
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
"babel-preset-es2015": "^6.9.0",
|
||||
"babel-preset-react": "^6.11.1",
|
||||
"chai": "^3.5.0",
|
||||
"jquery": "^1.12.1",
|
||||
"mocha": "^2.4.5",
|
||||
"webpack": "^1.13.1"
|
||||
},
|
|
@ -15,10 +15,10 @@ const config = module.exports = {
|
|||
]
|
||||
},
|
||||
entry: {
|
||||
'metamaps.bundle': './src/index.js'
|
||||
'metamaps.bundle': './frontend/src/index.js'
|
||||
},
|
||||
output: {
|
||||
path: '../app/assets/javascripts/webpacked',
|
||||
path: './app/assets/javascripts/webpacked',
|
||||
filename: '[name].js'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue