This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
0.7.0
Lot's of changes in the boilerplate (scripts/*
).
You should better watch the default boilerplate and grab most of it, then add
back your original modifications.
This changes have been introduced for the better. Pages are now pre-rendered
during development and static build should be faster than before.
- Removed:
collection.json
file does not exist anymore. The collection is
now inlined in generated html pages, even during development so we can use and
access the collection directly and it avoid a server/client request. - Removed: All injected constantes like
__DEV__
and__PROD__
have been
replaced byprocess.env.*
call to make code more universal.
(eg:if (__DEV__)
=>if (process.env.NODE_ENV !== "production")
). - Changed: remove mkdirp in favor of fs-extra
(#126) - Changed: logs are now handled by debug
(#124) - Changed: Move opinionated deps to optionalPeerDependencies
(#99) - Changed: the static build does not require a 3 steps process anymore. No more
statinamic-static.js
script.
Every webpack transformations are now handled via
babel-plugin-webpack-loaders.
to avoid the old painful/slow process.
See boilerplate changes (look forBABEL_ENV=statinamic
and babel
configuration inpackage.json
and in webpack client config). - Changed: collection is now passed in the React
context],
not in the store anymore. - Changed:
pageComponents
are now calledlayouts
.
All references should be renamed accordingly. See boilerplate changes. - Changed:
defaultComponent
prop ofPageContainer
is now
defaultLayout
- Changed: layouts are now passed in the React context, not in the store
anymore. So you need to pass them in the client script now (see boilerplate
change). - Changed:
react-router
has been upgraded to v2.0.0
(#95) - Changed:
redux
as been upgraded to v4.x.
(#91) - Fixed: Dev server now redirects pages without trailing slash
(eg: You callhttp://.../some/thing
; will redirect to
http://.../some/thing/
)
(#22) - Added: the entire configuration is now inspected so you do not provide
unexpected types or unrecognized configuration values.
(#120) - Added:
assets
option to add static assets such as images, video
(#94) - Added:
statinamic
section inpackage.json
can be used to define core
options likeCNAME
. - Added:
CNAME
option to generate aCNAME
file according to your
homepage
(#24) - Added:
nojekyll
option to create.nojekyll
file. - Added:
verbose
option to create get more informations during development. - Added:
devHost
anddevPort
options so you can choose your url during
development. - Added: Development server now generate pre-rendered pages on the fly.
- Added: Allow to pass extra middlewares and store enhancers to redux store
(#102)
Boilerplate
Lot's of change due to how static generation is handled without a 3 steps
process:
- Removed: boilerplate
scripts/index-static.js
(and so
scripts/statinamic-static.js
) - Changed: shorter start and build script
(#127) - Changed:
web_modules/app/store.js
don't have references to
pageComponents
norcollection
. - Changed: boilerplate
web_modules/app/layouts.js
=>
web_modules/layouts/index.js
- Changed: boilerplate
web_modules/Page/
=>web_modules/layouts/Page/
- Changed: boilerplate
web_modules/PageError/
=>
web_modules/layouts/PageError/
- Changed: boilerplate
Layout
wrapper is now calledLayoutContainer
- Changed: boilerplate
static
npm script has been renamed asbuild
to
make the build step easier to find. - Changed: webpack entries now use hashed name by default
- Added: boilerplate includes cssnext instead 2 PostCSS
plugins.
(#87) - Added: boilerplate includes stylelint and
lint CSS with a standard configuration.
(#86) - Added: boilerplate now support a new field from markdown files to specify the
<title>
tag without affecting the body page title (<h1>
)
(See Writing section of the documentation for more information).
(#76)