Aanmaken van een produktie-omgeving

Any project has its own way to deploy. You are free to use yours. Before deploying, you will need to run the following script:

npm run build

If you are also deploying on the cdn, you need to use:

npm run build
npm run cdn

After deploy, a build folder there will be created with combined files. The while project gets a folder structre like this:

"Appname"<—root-folder of your webapplication
————build<—automaticly built files
————node_modules<—node.js system folder
————src<—project source files
———————actions<—action files
example.js
———————assets<—project assets
—————————css
index.scss
information.scss
common.scss
—————————images
transparent-1px.gif
favicon.ico
———————authentication<—authentication handling
validate.js
———————client-modules<—modules for client side only
test.jsx
———————languages<—json language files
en.json
———————markdowns<—markdown language files
—————————en
information.md
———————models<—project source files
information.js
———————pagetitles<—language page-titles
en.json
———————server-modules<—modules for server side only
———————views<—app views (pages)
index.jsx
information.jsx
app.js
manifest.json
model-general.js
modules-general.js
page-template.jsx
routes.js
.babelrc
.cookierc
.eslintrc
.gitignore
.npmignore
.nvmrc
.stylelintrc
.travis.yml
cdn-cleanup.js
cdn-deploy.js
CHANGELOG.md
gulpfile.js
package-lock.json
package.json
postcss.config.js
server.js
webpack.config.chunks.js
webpack.config.static.js
webpack.config.views.js
OFFLINE