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
0e7d6481
Commit
0e7d6481
authored
May 10, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add NPM scripts so that we can build dist files
parent
c2a09996
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
64483 deletions
+65
-64483
Makefile
Makefile
+14
-19
package-lock.json
package-lock.json
+32
-162
package.json
package.json
+18
-5
src/headless/dist/converse-headless.js
src/headless/dist/converse-headless.js
+0
-64296
webpack.config.js
webpack.config.js
+1
-1
No files found.
Makefile
View file @
0e7d6481
...
...
@@ -104,8 +104,8 @@ release:
$(INSTALL)
-D
dist/converse.min.js
'converse-assets-
$(VERSION)
/converse.min.js'
$(INSTALL)
-D
dist/converse.min.js.map
'converse-assets-
$(VERSION)
/converse.min.js.map'
$(INSTALL)
-D
dist/converse-headless.js
'converse-assets-
$(VERSION)
/converse-headless.js'
$(INSTALL)
-D
src/headless/
dist/converse-headless.min.js
'converse-assets-
$(VERSION)
/converse-headless.min.js'
$(INSTALL)
-D
src/headless/
dist/converse-headless.min.js.map
'converse-assets-
$(VERSION)
/converse-headless.min.js.map'
$(INSTALL)
-D
dist/converse-headless.min.js
'converse-assets-
$(VERSION)
/converse-headless.min.js'
$(INSTALL)
-D
dist/converse-headless.min.js.map
'converse-assets-
$(VERSION)
/converse-headless.min.js.map'
$(INSTALL)
-D
dist/converse.css
'converse-assets-
$(VERSION)
/dist/converse.css'
$(INSTALL)
-D
dist/converse.min.css
'converse-assets-
$(VERSION)
/dist/converse.min.css'
cp
-r
dist/webfonts
'converse-assets-
$(VERSION)
/dist/'
...
...
@@ -128,12 +128,7 @@ stamp-npm: $(LERNA) package.json package-lock.json src/headless/package.json
.PHONY
:
clean
clean
:
rm
-rf
node_modules stamp-npm
rm
-f
dist/
*
.min.js
*
rm
-f
dist/
*
.min.css
rm
-f
dist/
*
.map
rm
-f
dist/
*
.zip
rm
-f
*
.zip
npm run clean
.PHONY
:
dev
dev
:
stamp-npm
...
...
@@ -144,20 +139,20 @@ dev: stamp-npm
.PHONY
:
css
css
:
sass/*.scss dist/converse.css dist/converse.min.css dist/website.css dist/website.min.css dist/font-awesome.css
dist/converse.css
::
stamp-npm webpack.config.js sass
$(NPX)
webpack
--type
=
css
--mode
=
development
dist/website.css
::
stamp-npm sass
$(SASS)
--source-map
true
--include-path
$(BOURBON)
--include-path
$(BOOTSTRAP)
sass/website.scss
$@
dist/website.min.css
::
stamp-npm dist/website.css
$(CLEANCSS)
$<
>
$@
dist/font-awesome.css
::
stamp-npm sass
$(SASS)
--source-map
true
--include-path
$(BOURBON)
--include-path
$(BOOTSTRAP)
sass/font-awesome.scss
$@
dist/converse.
min.css
::
stamp-npm dist/converse.c
ss
$(CLEANCSS)
$<
>
$@
dist/converse.
css
::
stamp-npm webpack.config.js sa
ss
npm run converse.css
dist/
website.min.css
::
stamp-npm dist/websit
e.css
$(CLEANCSS)
$<
>
$@
dist/
converse.min.css
::
stamp-npm dist/convers
e.css
npm run converse.min.css
.PHONY
:
watchcss
watchcss
:
stamp-npm
...
...
@@ -204,13 +199,13 @@ BUILDS = dist/converse.js \
dist/converse-no-dependencies-es2015.js
dist/converse.js
:
src webpack.config.js stamp-npm @converse/headless
$(NPX)
webpack
--mode
=
development
npm run converse.js
dist/converse.min.js
:
src webpack.config.js stamp-npm @converse/headless
$(NPX)
webpack
--mode
=
production
npm run converse.min.js
src/headless/dist/converse-headless.js
:
src webpack.config.js stamp-npm @converse/headless
$(NPX)
webpack
--mode
=
development
--type
=
headles
s
npm run converse-headless.j
s
src/headless/dist/converse-headless.min.js
:
src webpack.config.js stamp-npm @converse/headless
$(NPX)
webpack
--mode
=
production
--type
=
headles
s
npm run converse-headless.min.j
s
dist/converse-no-dependencies.js
:
src webpack.config.js stamp-npm @converse/headless
$(NPX)
webpack
--mode
=
development
--type
=
nodeps
dist/converse-no-dependencies.min.js
:
src webpack.config.js stamp-npm @converse/headless
...
...
package-lock.json
View file @
0e7d6481
This diff is collapsed.
Click to expand it.
package.json
View file @
0e7d6481
...
...
@@ -2,11 +2,24 @@
"name"
:
"converse.js"
,
"version"
:
"4.2.0"
,
"description"
:
"Browser based XMPP chat client"
,
"main"
:
"dist/converse.js"
,
"directories"
:
{
"doc"
:
"docs"
,
"locale"
:
"locale"
,
"src"
:
"src"
"main"
:
"dist/converse.min.js"
,
"files"
:
[
"dist/"
,
"locale/"
,
"src/"
,
"CHANGES.md"
,
"README.md"
],
"scripts"
:
{
"converse.css"
:
"webpack --type=css --mode=development"
,
"converse.min.css"
:
"npm run converse.css && cleancss --skip-rebase dist/converse.css > dist/converse.min.css"
,
"converse.js"
:
"webpack --mode=development"
,
"converse.min.js"
:
"npm run converse.js && webpack --mode=production"
,
"converse-headless.js"
:
"webpack --mode=development --type=headless"
,
"converse-headless.min.js"
:
"npm run converse-headless.css && webpack --mode=production --type=headless"
,
"clean"
:
"rm -rf node_modules stamp-npm dist *.zip"
,
"build"
:
"npm run converse.min.css && npm run converse-headless.min.js && npm run converse.min.js"
,
"prepare"
:
"npm run build"
},
"repository"
:
{
"type"
:
"git"
,
...
...
src/headless/dist/converse-headless.js
deleted
100644 → 0
View file @
c2a09996
This diff is collapsed.
Click to expand it.
webpack.config.js
View file @
0e7d6481
...
...
@@ -152,7 +152,7 @@ function parameterize () {
extend
(
config
,
{
entry
:
"
@converse/headless/headless.js
"
,
output
:
{
path
:
path
.
resolve
(
__dirname
,
'
src/headless/
dist
'
),
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
filename
:
'
converse-headless.js
'
},
});
...
...
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