Comments (7)
ADDED THIS TO GIVE SUPPORT FOR A TEST ENVIRONMENT:
assembleTest: { files: [{ expand: true, cwd: 'tests', src: ['test-helper.js', 'test-loader.js'], dest: 'tmp/result/tests/' }, { 'expand: true,' 'cwd: 'public',' 'src: ['**'],' 'dest: 'tmp/result/'' }, { 'src: ['vendor/**/*.js', 'vendor/**/*.css'],' 'dest: 'tmp/result/'' }, { 'src: ['config/environment.js', 'config/environments/test.js'],' 'dest: 'tmp/result/'' } ] },
Added this to grunt file:
grunt.registerTask('server:testEnv', "Build and preview a minified & production-ready version of your app.", [ 'clean:debug', 'build:debug', 'copy:assembleTest', 'expressServer:dist:keepalive', 'watch' ]);
This worked for me locally.
Thoughts on this?
from ember-app-kit.
@agentVargas2012R i don't understand the need for assembleTest.
we already do that here
from ember-app-kit.
Hi fsmanuel,
I guess the grunt task name kinda sucks and is a bit of a misnomer.
Your post looks like it refers to including testing frameworks like testem, qunit and the harness which loads these into the ecosystem.
What my question refers to actually is more for targeted environments such as corporate enterprises where there exists more than just a Dev and prod environment. It is very common to have Dev, test , demo preprod and prod targeted domains. Each of these environments can and should have different end points typically because the desparate back end systems refer to various environments which may differ anywhere from underlying data models and versions to availability of services which all may have there own variances.
So what I did here was basically attempt to include a test.js environment config which encapsulates the properties targeted for that environment while externalizing these things to its own deployment artifact.
from ember-app-kit.
@agentVargas2012R i get that but there is a test.js environment that gets loaded in tests.
from ember-app-kit.
Great. I didn't see a way to create the artifact without running tests.
Is that possible?
from ember-app-kit.
@agentVargas2012R good point. i'm not sure how ember-cli handles that case. i don't want to introduce that feature here if it's not in ember-cli to stay upgrade compatible. if ember-cli has that feature we can make your code a PR and think about the task name.
@stefanpenner are multi environments supported in ember-cli? especially the possibility to build and run them in the server (not only for the test runner)?
from ember-app-kit.
Any update on this from you guys?
I am good on my side of things and can close this out if we do not want to pursue this route :)
Just let me know!
from ember-app-kit.
Related Issues (20)
- Does EAK Support Inheritance With Controllers? HOT 3
- Suggestion: Defer loading of JavaScript HOT 1
- Recommended Folder Structure Using EAK HOT 4
- Migrating to Ember-CLI HOT 17
- Deploying to a non-root directory HOT 3
- Trouble with NPM scripts HOT 1
- 'grunt test:server' not work HOT 1
- Extending Store In EAK HOT 4
- EAK: Where do we place {{partials}} ? HOT 2
- `Cannot find module..." HOT 3
- Migrating to Ember-CLI Screencast HOT 2
- Importing shared ES6 modules futuristically HOT 2
- Added bootstrap-sass-official, Now Can't Push to Heroku HOT 2
- Stub API not working with server:dist task
- Transition into the loading substate
- Allow Ember Init and Generate for Coffeescript HOT 1
- Production build failed (grunt:dist) on fresh clone of EAK HOT 1
- Cannot deploy the 'ember app kit' app to heroku
- Update Ember CLI Migration Guide HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-app-kit.