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

Modernize addon #326

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft

Modernize addon #326

wants to merge 29 commits into from

Conversation

charlesfries
Copy link
Contributor

WIP

@charlesfries charlesfries marked this pull request as draft September 8, 2021 18:59
@seanCodes
Copy link

@charlesfries Yes, thanks for this! Hope it gets merged.

@fsmanuel
Copy link
Member

@charlesfries ❤️ will take a look as soon as I find some time.

Copy link
Member

@fsmanuel fsmanuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That already looks like a pretty good job! Thank you so much!
I spotted 2 things and will take another look when you are done.

README.md Outdated Show resolved Hide resolved
},
"dependencies": {
"blob-polyfill": "^2.0.20171115",
"broccoli-funnel": "^2.0.1",
"broccoli-merge-trees": "^2.0.0",
"broccoli-stew": "^1.5.0",
"chalk": "^2.3.0",
"ember-cli-babel": "^7.11.1",
"ember-cli-babel": "^7.26.6",
"ember-cli-htmlbars": "^5.7.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this? I think the addon has nothing to render...

@charlesfries
Copy link
Contributor Author

charlesfries commented Sep 14, 2021

@fsmanuel you are correct, however removing ember-cli-htmlbars causes a Missing template processor error. Possibly just need to remove some older broccoli packages

Stacktrace
ERROR Summary:

- broccoliBuilderErrorStack: [undefined]
- code: [undefined]
- codeFrame: [undefined]
- errorMessage: Missing template processor
- errorType: [undefined]
- location:
  - column: [undefined]
  - file: [undefined]
  - line: [undefined]
- message: Missing template processor
- name: Error
- nodeAnnotation: [undefined]
- nodeName: [undefined]
- originalErrorMessage: [undefined]
- stack: Error: Missing template processor
  at module.exports.preprocessTemplates (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli-preprocess-registry\preprocessors.js:166:11)
  at DefaultPackager.processTemplates (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\broccoli\default-packager.js:444:9)
  at DefaultPackager.processAppAndDependencies (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\broccoli\default-packager.js:225:14)
  at DefaultPackager.packageJavascript (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\broccoli\default-packager.js:1180:32)
  at EmberAddon._legacyPackage (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\broccoli\ember-app.js:1638:48)
  at EmberAddon.toTree (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\broccoli\ember-app.js:1684:27)
  at module.exports (C:\Users\cfries\Documents\Repositories\ember-local-storage\ember-cli-build.js:29:14)
  at Builder.readBuildFile (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\models\builder.js:49:14)
  at Builder.setupBroccoliBuilder (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\models\builder.js:63:22)
  at new Builder (C:\Users\cfries\Documents\Repositories\ember-local-storage\node_modules\ember-cli\lib\models\builder.js:29:10)

@fsmanuel
Copy link
Member

Does it help to add ember-cli-htmlbars to the devDependencies?

@fsmanuel
Copy link
Member

Let me know if I can be of any help!

@fsmanuel
Copy link
Member

fsmanuel commented Oct 9, 2021

@charlesfries I enabled Github actions and needed to also update ember-cli to make it all work.
I love the work you did! Could you rebase your branch so we can iterate on all the goodies from this PR?

I disabled all the linting rules so we can enable them in your branch because I think you already fixed all the warnings.

…torage into funkensturm-master

# Conflicts:
#	.eslintrc.js
#	.prettierignore
#	.prettierrc.js
#	.template-lintrc.js
#	package.json
#	tests/dummy/app/templates/projects.hbs
#	tests/dummy/app/templates/projects/project.hbs
#	tests/dummy/config/ember-cli-update.json
#	tests/dummy/config/optional-features.json
#	yarn.lock
@charlesfries
Copy link
Contributor Author

Just merged the changes into my branch. FYI I ran into a TypeError: decorator is not a function error that I couldn't get past. that's where I last left it

@fsmanuel
Copy link
Member

fsmanuel commented Oct 9, 2021

@charlesfries great. Can you run yarn and push the new yarn.lock so the tests can run.
I'll have a look at the new diff and try to reproduce the TypeError: decorator is not a function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants