![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
buttered-ember
Advanced tools
This is a fork of bottled-ember, a CLI tool for bootstrapping ember projects without all the boilerplate.
npx buttered-ember ./your-files
This will merge ./your-files
into the backing app, allowing you to focus on just your own work, without being bogged down by the boilerplate of linting, package management, etc.
This can pair well with documentation generation. For example:
npx buttered-ember ./docs
Where ./docs
could be a collection of markdown files.
Ember doesn't natively support markdown-to-html conversion,
but other dependencies can handle this.
To keep the management of "dependencies" minimal, a configuration file may be defined,
# yaml
# -> all properties are optional
#
# could be any npm dependency
# - this provides markdown to html conversion
# - default routing, templates, etc
template: '@my-scope/my-template'
dependencies:
'highlight.js': '^11.0.0'
Templates are special folders that are applied like the "local files" that an end-user would be working with. An example use case could be a markdown-only project, but you want a common design / theme for all documentation sites published.
Unlike a v1 addon with aggressive app-re-exports, templates may provide top-level files, outside the app folder.
The "template root" is layered on top of the project root, so you can augment more than just the app folder.
For example:
.
├── package.json
└── template/
├── app/
│ ├── router.js
│ └── templates/
│ └── application.hbs
├── docs/
│ └── welcome.md
├── ember-cli-build.js
└── .docfy.config.js
The advantage of this template
folder is that is that it may be authored along side an addon or app so that the template itself can be automatedly tested.
Note that nothing outside the template folder is considered part of the template.
So in the event you need to add dependencies as a part of your template,
you'll want another package.json
within the template
folder.
This uses cosmiconfig, so the following config formats are suppored:
.buttered-emberrc.json
.buttered-emberrc.yaml
.buttered-emberrc.yml
.buttered-emberrc.js
.buttered-emberrc.cjs
./config/
directorybuttered-ember.config.js
buttered-ember.config.cjs
NOTE: this is not yet tested, and likely broken the goal here is that, even with markdown only projects, we should have live reload.
By default, the whole target directory will be watched for changes.
If You need to work with the app
or tests
directories, those will
also be wired up for you, but in the event you need a custom ember-cli-build.js
,
you can import a utility function and use the same watching logic:
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { watchTrees } = require('buttered-ember');
module.exports = function (defaults) {
const app = new EmberApp(defaults);
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
extraPublicTrees: [watchTrees()],
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
});
};
The test suite is split in to two test projects, a "regular" one, and one with "slow" tests.
These can each be ran via:
pnpm test # regular tests
pnpm test:slow # slow tests
The slow tests are more "end-to-end" focused, and run on full apps.
When prefixing the test command with VERBOSE=true
,
the command to run in what directory run in will be printed before the test runs.
Example
VERBOSE=true pnpm test:slow
Running on fixture:
node <repo>/src/bin.js test
In <repo>/tests/fixtures/docfy-classic-build
So for this test, we'd cd
to /tests/fixtures/docfy-classic-build
and run node ../../../src/bin.js test
(or use the absolute path to the bin like the output says)
0.5.0
#12 c941f63
Thanks @NullVoxPopuli! - The --addon
flag now supports typescript projects.
The buttered-ember test suite has a demo project that has
To set this up yourself, any types you want available in the editor must be available in devDependencies of your addon.
FAQs
All the power of EmberJS, itty bitty living space
The npm package buttered-ember receives a total of 3 weekly downloads. As such, buttered-ember popularity was classified as not popular.
We found that buttered-ember demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.