Init project with lerna
This commit is contained in:
parent
279fda7877
commit
0370ced93f
33
Makefile
33
Makefile
@ -1,7 +1,7 @@
|
|||||||
# You can set these variables from the command line.
|
# You can set these variables from the command line.
|
||||||
BABEL ?= node_modules/.bin/babel
|
BABEL ?= node_modules/.bin/babel
|
||||||
BOOTSTRAP = ./node_modules/
|
BOOTSTRAP = ./node_modules/
|
||||||
BOURBON = ./node_modules/bourbon/app/assets/stylesheets/
|
BOURBON = ./node_modules/bourbon/app/assets/stylesheets/
|
||||||
BUILDDIR = ./docs
|
BUILDDIR = ./docs
|
||||||
BUNDLE ?= ./.bundle/bin/bundle
|
BUNDLE ?= ./.bundle/bin/bundle
|
||||||
CHROMIUM ?= ./node_modules/.bin/run-headless-chromium
|
CHROMIUM ?= ./node_modules/.bin/run-headless-chromium
|
||||||
@ -11,6 +11,7 @@ HTTPSERVE ?= ./node_modules/.bin/http-server
|
|||||||
HTTPSERVE_PORT ?= 8000
|
HTTPSERVE_PORT ?= 8000
|
||||||
INKSCAPE ?= inkscape
|
INKSCAPE ?= inkscape
|
||||||
JSDOC ?= ./node_modules/.bin/jsdoc
|
JSDOC ?= ./node_modules/.bin/jsdoc
|
||||||
|
LERNA ?= ./node_modules/.bin/lerna
|
||||||
OXIPNG ?= oxipng
|
OXIPNG ?= oxipng
|
||||||
PAPER =
|
PAPER =
|
||||||
PO2JSON ?= ./node_modules/.bin/po2json
|
PO2JSON ?= ./node_modules/.bin/po2json
|
||||||
@ -23,7 +24,7 @@ SPHINXOPTS =
|
|||||||
UGLIFYJS ?= node_modules/.bin/uglifyjs
|
UGLIFYJS ?= node_modules/.bin/uglifyjs
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
ifeq ($(USE_RVM),true)
|
ifeq ($(USE_RVM),true)
|
||||||
@ -61,7 +62,7 @@ help:
|
|||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
|
|
||||||
.PHONY: serve
|
.PHONY: serve
|
||||||
serve: dev
|
serve: dev
|
||||||
$(HTTPSERVE) -p $(HTTPSERVE_PORT) -c-1
|
$(HTTPSERVE) -p $(HTTPSERVE_PORT) -c-1
|
||||||
|
|
||||||
.PHONY: serve_bg
|
.PHONY: serve_bg
|
||||||
@ -108,8 +109,11 @@ release:
|
|||||||
########################################################################
|
########################################################################
|
||||||
## Install dependencies
|
## Install dependencies
|
||||||
|
|
||||||
stamp-npm: package.json package-lock.json
|
$(LERNA):
|
||||||
npm install
|
npm install lerna
|
||||||
|
|
||||||
|
stamp-npm: $(LERNA) package.json package-lock.json packages/headless/package.json
|
||||||
|
$(LERNA) bootstrap --hoist
|
||||||
touch stamp-npm
|
touch stamp-npm
|
||||||
|
|
||||||
stamp-bundler: Gemfile
|
stamp-bundler: Gemfile
|
||||||
@ -186,21 +190,22 @@ BUILDS = dist/converse.js \
|
|||||||
dist/converse-no-dependencies.js \
|
dist/converse-no-dependencies.js \
|
||||||
dist/converse-no-dependencies-es2015.js
|
dist/converse-no-dependencies-es2015.js
|
||||||
|
|
||||||
dist/converse.js: src webpack.config.js stamp-npm
|
dist/converse.js: src webpack.config.js stamp-npm @converse/headless
|
||||||
./node_modules/.bin/npx webpack --mode=development
|
./node_modules/.bin/npx webpack --mode=development
|
||||||
dist/converse.min.js: src webpack.config.js stamp-npm
|
dist/converse.min.js: src webpack.config.js stamp-npm @converse/headless
|
||||||
./node_modules/.bin/npx webpack --mode=production
|
./node_modules/.bin/npx webpack --mode=production
|
||||||
dist/converse-headless.js: src webpack.config.js stamp-npm
|
dist/converse-headless.js: src webpack.config.js stamp-npm @converse/headless
|
||||||
./node_modules/.bin/npx webpack --mode=development --type=headless
|
./node_modules/.bin/npx webpack --mode=development --type=headless
|
||||||
dist/converse-headless.min.js: src webpack.config.js stamp-npm
|
dist/converse-headless.min.js: src webpack.config.js stamp-npm @converse/headless
|
||||||
./node_modules/.bin/npx webpack --mode=production --type=headless
|
./node_modules/.bin/npx webpack --mode=production --type=headless
|
||||||
dist/converse-no-dependencies.js: src webpack.config.js stamp-npm
|
dist/converse-no-dependencies.js: src webpack.config.js stamp-npm @converse/headless
|
||||||
./node_modules/.bin/npx webpack --mode=development --type=nodeps
|
./node_modules/.bin/npx webpack --mode=development --type=nodeps
|
||||||
dist/converse-no-dependencies.min.js: src webpack.config.js stamp-npm
|
dist/converse-no-dependencies.min.js: src webpack.config.js stamp-npm @converse/headless
|
||||||
./node_modules/.bin/npx webpack --mode=production --type=nodeps
|
./node_modules/.bin/npx webpack --mode=production --type=nodeps
|
||||||
dist/converse-no-dependencies-es2015.js: src webpack.config.js stamp-npm
|
dist/converse-no-dependencies-es2015.js: src webpack.config.js stamp-npm @converse/headless
|
||||||
./node_modules/.bin/npx webpack --mode=development --type=nodeps --lang=es2015
|
./node_modules/.bin/npx webpack --mode=development --type=nodeps --lang=es2015
|
||||||
|
|
||||||
|
@converse/headless: packages/headless
|
||||||
|
|
||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
dist:: build
|
dist:: build
|
||||||
|
7
lerna.json
Normal file
7
lerna.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"packages": [
|
||||||
|
".",
|
||||||
|
"packages/*"
|
||||||
|
],
|
||||||
|
"version": "4.0.2"
|
||||||
|
}
|
@ -63,6 +63,7 @@
|
|||||||
"jquery": "3.2.1",
|
"jquery": "3.2.1",
|
||||||
"jsdoc": "^3.5.5",
|
"jsdoc": "^3.5.5",
|
||||||
"jshint": "^2.9.4",
|
"jshint": "^2.9.4",
|
||||||
|
"lerna": "^3.4.3",
|
||||||
"lodash": "4.17.10",
|
"lodash": "4.17.10",
|
||||||
"lodash-template-loader": "^2.0.0",
|
"lodash-template-loader": "^2.0.0",
|
||||||
"lodash-template-webpack-loader": "jcbrand/lodash-template-webpack-loader",
|
"lodash-template-webpack-loader": "jcbrand/lodash-template-webpack-loader",
|
||||||
|
Loading…
Reference in New Issue
Block a user