Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
e5d07f5a
Commit
e5d07f5a
authored
Sep 05, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build resources before running tests
parent
01468fc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
Makefile
Makefile
+11
-2
package.json
package.json
+2
-1
No files found.
Makefile
View file @
e5d07f5a
...
...
@@ -39,7 +39,8 @@ help:
@
echo
" clean Remove all NPM packages."
@
echo
" check Run all tests."
@
echo
" css Generate CSS from the Sass files."
@
echo
" dev Set up the development environment and start the webpack dev server. To force a fresh start, run 'make clean' first."
@
echo
" dev Set up the development environment and build unminified resources. To force a fresh start, run 'make clean' first."
@
echo
" devserver Set up the development environment and start the webpack dev server."
@
echo
" html Make standalone HTML files of the documentation."
@
echo
" po Generate gettext PO files for each i18n language."
@
echo
" pot Generate a gettext POT file to be used for translations."
...
...
@@ -122,12 +123,20 @@ clean:
dev
:
stamp-npm
npm run dev
.PHONY
:
devserver
devserver
:
stamp-npm
npm run serve
########################################################################
## Builds
.PHONY
:
css
css
:
sass/*.scss dist/website.css dist/website.min.css
dist/converse.js
::
stamp-npm dev
dist/converse.css
::
stamp-npm dev
dist/website.css
::
stamp-npm sass
$(SASS)
--source-map
true
--include-path
$(BOOTSTRAP)
sass/website.scss
$@
...
...
@@ -188,7 +197,7 @@ eslint: stamp-npm
$(ESLINT)
spec/
.PHONY
:
check
check
:
eslint
build
check
:
eslint
dev
LOG_CR_VERBOSITY
=
INFO
$(CHROMIUM)
--disable-gpu
--no-sandbox
http://localhost:
$(HTTPSERVE_PORT)
/tests/index.html
########################################################################
...
...
package.json
View file @
e5d07f5a
...
...
@@ -15,12 +15,13 @@
"src/"
],
"scripts"
:
{
"
dev
"
:
"webpack-dev-server --config webpack.serve.js"
,
"
serve
"
:
"webpack-dev-server --config webpack.serve.js"
,
"clean"
:
"rm -rf node_modules stamp-npm dist *.zip"
,
"converse-headless.js"
:
"webpack --mode=development --type=headless"
,
"converse-headless.min.js"
:
"npm run converse-headless.js && webpack --mode=production --type=headless"
,
"nodeps"
:
"webpack --config webpack.nodeps.js"
,
"build"
:
"webpack --config webpack.prod.js"
,
"dev"
:
"webpack --config webpack.dev.js"
,
"watch"
:
"webpack --watch --config webpack.dev.js"
,
"lerna"
:
"lerna bootstrap --hoist --ignore-scripts"
,
"prepare"
:
"npm run lerna && npm run build"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment