behavior3 / behavior3editor

An awesome online visual editor for Behavior3 (Behavior Trees Visual Editor)
MIT License
643 stars 264 forks source link

Add bower to node dependencies? #33

Open brazorf opened 7 years ago

brazorf commented 7 years ago

I just had to install bower myself while in the process of installing locally.

I think thats confusing to non-dev end users, since if they run npm install + bower install they are gonna get an error on the latter.

Why not adding bower in package.json?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/49420363-add-bower-to-node-dependencies?utm_campaign=plugin&utm_content=tracker%2F18331319&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18331319&utm_medium=issues&utm_source=github).
SpikedPunchVictim commented 6 years ago

For anyone else attempting to host this themselves, you'll need to modify the package.json file:

{
  "author": "Renato de Pontes Pereira",
  "name": "behavior3editor",
  "version": "0.3.0",
  "homepage": "http://behavior3.com",
  "license": "MIT",
  "bugs": "https://github.com/behavior3/behavior3editor/issues",
  "repository": "github:behavior3/behavior3editor",
  "scripts": {
    "build": "gulp build",
    "serve": "gulp serve",
    "postinstall": "bower install"
  },
  "devDependencies": {
    "bower": "^1.8.2",
    "electron-packager": "^5.1.1",
    "electron-prebuilt": "^0.33.8",
    "gulp": "~3.9.0",
    "gulp-angular-templatecache": "~1.7.0",
    "gulp-concat": "~2.6.0",
    "gulp-connect": "~2.2.0",
    "gulp-foreach": "^0.1.0",
    "gulp-jshint": "~1.11.2",
    "gulp-less": "~3.0.3",
    "gulp-minify-css": "~1.2.1",
    "gulp-minify-html": "~1.0.4",
    "gulp-replace": "~0.5.4",
    "gulp-uglify": "~1.4.1",
    "gulp-zip": "^3.0.2",
    "jshint-stylish": "~2.0.1",
    "merge-stream": "~1.0.0",
    "rimraf": "^2.4.3"
  },
  "dependencies": {}
}

The modifications added:

Run: