Releases: enactjs/cli
Releases · enactjs/cli
v2.1.0
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
v2.0.1
v2.0.0
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
, withcustom-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
topostcss-plugin-resolution-independence
to apply to both LESS and CSS build chains. - Switched from
uglifyjs-webpack-plugin
toterser-webpack-plugin
as Uglify is no longer actively developed. - Switched from
extract-text-webpack-plugin
tomini-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.
- Supports Jest options like
- 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 namedinternal
withinstyles
will be ignored.
v1.2.1
v2.0.0-alpha.1
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
, withcustom-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
toterser-webpack-plugin
as Uglify is no longer actively developed. - Switched from
extract-text-webpack-plugin
tomini-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.
- Supports Jest options like
- 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
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 theenact
object metadata from thepackage.json
.
v1.1.1
v1.1.0
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 underprocess.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'spackage.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 targettedcore-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 standalonemocha-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 to1.2.0
.
template
- Relocated default moonstone app template into a separate standalone @enact/template-moonstone package depdendency.
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
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).