README.md in bootstrap-bookingsync-sass-2.0.0 vs README.md in bootstrap-bookingsync-sass-3.0.0

- old
+ new

@@ -3,11 +3,10 @@ `bootstrap-bookingsync-sass` is a Sass-powered version of [Bootstrap](http://github.com/twbs/bootstrap) with [BookingSync theme](http://styleguide.bookingsync.com), ready to drop right into your Sass powered applications. Support for: * [Rails Applications](#rails-applications) -* [Ember Applications](#ember-applications) ## Rails Applications ### Installation @@ -145,116 +144,5 @@ <%= f.input :accept_terms, wrapper: :bs_checkbox %> <%= f.input :twitter, wrapper: :bs_addon, prepend_addon: '@' %> <%= f.input :pecentage, wrapper: :bs_addon, append_addon: '%' %> <%= f.input :money, wrapper: :bs_addon, prepend_addon: '$', append_addon: 'USD' %> ``` - -## Ember Applications - -### Installation - -#### When this Addon will be released - -``` sh -ember install ember-cli-bootstrap-bookingsync-sass -``` - -#### While in development - -Clone the styleguide repo and expose it to your local NPM packages - -``` sh -git clone https://github.com/BookingSync/bootstrap-bookingsync-sass -cd bootstrap-bookingsync-sass -npm link -``` - -From your Ember App: - -1) Install the package from your local NPM packages. - -``` sh -npm link ember-cli-bootstrap-bookingsync-sass -``` - -2) Edit `package.js` and add `"ember-cli-bootstrap-bookingsync-sass": "*",` in your `devDependencies"`. - -3) Run the blueprints manually as not done automatically in development mode. - -``` sh -ember g ember-cli-bootstrap-bookingsync-sass -``` - -#### All the time - -Add in your `ember-cli-build.js` - -``` js - var app = new EmberApp(defaults, { - 'ember-cli-bootstrap-sassy': { - 'js': false, - 'glyphicons': false - } - }); -``` - -Ember CLI Bootstrap BookingSync SASS uses fonts from Google Fonts, so the URL to them has to be white listed. You can set this by adding to the Content Security Policy defined in config/environment.js like so: - -```js -ENV.contentSecurityPolicy = { - 'default-src': "'none'", - 'script-src': "'self' 'unsafe-inline'", - 'style-src': "'self' 'unsafe-inline' https://fonts.googleapis.com", - 'font-src': "'self' fonts.gstatic.com", - 'connect-src': "'self'", - 'img-src': "'self' data:", - 'media-src': "'self'" -} -``` - -You can find out more information on the CSP addon page [here](https://github.com/rwjblue/ember-cli-content-security-policy#ember-cli-content-security-policy). - -#### Stylesheets - -The blueprints should generate this setup for you on install but if needed you can manually install Bootstrap BookingSync styles in `app/styles/app.scss` using: - -```scss -@import "ember-modal-dialog/ember-modal-structure"; -@import "bootstrap-bookingsync"; -@import "ember-power-select"; -@import "ember-power-calendar"; -``` - -Make sure the file has `.scss` extension (or `.sass` for Sass syntax). If you have just generated a new Ember app, it may come with a `.css` file instead. - -### Running - -#### Prerequisites -You will need the following things properly installed on your computer. - -* [Node.js](http://nodejs.org/) (latest stable version, v10.16.0 at 2019-05-28) -* [Ember CLI](http://www.ember-cli.com/) -* [npm](https://www.npmjs.com/get-npm) - -#### Installation -* `npm install` - -#### Starting -* `ember server` -* Visit your app at http://localhost:4200 or from your Rails application if tight together. - -### Running Tests - -* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions) -* `ember test` -* `ember test --server` - -### Building - -Usage ------------------------------------------------------------------------------- - -### Deploying Ember documentation to global styleguide documentation - -* `ember deploy production` - -For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).