Skip to content

Releases: groupe-sii/clea-cli

1.1.0

07 Aug 12:53
Compare
Choose a tag to compare

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

06 Aug 10:07
Compare
Choose a tag to compare

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

05 Aug 12:36
Compare
Choose a tag to compare

Fixed

Updated

0.0.2

05 Oct 09:57
Compare
Choose a tag to compare

Fixed

0.0.1

14 Aug 16:58
Compare
Choose a tag to compare

Added

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

17 May 09:42
Compare
Choose a tag to compare

Added

  • tests: add some testing

Updated

  • clea/cli: upgrade some packages to their latest minor version [@ValentinGot]

  • 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

0.0.1-rc.3

11 Apr 15:35
Compare
Choose a tag to compare

Breaking changes

  • There is now a dedicated entry for the main module file, between root and environmentSource 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 and environmentSource 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

06 Apr 13:45
Compare
Choose a tag to compare

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

29 Mar 21:42
Compare
Choose a tag to compare

Breaking changes

  • Clea package has been moved to @clea/cli.

    If you're using Clea beta.6 or less, you need to uninstall clea 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 the app.module.ts file:

    import '../vendor'; 
  • The styles bundle is now separated. So you have to remove the main.scss import from the app.module.ts file. Line to remove:

    import '../styles/main.scss'; 
  • angular-mocks is now imported by the Karma configuration. Remove it from the vendor.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

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

27 Mar 12:22
Compare
Choose a tag to compare
0.0.1-beta.6 Pre-release
Pre-release

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]