Skip to content

Commit

Permalink
Add webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Feb 24, 2017
1 parent a0d1017 commit 6c67ab6
Show file tree
Hide file tree
Showing 21 changed files with 790 additions and 576 deletions.
56 changes: 56 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ parts +=
i18ndude
omelette
rebuild_i18n-sh
webpack
webpack_env
npm_watch
npm_dev
npm_build

[code-analysis]
recipe = plone.recipe.codeanalysis[recommended]
Expand All @@ -32,6 +37,57 @@ eggs = i18ndude
recipe = collective.recipe.omelette
eggs = ${instance:eggs}

[webpack]
recipe = gp.recipe.node
version = 6.6.0
npms = npm yarn webpack@2
scripts = npm yarn webpack

[webpack_env]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
export PATH=${buildout:bin-directory}:$PATH
cd webpack
yarn
exec $SHELL
output = ${buildout:bin-directory}/webpack_env
mode = 755

[npm_watch]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
PATH=${buildout:bin-directory}:$PATH
cd webpack
yarn
npm run watch
output = ${buildout:bin-directory}/npm_watch
mode = 755

[npm_dev]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
PATH=${buildout:bin-directory}:$PATH
cd webpack
yarn
npm run dev
output = ${buildout:bin-directory}/npm_dev
mode = 755

[npm_build]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
PATH=${buildout:bin-directory}:$PATH
cd webpack
yarn
npm run build
output = ${buildout:bin-directory}/npm_build
mode = 755

[versions]
# use latest version of coverage
coverage =

Binary file modified src/collective/newsticker/browser/static/controls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6c67ab6

Please sign in to comment.