Skip to content
Snippets Groups Projects
Commit 34c0f07a authored by chris's avatar chris
Browse files

modify create.sh

parent eb5a2663
No related branches found
No related tags found
1 merge request!8Develop
...@@ -19,6 +19,8 @@ rm -rf src/App.test.js ...@@ -19,6 +19,8 @@ rm -rf src/App.test.js
rm -rf src/logo.svg rm -rf src/logo.svg
sed -i "s/default/$1/" package.json sed -i "s/default/$1/" package.json
cd ../../ cd ../../
yarn reset
wait
sed -i '/"build": "lerna run build --concurrency=1 --stream",/a "'$1'": "cd editors/'$1' && yarn start",' package.json sed -i '/"build": "lerna run build --concurrency=1 --stream",/a "'$1'": "cd editors/'$1' && yarn start",' package.json
yarn $1 yarn $1
fi fi
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
"version": "0.0.1", "version": "0.0.1",
"main": "index.js", "main": "index.js",
"author": "Collaborative Knowledge Foundation", "author": "Collaborative Knowledge Foundation",
"description": "description": "Monorepo for wax-prosemirror, its components and its integrations",
"Monorepo for wax-prosemirror, its components and its integrations",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@gitlab.coko.foundation:wax/wax-prosemirror.git" "url": "git@gitlab.coko.foundation:wax/wax-prosemirror.git"
...@@ -13,14 +12,12 @@ ...@@ -13,14 +12,12 @@
"private": true, "private": true,
"scripts": { "scripts": {
"bootstrap": "lerna bootstrap --no-ci --hoist", "bootstrap": "lerna bootstrap --no-ci --hoist",
"clean": "clean": "yarn run clean:artifacts && yarn run clean:packages && yarn run clean:root",
"yarn run clean:artifacts && yarn run clean:packages && yarn run clean:root",
"clean:artifacts": "lerna run clean --parallel", "clean:artifacts": "lerna run clean --parallel",
"clean:packages": "lerna clean --yes", "clean:packages": "lerna clean --yes",
"clean:root": "rm -rf node_modules", "clean:root": "rm -rf node_modules",
"reset": "yarn clean && yarn", "reset": "yarn clean && yarn",
"build": "lerna run build --concurrency=1 --stream", "build": "lerna run build --concurrency=1 --stream",
"aleksis": "cd editors/aleksis && yarn start",
"default": "cd editors/default && yarn start" "default": "cd editors/default && yarn start"
}, },
"dependencies": {}, "dependencies": {},
...@@ -30,6 +27,7 @@ ...@@ -30,6 +27,7 @@
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"css-loader": "^0.28.11", "css-loader": "^0.28.11",
"lerna": "^2.6.0", "lerna": "^2.6.0",
"react-app-rewired": "^2.1.2",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"stylelint": "^8.2.0", "stylelint": "^8.2.0",
"svg-inline-loader": "^0.8.0" "svg-inline-loader": "^0.8.0"
...@@ -41,7 +39,7 @@ ...@@ -41,7 +39,7 @@
"wax-prosemirror-themes", "wax-prosemirror-themes",
"wax-prosemirror-utilities", "wax-prosemirror-utilities",
"wax-prosemirror-layouts", "wax-prosemirror-layouts",
"wax-prosemirror-plugins", "wax-prosemirror-plugins",
"editors/*" "editors/*"
] ]
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment