This repository was archived by the owner on Apr 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Ahmed Tarek edited this page Jan 21, 2017
·
17 revisions
- Features:
- enhanced testing templates
- add test script to run tests once (to be used by CI)
- add tests script to run tests in
watchmode - removed 'use strict';
- Migration:
- update your package.json scripts with the following scripts:
"test": "karma start --log-level debug --single-run", "tests": "karma start --log-level debug"
-
Features:
- Added test configurations
- Added simple test templates
- Add copy webpack plugin to copy static files to the server
- Updated packages
-
Migration:
- Update your package dependancies with the following:
"copy-webpack-plugin": "^4.0.1", "jasmine": "^2.2.1", "jasmine-core": "^2.2.0", "karma": "^0.13.2", "karma-jasmine": "^0.3.5", "karma-phantomjs2-launcher": "^0.5.0", "karma-webpack": "^1.6.0"- Copy the following files to your already generated app:
src/webpack/global.js,karma.config.js,test-context.js
- Update your package dependancies with the following:
- Documenting the generated application
- In your index.components.js
- change the line:
/* Add New COMPONENTS Above */to// Add new components above
- change the line:
- Upgrade webpack
- Problem: Webpack2 unable to import function with only export default value.
Workaround: Use
import * as variable from 'package'instead ofimport variable from 'package'
- Problem: Webpack2 lastest build of today DEC 5 2016 throws an error while starting the server.
Workaround: Fixed Webpack version to: 2.1.0-beta.25 and Webpack-dev-server to "2.1.0-beta.7" until the build is stable.