All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
1.1.0 - 2019-08-07
-
test: upgrade the test process. As of now, the karma config file will old the entire configuration, for easy configuration by the end user.
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" } }
- test: add a
--browsers
option to override which browsers tests are run against @ValentinGot - test: add a
--progress
option @ValentinGot
1.0.0 - 2019-08-06
-
raw-loader: as of raw-loader 2.0.0, you should add the
.default
when requiring a template @ValentinGotexport 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
-
performance: add a new performance entry configuration in the
.clea-cli.json
file @ValentinGot{ "performance": { "hints": "warning", "maxEntrypointSize": 2000000, "maxAssetSize": 2000000 } }
- package.json: as of now, postcss requires
autoprefixer
to be set as a dependency @ValentinGot
- 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 - 2019-08-05
- @clea/cli: upgrade dependencies @ValentinGot
- @clea/cli: security issues @ValentinGot
0.0.2 - 2017-10-05
- 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 - 2017-08-14
-
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
- @clea/cli: upgrade packages to their latest version @ValentinGot
- 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 - 2017-05-17
- tests: add some testing
-
@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
- tsconfig: upgrade tsconfig.json, mainly to add ES7 support @ValentinGot
- 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 - 2017-04-11
-
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" }
- webpack: duplicate declaration of
config
variable was causing build errors @ValentinGot
0.0.1-rc.2 - 2017-04-06
- 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
- blueprints: add ngInject annotation by default on component's controller @ValentinGot
0.0.1-rc.1 - 2017-03-29
-
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';
- 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
- styles: change the webpack configuration to export a
styles.bundle.js
@ValentinGot - spec: use beforeAll hook to follow AngularJS's guidelines @ValentinGot
- 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 - 2017-03-27
- make-it-progressive: register the service worker inside the angular context @ValentinGot
- 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
0.0.1-beta.5 - 2017-03-17
- test: add a
--watch
option to rerun tests when files change (Closes #9) @ValentinGot - test: add a
--single-run
option to run tests only once (Closes #10) @ValentinGot
- service: the service name in generated spec file should be camelized @ValentinGot
- service: the AppModule is now always loaded in the spec file (Closes #7) @ValentinGot
- component: the AppModule is now always loaded in the spec file (Closes #7) @ValentinGot
- tests: add images, fonts and json loader on karma webpack config @ValentinGot
- tsconfig: allow use of es6 polyfills with TypeScript (TypeScript #6974) @ValentinGot
0.0.1-beta.4 - 2017-03-15
- api: RESTFul mocks with json-server integration @ValentinGot
- docs: add some documentation stories (Closes #1) @ValentinGot
- new: initialize a git repository when installation is done (Closes #5) @ValentinGot
- new: add a
--skip-git
option to skip the git initialization @ValentinGot
- make-it-progressive: the Web App Manifest is always generated, not need to use
--make-it-progressive
@ValentinGot - library:
--lib
has been deactivated for now. Needs a lot of fixes @ValentinGot
- templates: missing
angular-cookies
import @ValentinGot - ui-framework: make angular-material icons work @ValentinGot
- ui-framework: make angular-ui-bootstrap work @ValentinGot
- generate: a component, directive or filter name should be camelized when registered (Closes #6) @ValentinGot
0.0.1-beta.3 - 2017-03-14
- make-it-progressive: add a
--make-it-progressive
option to scaffold a Progressive Web App when usingclea new
orclea init
(Closes #2) @ValentinGot - make-it-progressive: add server support with sw-precache-webpack-dev-plugin (Closes #3) @ValentinGot
- tests: the karma configuration file location was wrong. It's under clea/ folder and not clea-cli/ @ValentinGot
- webpack: stop removing the dist/ folder when serving the application with
clea serve
@ValentinGot
0.0.1-beta.2 - 2017-03-13
- templates: add
clea
package to generated projects @ValentinGot
Releasing the first version of clea
@ValentinGot @liollury