Releases: groupe-sii/clea-cli
1.1.0
BREAKING CHANGES
-
test: upgrade the test process. As of now, the karma config file will old the entire configuration, for easy configuration by the end user. [@ValentinGot]
karma.conf.js:
module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine'], plugins: [ require('karma-webpack'), require('karma-sourcemap-loader'), require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-spec-reporter'), require('karma-jasmine-html-reporter') ], client: { clearContext: false // leave Jasmine Spec Runner output visible in browser }, reporters: ['kjhtml', 'spec'], specReporter: { maxLogLines: 5, suppressErrorSummary: true, suppressFailed: false, suppressPassed: false, suppressSkipped: true, showSpecTiming: false }, port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], singleRun: false, restartOnFileChange: true }); };
package.json:
{ "devDependencies": { "karma-chrome-launcher": "^3.0.0", "karma-jasmine": "^2.0.1", "karma-jasmine-html-reporter": "^1.4.2", "karma-sourcemap-loader": "^0.3.7", "karma-spec-reporter": "0.0.32", "karma-webpack": "^4.0.2" } }
Feat
- test: add a
--browsers
option to override which browsers tests are run against [@ValentinGot] - test: add a
--progress
option [@ValentinGot]
1.0.0
BREAKING CHANGES
-
raw-loader: as of raw-loader 2.0.0, you should add the
.default
when requiring a template [@ValentinGot]export const AppComponent = { controller: AppController, template: require('./app.component.html').default };
-
@clea/cli: bump to Webpack 4 [@ValentinGot]
-
@clea/cli: minimum required nodejs version is now
8.9.0
[@ValentinGot]
Feat
-
performance: add a new performance entry configuration in the
.clea-cli.json
file [@ValentinGot]{ "performance": { "hints": "warning", "maxEntrypointSize": 2000000, "maxAssetSize": 2000000 } }
Fixed
- package.json: as of now, postcss requires
autoprefixer
to be set as a dependency [@ValentinGot]
Updated
- generate: generated components are now in the
__name__.compnent.ts
file. The controller file has been removed for more clarity. [@ValentinGot] - @clea/cli: bump TypeScript version to
3.5
[@ValentinGot] - @clea/cli: bump Angular version to
1.7
[@ValentinGot]
0.0.3
Fixed
- @clea/cli: security issues [@ValentinGot]
Updated
- @clea/cli: upgrade dependencies [@ValentinGot]
0.0.2
Fixed
- service-worker: remove sw-precache-webpack-dev-plugin which lacks maintenance [@ValentinGot]
- @clea/cli: upgrade some packages to their latest version [@ValentinGot]
0.0.1
Added
-
progressive-web-apps: 100% lighthouse report on Progressive Web Apps [@ValentinGot]
- add 512x512 icon which is required for A2HS (Closes #19)
- theme the browser address bar
- it should contains an error message when JavaScript isn't enabled
-
Upgrade to Webpack 3 and add new Scope Hoisting feature [@ValentinGot]
Updated
- @clea/cli: upgrade packages to their latest version [@ValentinGot]
Fixed
- app: angular-ui-router has been renamed to @uirouter/angularjs (Closes #20)
- webpack: fix webpack-dev-server #88 issue with output.path on Windows [@ValentinGot]
0.0.1-rc.4
Added
- tests: add some testing
Updated
-
clea/cli: upgrade some packages to their latest minor version [@ValentinGot]
- compression-webpack-plugin: 0.3.2 to 0.4.0. Release notes.
- css-loader: 0.27.1 to 0.28.1. Release notes.
- jasmine-core: 2.5.2 to 2.6.1. Release notes.
- json-server: 0.9.6 to 0.10.0.
- karma: 1.5.0 to 1.6.0. Release notes.
- style-loader: 0.16.1 to 0.17.0. Release notes.
- sw-precache-webpack-plugin: 0.9.1 to 0.10.1.
- typedoc: 0.5.7 to 0.6.0. Release notes.
- typescript: 2.2.1 to 2.3.2. Release notes.
- webpack: 2.2.1 to 2.4.1. Release notes.
- webpack-merge: 4.0.0 to 4.1.0.
-
clea/cli: upgrade some packages to their latest patch version [@ValentinGot]
- angular-mocks: 1.6.3 to 1.6.4
- clean-webpack-plugin: 0.1.15 to 0.1.16
- debug: 2.6.1 to 2.6.6
- file-loader: 0.10.1 to 0.11.1
- karma-phantomjs-launcher: 1.0.3 to 1.0.4
- karma-spec-reporter: 0.0.30 to 0.0.31
- karma-webpack: 2.0.2 to 2.0.3
- node-sass: to 4.5.0 4.5.2
- ts-loader: 2.0.1 to 2.0.3
- typedoc-webpack-plugin: 1.1.3 to 1.1.4
- webpack-dev-server: 2.4.1 to 2.4.5
Updated
- tsconfig: upgrade tsconfig.json, mainly to add ES7 support [@ValentinGot]
Fixed
- tslint: upgrade to 5.1.0 to fix no-use-before-declare issue [@ValentinGot]
- completion: shouldn't error when used outside project folder [@ValentinGot]
- karma: the karma configuration can now be overrided [@ValentinGot]
0.0.1-rc.3
Breaking changes
-
There is now a dedicated entry for the main module file, between
root
andenvironmentSource
in.clea-cli.json
:{ "root": "src", "main": "app/app.module.ts", "environmentSource": "config/config.json" }
-
There is now a dedicated entry for the main styles files, between
main
andenvironmentSource
in.clea-cli.json
:{ "main": "app/app.module.ts", "styles": [ "styles/main.scss" ], "environmentSource": "config/config.json" }
Fixed
- webpack: duplicate declaration of
config
variable was causing build errors [@ValentinGot]
0.0.1-rc.2
Added
-
build: add
--compress
option to gain ~70% compression ratio with compression-webpack-plugin [@ValentinGot]For an hello world app:
Bundle Entry Emitted Compressed (gzip) main 4.36 kB 2.33 kB 907 bytes vendor 2.57 MB 440 kB 144 kB styles 70 kB 28.4 kB 9.11 kB -
new: add
--commit-message-conventions
options to enable the hook commit-msg with the google conventions (Closes #15) [@kgrandemange] -
completion: add a
clea completion
command (Closes #8) [@kgrandemange]
Fixed
- blueprints: add ngInject annotation by default on component's controller [@ValentinGot]
0.0.1-rc.1
Breaking changes
-
Clea package has been moved to
@clea/cli
.If you're using Clea
beta.6
or less, you need to uninstallclea
package.npm uninstall -g clea npm uninstall --save-dev clea
To upgrade Clea to it's latest version, you must upgrade the global and local package.
For the global package:
npm cache clean npm install -g @clea/cli
For a local project:
rm node_modules -rf npm install --save-dev @clea/cli npm install
-
A
spec
entry has been added to the.clea-cli.json
. Add it to the end of the file:"spec": { "component": true, "directive": false, "filter": false, "service": true, "module": true }
-
Take advantage of Tree Shaking by importing the
vendor.ts
directly in theapp.module.ts
file:import '../vendor';
-
The styles bundle is now separated. So you have to remove the
main.scss
import from theapp.module.ts
file. Line to remove:import '../styles/main.scss';
-
angular-mocks
is now imported by the Karma configuration. Remove it from thevendor.ts
file or it will break your tests. Line to remove:import 'angular-mocks';
Added
- tree-shaking: change the webpack configuration to take advantage of tree shaking [@ValentinGot]
- base-href: add a
--base-href [url]
option to easily configure the<base href="" />
tag [@ValentinGot] - spec: generate spec files based on the
spec
entry in the configuration file (Closes #11) [@ValentinGot]
Updated
- styles: change the webpack configuration to export a
styles.bundle.js
[@ValentinGot] - spec: use beforeAll hook to follow AngularJS's guidelines [@ValentinGot]
Fixed
- build: now providing an absolute path for webpack
configuration.output.path
(Closes #13) [@ValentinGot] - progress: progress in now shown on the same line [@ValentinGot]
- generate: throw an error if no name has been specified [@ValentinGot]
- test: just load angular-mocks in karma configuration file [@ValentinGot]
0.0.1-beta.6
Updated
- make-it-progressive: register the service worker inside the angular context [@ValentinGot]
Fixed
- build: UglifyJsPlugin warnings should only be visible in verbose mode [@ValentinGot]
- build: CleanWebpackPlugin infos should only be visible in verbose mode [@ValentinGot]
- ui-framework: missing angular-material typings [@ValentinGot]
- blueprint-module: ng-annotate with lazy-loading is now working when builded (Closes #12) [@ValentinGot]
- angular-toastr: it shouldn't be installed by default [@ValentinGot]