Permalink
Browse files

Remove all references to `bower`

- Move dependencies from bower.json to package.json
- Remove references to bower
Close #34
  • Loading branch information...
tvlangley committed Jan 30, 2018
1 parent aead5e1 commit 932d48869b17f12933dcaab01e89d0b52ee12c3f
Showing with 15,816 additions and 46 deletions.
  1. +0 −4 .bowerrc
  2. +0 −1 .gitignore
  3. +2 −4 .travis.yml
  4. +4 −19 README.md
  5. +1 −2 app/styles/app.scss
  6. +0 −8 bower.json
  7. +4 −7 ember-cli-build.js
  8. +1 −1 grunt/shell.js
  9. +15,798 −0 package-lock.json
  10. +6 −0 package.json

This file was deleted.

Oops, something went wrong.
@@ -54,7 +54,6 @@ Temporary Items

# dependencies
/node_modules
/bower_components

# misc
/.sass-cache
@@ -8,17 +8,15 @@ sudo: false
cache:
directories:
- $HOME/.npm
- $HOME/.cache # includes bowers cache
- $HOME/.cache

before_install:
- npm config set spin false
- npm install -g bower phantomjs-prebuilt
- bower --version
- npm install -g phantomjs-prebuilt
- phantomjs --version

install:
- npm install
- bower install

script:
- npm test
@@ -15,23 +15,9 @@ At the beginning of each cohort update [`package.json`](package.json):
- `npm update --save-dev`.
- `npm install`

### bower
Currently bower [cannot automatically save updated versions](https://github.com/bower/bower/issues/2348) to `bower.json`.

- `rm -r bower_components`
- `bower update`
- `bower list`
- Take the new version numbers from the top level of the list and paste
them into `bower.json`
- `bower install`
- `ember test`

Fix errors and conflicts as necessary.

## Dependencies

Install build dependencies with `npm install`. Install runtime dependencies with
`bower install`.
Install build dependencies with `npm install`.
If you have not installed phantomjs, you will need to install it globally:
`npm install --global phantomjs-prebuilt`

@@ -51,18 +37,17 @@ other customizations, including Bootstrap.
1. Empty [`README.md`](README.md) and fill with your own content.
1. Move into the new project and `git init`.
1. Replace all instances of `'ga-wdi-boston.ember-template'` with your app name. This
includes [`package.json`](package.json), [`bower.json`](bower.json),
includes [`package.json`](package.json),
[`app/index.html`](app/index.html), [`tests/index.html`](tests/index.html),
[`app/adapters/application.js`](app/adapters/application.js),
and [`config/environment.js`](config/environment.js), possibly others.
1. Install dependencies with `npm install` and `bower install`.
1. Install dependencies with `npm install`.
1. Run the development server with `ember server`. Use the `--proxy` flag to
avoid writing development-specific CORS and CSP settings.

## Structure

Build dependencies are stored in [`package.json`](package.json). Client
dependencies are stored in [`bower.json`](bower.json).
Build dependencies are stored in [`package.json`](package.json).

Do not configure `grunt` packages directly in the
[`Gruntfile.js`](Gruntfile.js). Instead, store configurations in the
@@ -1,2 +1 @@
@import 'bootstrap';
@import 'bootstrap/theme';
@import "ember-bootstrap/bootstrap";

This file was deleted.

Oops, something went wrong.
@@ -4,14 +4,11 @@ var EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
var app = new EmberApp(defaults, {
sassOptions: {
includePaths: [
'bower_components/bootstrap-sass/assets/stylesheets'
]
'ember-bootstrap': {
'bootstrapVersion': 3,
'importBootstrapFont': true,
'importBootstrapCSS': false
}
});

app.import('bower_components/bootstrap-sass/assets/javascripts/bootstrap.js');

return app.toTree();
};
@@ -38,7 +38,7 @@ module.exports = {
].join(' && ')
},
'clean-gh-pages': {
command: 'git clean -x -d --force --exclude=node_modules --exclude=bower_components'
command: 'git clean -x -d --force --exclude=node_modules'
},
'return-to-master': {
command: 'git checkout master'
Oops, something went wrong.

0 comments on commit 932d488

Please sign in to comment.