Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #20

Merged
merged 4 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ module.exports = {
rules: {
'ember/no-array-prototype-extensions': 'off',
'ember/no-computed-properties-in-native-classes': 'off',
'node/no-unpublished-require': [
'error',
{
allowModules: ['resolve', 'broccoli-funnel'],
},
],
},
overrides: [
// node files
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,32 @@ jobs:

- name: Publish
run: npm publish --access public

github_publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- uses: pnpm/[email protected]
with:
version: latest
- run: pnpm install
- run: pnpm run build
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@fleetbase'
- run: |
git config user.name github-actions
git config user.email [email protected]
npm version patch
git push
git push --tags
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion addon/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class DevEngine extends Engine {
setupExtension = function (app, engine, universe) {
// register menu item in header
universe.registerHeaderMenuItem('Developers', 'console.developers', { icon: 'code', priority: 2 });
}
};
}

loadInitializers(DevEngine, modulePrefix);
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
'use strict';
const { buildEngine } = require('ember-engines/lib/engine-addon');
const { name } = require('./package');
const Funnel = require('broccoli-funnel');

module.exports = buildEngine({
name,

postprocessTree(type, tree) {
if (type === 'css') {
tree = new Funnel(tree, {
exclude: ['**/@fleetbase/ember-ui/**/*.css'],
});
}

return tree;
},

lazyLoading: {
enabled: true,
},
Expand Down
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/dev-engine",
"version": "0.1.5",
"version": "0.1.6",
"description": "Fleetbase Developers extension provides a module for managing developer resources such as API keys, webhooks, sockets, events and logs.",
"fleetbase": {
"route": "developers"
Expand Down Expand Up @@ -33,17 +33,19 @@
"start": "ember serve",
"test": "npm-run-all lint test:*",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each"
"test:ember-compatibility": "ember try:each",
"publish:npm": "npm config set registry https://registry.npmjs.org/ && npm publish",
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
},
"dependencies": {
"@fleetbase/ember-core": "^0.1.0",
"@fleetbase/ember-ui": "^0.1.3",
"@fleetbase/ember-core": "^0.1.1",
"@fleetbase/ember-ui": "^0.1.4",
"@fortawesome/ember-fontawesome": "^0.4.1",
"@fortawesome/fontawesome-svg-core": "^6.4.0",
"@fortawesome/free-solid-svg-icons": "^6.4.0",
"date-fns": "^2.30.0",
"ember-cli-babel": "^7.26.11",
"ember-cli-htmlbars": "^6.1.0",
"ember-intl": "^6.0.0-beta.6",
"ember-prism": "^0.13.0",
"ember-tag-input": "^3.1.0",
"ember-wormhole": "^0.6.0"
Expand All @@ -56,6 +58,7 @@
"@glimmer/tracking": "^1.1.2",
"babel-eslint": "^10.1.0",
"broccoli-asset-rev": "^3.0.0",
"broccoli-funnel": "^3.0.8",
"ember-auto-import": "^2.4.2",
"ember-cli": "~4.6.0",
"ember-cli-dependency-checker": "^3.3.1",
Expand Down
Loading
Loading