Skip to content

Releases: enactjs/cli

v2.1.0

17 Jun 21:51
Compare
Choose a tag to compare

Updated all Babel dependencies up to 7.3.x to fix edge-case errors with let keyword usage, among other fixes.

pack

  • Added support for a public directory, where static assets within are copied, at buildtime, to ./dist.
  • Added support for process.env.PUBLIC_URL which is hardcode to '.', for consistency with 3rd party standards.

serve

  • Added support for serving/watching file contents within ./public.

transpiled

  • Fixed --commonjs option not being respected in transpiling process.

v2.0.2

17 Jun 21:51
Compare
Choose a tag to compare

lint

  • Added support for eslint-plugin-jest, with the no-focused-tests rule set to error for the strict ruleset (--strict).

v2.0.1

17 Jun 21:51
Compare
Choose a tag to compare

test

  • Fixed tests being ignored when out-of-project parent directories are named coverage, dist, or build. Such is the case on TravisCI.

v2.0.0

17 Jun 21:50
Compare
Choose a tag to compare

Updated all dependencies to latest releases and added support for TypeScript. In keeping with community standards, CSS/LESS is now processed in the global scope, while modular CSS can be retained by using the .module.css/.module.less extension or setting the forceCSSModules Enact project setting in package.json.

create

  • Updated default included moonstone template for latest Enact with .module.less modular LESS naming format.

link

  • Improved handling and errors when linking into a non-Enact project.

pack

  • Refactored build procedure for latest Webpack 4 and Babel 7.
  • Added support for stage-3 CSS via postcss-preset-env, with custom-properties temporarily disabled while a bug is being resolved.
  • Added support for .env fileformat to declare environment variables for parsing/app-embedding.
  • Added support for TypeScript compilation.
  • Added opt-in support for TypeScript typechecking at buildtime (via typescript app-side dependency).
  • Additional CSS optimization applied via optimize-css-assets-webpack-plugin.
  • Modified Babel configuration to use built-in APIs rather than transpiling mini re-implementations.
  • Modified CSS file handling to only process modular CSS on the .module.css extension.
  • Modified LESS file handling to be independence (only running LESS files through the LESS compiler), with .module.lesas file extension enabled modular context.
  • Switched from less-plugin-resolution-independence to postcss-plugin-resolution-independence to apply to both LESS and CSS build chains.
  • Switched from uglifyjs-webpack-plugin to terser-webpack-plugin as Uglify is no longer actively developed.
  • Switched from extract-text-webpack-plugin to mini-css-extract-plugin for CSS content output.
  • Removed direct autoprefixer usage as postcss-preset-env contains embedded support.
  • Removed support for .__DEV__ CSS class and replaced it with @__DEV__ LESS variable for usage as a CSS guard.
  • Removed legacy custom browser targetting format and now following browserslist standard for desclaring supporting browsers.

lint

  • Added support for TSLint, when linting a TypeScript project and tslint is globally or locally installed.

test

  • Replaced Karma/PhantomJS/Mocha/DirtyChai testing stack with a Jest-based alternative implementation.
    • Supports Jest options like --watch and --coverage as a result.
  • Removed custom Enzyme webpack plugin since we can pre-setup Enyme directly for Jest usage.
  • Removed Sinon in favour of Jest built-in mocking/spy functionality.

transpile

  • Added --commonjs option, enabled by default, which will convert all ES6 import/export statements into CommonJS.
  • LESS files will now be transpiled into CSS. Directories named style will not transpile LESS and will just copy the files (useful for sharing LESS variables/mixins). Directories named internal within styles will be ignored.

v1.2.1

17 Jun 21:50
Compare
Choose a tag to compare
  • Fixed test execution failures where an old copy of Enzyme was erroring out on the latest React 1.6 releases.

v2.0.0-alpha.1

17 Jun 21:49
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release

Updated all dependencies to latest releases.

