Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3cf8356d98
71
Makefile
71
Makefile
@ -19,7 +19,6 @@ SED ?= sed
|
|||||||
SPHINXOPTS =
|
SPHINXOPTS =
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# In the case user wishes to use RVM
|
# In the case user wishes to use RVM
|
||||||
USE_RVM ?= false
|
USE_RVM ?= false
|
||||||
RVM_RUBY_VERSION ?= 2.4.2
|
RVM_RUBY_VERSION ?= 2.4.2
|
||||||
@ -39,21 +38,17 @@ help:
|
|||||||
@echo ""
|
@echo ""
|
||||||
@echo " all A synonym for 'make dev'."
|
@echo " all A synonym for 'make dev'."
|
||||||
@echo " build Create minified builds of converse.js and all its dependencies."
|
@echo " build Create minified builds of converse.js and all its dependencies."
|
||||||
@echo " changes Make an overview of all changed/added/deprecated items added to the documentation."
|
@echo " clean Remove all NPM and Ruby packages."
|
||||||
@echo " clean Remove downloaded the stamp-* guard files as well as all NPM and Ruby packages."
|
|
||||||
@echo " css Generate CSS from the Sass files."
|
@echo " css Generate CSS from the Sass files."
|
||||||
@echo " dev Set up the development environment. To force a fresh start, run 'make clean' first."
|
@echo " dev Set up the development environment. To force a fresh start, run 'make clean' first."
|
||||||
@echo " epub Export the documentation to epub."
|
|
||||||
@echo " html Make standalone HTML files of the documentation."
|
@echo " html Make standalone HTML files of the documentation."
|
||||||
@echo " doc Same as "doc". Make standalone HTML files of the documentation."
|
|
||||||
@echo " linkcheck Check all documentation external links for integrity."
|
|
||||||
@echo " po Generate gettext PO files for each i18n language."
|
@echo " po Generate gettext PO files for each i18n language."
|
||||||
@echo " po2json Generate JSON files from the language PO files."
|
@echo " po2json Generate JSON files from the language PO files."
|
||||||
@echo " pot Generate a gettext POT file to be used for translations."
|
@echo " pot Generate a gettext POT file to be used for translations."
|
||||||
@echo " release Prepare a new release of converse.js. E.g. make release VERSION=0.9.5"
|
@echo " release Prepare a new release of converse.js. E.g. make release VERSION=0.9.5"
|
||||||
@echo " serve Serve this directory via a webserver on port 8000."
|
@echo " serve Serve this directory via a webserver on port 8000."
|
||||||
@echo " stamp-npm Install NPM dependencies and create the guard file stamp-npm which will prevent those dependencies from being installed again."
|
@echo " node_modules Install NPM dependencies
|
||||||
@echo " stamp-bundler Install Bundler (Ruby) dependencies and create the guard file stamp-bundler which will prevent those dependencies from being installed again."
|
@echo " gems Install Bundler (Ruby) dependencies
|
||||||
@echo " watch Tells Sass to watch the .scss files for changes and then automatically update the CSS files."
|
@echo " watch Tells Sass to watch the .scss files for changes and then automatically update the CSS files."
|
||||||
|
|
||||||
|
|
||||||
@ -109,23 +104,30 @@ release:
|
|||||||
########################################################################
|
########################################################################
|
||||||
## Install dependencies
|
## Install dependencies
|
||||||
|
|
||||||
stamp-npm: package.json
|
node_modules: package.json package-lock.json
|
||||||
npm install && touch stamp-npm
|
npm install
|
||||||
|
|
||||||
stamp-bundler: Gemfile
|
.bundle: Gemfile
|
||||||
mkdir -p .bundle
|
mkdir -p .bundle
|
||||||
$(RVM_USE)
|
$(RVM_USE)
|
||||||
gem install --user bundler --bindir .bundle/bin
|
gem install --user bundler --bindir .bundle/bin
|
||||||
$(BUNDLE) install --path .bundle --binstubs .bundle/bin
|
$(BUNDLE) install --path .bundle --binstubs .bundle/bin
|
||||||
touch stamp-bundler
|
|
||||||
|
.PHONY: gems
|
||||||
|
gems: .bundle
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
-rm -f stamp-npm stamp-bundler package-lock.json
|
rm -rf node_modules .bundle
|
||||||
-rm -rf node_modules .bundle
|
rm dist/*.min.js
|
||||||
|
rm css/theme.min.css
|
||||||
|
rm css/converse.min.css
|
||||||
|
rm css/mobile.min.css
|
||||||
|
rm css/converse-muc-embedded.css
|
||||||
|
rm css/*.map
|
||||||
|
|
||||||
.PHONY: dev
|
.PHONY: dev
|
||||||
dev: stamp-bundler stamp-npm
|
dev: gems node_modules
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
## Builds
|
## Builds
|
||||||
@ -133,42 +135,31 @@ dev: stamp-bundler stamp-npm
|
|||||||
.PHONY: css
|
.PHONY: css
|
||||||
css: sass/*.scss css/converse.css css/converse.min.css css/mobile.min.css css/theme.min.css css/converse-muc-embedded.min.css css/inverse.css css/inverse.min.css css/fonts.css
|
css: sass/*.scss css/converse.css css/converse.min.css css/mobile.min.css css/theme.min.css css/converse-muc-embedded.min.css css/inverse.css css/inverse.min.css css/fonts.css
|
||||||
|
|
||||||
css/inverse.css:: dev sass sass/*
|
css/inverse.css:: dev sass
|
||||||
$(SASS) -I $(BOURBON_TEMPLATES) sass/inverse/inverse.scss css/inverse.css
|
$(SASS) -I $(BOURBON_TEMPLATES) sass/inverse/inverse.scss $@
|
||||||
|
|
||||||
css/inverse.min.css:: css/inverse.css
|
css/converse-muc-embedded.css:: dev sass
|
||||||
$(CLEANCSS) css/inverse.css > css/inverse.min.css
|
$(SASS) -I $(BOURBON_TEMPLATES) sass/_muc_embedded.scss $@
|
||||||
|
|
||||||
css/converse-muc-embedded.css:: dev sass/*
|
css/converse.css:: dev sass
|
||||||
$(SASS) -I $(BOURBON_TEMPLATES) sass/_muc_embedded.scss css/converse-muc-embedded.css
|
$(SASS) -I $(BOURBON_TEMPLATES) sass/converse/converse.scss $@
|
||||||
|
|
||||||
css/converse-muc-embedded.min.css:: dev sass css/converse-muc-embedded.css
|
css/fonts.css:: dev sass
|
||||||
$(CLEANCSS) css/converse-muc-embedded.css > css/converse-muc-embedded.min.css
|
$(SASS) -I $(BOURBON_TEMPLATES) sass/only-fonts.scss $@
|
||||||
|
|
||||||
css/converse.css:: dev sass/*
|
css/%.min.css:: css/%.css
|
||||||
$(SASS) -I $(BOURBON_TEMPLATES) sass/converse/converse.scss css/converse.css
|
make dev
|
||||||
|
$(CLEANCSS) $< > $@
|
||||||
css/converse.min.css:: css/converse.css
|
|
||||||
$(CLEANCSS) css/converse.css > css/converse.min.css
|
|
||||||
|
|
||||||
css/theme.min.css:: stamp-npm css/theme.css
|
|
||||||
$(CLEANCSS) css/theme.css > css/theme.min.css
|
|
||||||
|
|
||||||
css/mobile.min.css:: stamp-npm sass/*
|
|
||||||
$(CLEANCSS) css/mobile.css > css/mobile.min.css
|
|
||||||
|
|
||||||
css/fonts.css:: dev sass/*
|
|
||||||
$(SASS) -I $(BOURBON_TEMPLATES) sass/only-fonts.scss css/fonts.css
|
|
||||||
|
|
||||||
.PHONY: watch
|
.PHONY: watch
|
||||||
watch: dev
|
watch: dev
|
||||||
$(SASS) --watch -I ./node_modules/bourbon/app/assets/stylesheets/ sass/converse/converse.scss:css/converse.css sass/_muc_embedded.scss:css/converse-muc-embedded.css sass/inverse/inverse.scss:css/inverse.css
|
$(SASS) --watch -I ./node_modules/bourbon/app/assets/stylesheets/ sass/converse/converse.scss:css/converse.css sass/_muc_embedded.scss:css/converse-muc-embedded.css sass/inverse/inverse.scss:css/inverse.css
|
||||||
|
|
||||||
.PHONY: watchjs
|
.PHONY: watchjs
|
||||||
watchjs: stamp-npm
|
watchjs: node_modules
|
||||||
$(BABEL) --source-maps --watch=./src --out-dir=./builds
|
$(BABEL) --source-maps --watch=./src --out-dir=./builds
|
||||||
|
|
||||||
transpile: stamp-npm src
|
transpile: node_modules src
|
||||||
$(BABEL) --source-maps --out-dir=./builds ./src
|
$(BABEL) --source-maps --out-dir=./builds ./src
|
||||||
$(BABEL) --source-maps --out-dir=./builds ./node_modules/backbone.vdomview/backbone.vdomview.js
|
$(BABEL) --source-maps --out-dir=./builds ./node_modules/backbone.vdomview/backbone.vdomview.js
|
||||||
touch transpile
|
touch transpile
|
||||||
@ -216,7 +207,7 @@ build:: dev css transpile $(BUILDS)
|
|||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
.PHONY: eslint
|
.PHONY: eslint
|
||||||
eslint: stamp-npm
|
eslint: node_modules
|
||||||
$(ESLINT) src/
|
$(ESLINT) src/
|
||||||
$(ESLINT) spec/
|
$(ESLINT) spec/
|
||||||
|
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -3873,9 +3873,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"moment": {
|
"moment": {
|
||||||
"version": "2.18.1",
|
"version": "2.19.4",
|
||||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz",
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.19.4.tgz",
|
||||||
"integrity": "sha1-w2GT3Tzhwu7SrbfIAtu8d6gbHA8=",
|
"integrity": "sha512-1xFTAknSLfc47DIxHDUbnJWC+UwgWxATmymaxIPQpmMh7LBm7ZbwVEsuushqwL2GYZU0jie4xO+TK44hJPjNSQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"ms": {
|
"ms": {
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
"jshint": "^2.9.4",
|
"jshint": "^2.9.4",
|
||||||
"lodash": "4.17.4",
|
"lodash": "4.17.4",
|
||||||
"lodash-template-loader": "^2.0.0",
|
"lodash-template-loader": "^2.0.0",
|
||||||
"moment": "~2.18.1",
|
"moment": "~> 2.19.3 ",
|
||||||
"otr": "jcbrand/otr",
|
"otr": "jcbrand/otr",
|
||||||
"pluggable.js": "2.0.0",
|
"pluggable.js": "2.0.0",
|
||||||
"po2json": "^0.4.4",
|
"po2json": "^0.4.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user