Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comprehensive path to globally changing an Ember application name

Tags:

ember.js

I built an Ember app with CLI and 2.0 – it was an app for hats made of plants, so I named it "plant-hat."

A few months later, I realized that people didn't really like wearing plants on their heads, so I retooled it to sell "Shoes filled with worms." I think this time it'll really take off.

So, I want to rename the app and any important parts of it - as if I built it as "shoes-with-worms" from the beginning.

What steps do I take so that I don't miss anything.

like image 716
sheriffderek Avatar asked Sep 26 '15 16:09

sheriffderek


People also ask

What provides the current state of an Ember JS application?

In Ember, the state of an application is represented by a URL. Each URL has a corresponding route object that controls what is visible to the user. Models. Every route has an associated model, containing the data associated with the current state of the application.

What is Ember application?

Ember. js is a productive, battle-tested JavaScript framework for building modern web applications. It includes everything you need to build rich UIs that work on any device.

What is service in Ember?

A Service is an Ember object that lives for the duration of the application, and can be made available in different parts of your application. Services are useful for features that require shared state or persistent connections. Example uses of services might include: User/session authentication. Geolocation.

What is Ember mirage?

Ember CLI Mirage is a client side mock server to develop and prototype applications. It uses a library called. Pretender in the background to make this possible. At some point while learning Ember. js you probably have needed to mock some data from your server.


1 Answers

TBH, I would buy hats made of plants...

Lol, but seriously:

Here are the locations of where the app name is excluding things that you have created, i.e. these are the locations where ember-cli puts your app name by default:

package.json:

"name": "...",

environment.js:

modulePrefix: '...',

bower.json

"name": "...",

app/index.html

<link rel="stylesheet" href="assets/....css">
<script src="assets/....js"></script>

tests/index.html

<link rel="stylesheet" href="assets/....css">
<script src="assets/....js"></script>

Replace ... with your new app name.

Thanks.

like image 170
nahtnam Avatar answered Sep 27 '22 02:09

nahtnam