link

  • Improved handling and errors when linking into a non-Enact project.

pack

  • Refactored build procedure for Webpack 4 and Babel 7.
  • Added support for stage-3 CSS via postcss-preset-env, with custom-properties temporarily disabled while a bug is being resolved.
  • Added support for .env fileformat to declare environment variables for parsing/app-embedding.
  • Additional CSS optimization applied via optimize-css-assets-webpack-plugin.
  • Modified Babel configuration to use built-in APIs rather than transpiling mini re-implementations.
  • Switched from uglifyjs-webpack-plugin to terser-webpack-plugin as Uglify is no longer actively developed.
  • Switched from extract-text-webpack-plugin to mini-css-extract-plugin for CSS content output.
  • Removed direct autoprefixer usage as postcss-preset-env contains embedded support.
  • Removed support for .__DEV__ CSS class and replaced it with @__DEV__ LESS variable for usage as a CSS guard.
  • Removed legacy custom browser targetting format and now following browserslist standard for desclaring supporting browsers.

test

  • Replaced Karma/PhantomJS/Mocha/DirtyChai testing stack with a Jest-based alternative implementation.
    • Supports Jest options like --watch and --coverage as a result.
  • Removed custom Enzyme webpack plugin since we can pre-setup Enyme directly for Jest usage.
  • Removed Sinon in favour of Jest built-in mocking/spy functionality.

v1.2.0

02 Oct 23:34
Compare
Choose a tag to compare

Updated to latest @enact/dev-utils and mocha-react-proptype-checker dependency releases.

create

  • Added core-js as a direct dependency when creating a new project with --local to prevent conflicting polyfill versions.

pack

  • Added support for -m/--meta option to override the enact object metadata from the package.json.

v1.1.1

10 Aug 16:20
Compare
Choose a tag to compare

create

  • Updated default included moonstone template for Enact 2.x.

pack

  • Fixed locale classes failing to be applied on a multi-locale prerender when deep-linking is used.
  • Fixed font style prerendering, with added support for font overrides.

v1.1.0

10 Aug 16:19
Compare
Choose a tag to compare

pack

  • Added new option --verbose which outputs detailed build information as the process ocurrs, for specific information on what modules are being process and when.
  • Added support for dynamically injecting REACT_APP_ prefixed environment variables into app code, when used under process.env.
  • Added support for @global-import "<file>"; syntax to import CSS files in a global context.
  • Added support for boolean flag option externalStartup in the enact options in a project's package.json. When true, any prerender startup scripts will be external file assets, rather than embedded inline javascript.
  • Fixed @babel/polyfill failing to be transpiled into targetted core-js components. Additionally now ensures polyfills aren't loaded more than once.
  • Fixed v8 snapshot support for React 16.4.1.
  • Relocated the old ./config/proptype-checker.js into its own standalone mocha-react-proptype-checker package.
  • Production mode limits the UglifyJS options to ECMA 5 optimizations only.
  • Disabled CSS minifier support for calc simplification due to bugs with CSS variables that contain 'calc' string of letters. See postcss/postcss-calc#50.

lint

  • Updated React ESLint plugin to 7.9.1 and Enact ESLint plugin to 1.2.0.

template

eject

  • Initial implementation of a create-react-app-style project ejection feature. A permanent process which extracts an app from the Enact CLI environment and converts it standalone, with exposed development tool config files.
  • Supports the --bare eject operation flag which removed the Enact CLI sugar from devtool commands and uses the barebones underlying 3rd party tools.

v1.0.4

10 Aug 16:19
Compare
Choose a tag to compare

Updated dependencies to support React/ReactDOM 16.3.2.
Improved CLI runtime executing via v8-compile-cache optimizations.

pack

  • Support @enact/core/snapshot window handling APIs when using v8 snapshot.
  • Preserve HTML comment nodes in prerendered app HTML content (to support empty nodes in React 15).