Skip to content

Commit

Permalink
Update ember-code-snippet to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmanuel committed Jun 24, 2022
1 parent dd3c3b4 commit 3233350
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 981 deletions.
4 changes: 4 additions & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ module.exports = function (defaults) {
importBootstrapFont: true,
importBootstrapCSS: false,
},

'ember-prism': {
'components': ['javascript', 'markup'],
},
});

/*
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-cli-yuidoc": "^0.8.8",
"ember-code-snippet": "^2.3.1",
"ember-code-snippet": "^3.0.0",
"ember-data": "~3.28.0",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.1",
"ember-font-awesome": "^3.0.5",
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-named-arguments-polyfill": "^1.0.0",
"ember-prism": "0.10.0",
"ember-qunit": "^5.1.5",
"ember-resolver": "^8.0.3",
"ember-source": "~3.28.8",
Expand Down
3 changes: 3 additions & 0 deletions tests/dummy/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'dummy/config/environment';
import { setup } from 'ember-prism';

setup();

export default class App extends Application {
modulePrefix = config.modulePrefix;
Expand Down
3 changes: 3 additions & 0 deletions tests/dummy/app/templates/components/code-snippet.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{#let (get-code-snippet @name) as |snippet|}}
<CodeBlock @code={{snippet.source}} @language={{snippet.language}} />
{{/let}}
Loading

0 comments on commit 3233350

Please sign in to comment.