-
Notifications
You must be signed in to change notification settings - Fork 1
Home
jpkeyw edited this page Jun 8, 2016
·
19 revisions
We should keep our install of nodejs up-to-date. As of March 22, 2016, the latest version is v5.9.0
.
nvm install v5.9.0
nvm alias default v5.9.0
# From the base directory
npm install
# Change to the examples directory
cd examples
npm install
npm install -g gulp
// config.js
module.exports = {
hotModuleReloadUri: 'safe-framework-<username>.c9users.io',
port: process.env.PORT
}
- Run this (at your top level and in the examples directory):
gulp watch
- Open the Cloud9 menu in the top-left corner.
- Click "Open Your User Settings".
- Under the
ace
key, there should be another key that sayscustom-types
. If not, create it. - Under the
custom-types
key, there should be ajson()
key. - Under the
json()
key, put this key/value pair"jsx": "jsx"
.
It will look something this after the change:
{
// ...
"ace": {
// ...
"custom-types": {
// ...
"json()" : {
// ...
"jsx": "jsx"
}
}
}
}
npm run build
npm run build:examples
node server.js
Please note that these commands do a few things:
- Update
package.json
- Update
examples/package.json
- Create a commit with the new version number as the commit message
- Create a tag for the release in git
npm run bump:patch # bump patch version (0.0.x)
npm run bump:minor # bump minor version (0.x.0)
npm run bump:major # bump major version (x.0.0)
git config --global core.editor vim