Browse Source

Add lerna to build package

master
186526 1 year ago
parent
commit
8d3f6542c8
Signed by: 186526 GPG Key ID: C7EB1E6B8CC5E51D
5 changed files with 3167 additions and 62 deletions
  1. 1
      .gitignore
  2. 8
      lerna.json
  3. 13
      package.json
  4. 2
      src/plugins/marked/package.json
  5. 3205
      yarn.lock

1
.gitignore

@ -1,4 +1,5 @@
node_modules
build
dist
src/**/*prod*
src/**/dist/*

8
lerna.json

@ -0,0 +1,8 @@
{
"packages": [
"src/plugins/*"
],
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true
}

13
package.json

@ -7,8 +7,13 @@
"private": true,
"scripts": {
"dev": "snowpack dev",
"build": "yarn --cwd src/plugins/marked build;snowpack build",
"format": "prettier --write \"*[^build]/**/*[^prod][email protected](css|js|html|json)\""
"build": "yarn build:plugins;yarn build:blogging",
"build:plugins": "lerna exec --scope @blogging/plugin-* \"yarn build;\"",
"build:blogging": "snowpack build",
"format": "prettier --write \"*[^build]/**/*[^prod][email protected](css|js|html|json)\"",
"package:blogging": "mkdir dist;yarn build;tar -czvf ./dist/blogging-master.tar.gz ./build",
"clean": "rm -rf ./dist/ ./build/",
"package": "yarn clean;yarn package:blogging"
},
"repository": {
"type": "git",
@ -28,7 +33,9 @@
],
"devDependencies": {
"http-server": "^0.12.3",
"prettier": "^2.1.2"
"lerna": "^3.22.1",
"prettier": "^2.1.2",
"yarn": "^1.22.10"
},
"dependencies": {
"@snowpack/plugin-webpack": "^2.1.1",

2
src/plugins/marked/package.json

@ -1,5 +1,5 @@
{
"name": "@blogging/render-marked",
"name": "@blogging/plugin-render-marked",
"version": "1.0.0",
"description": "Markdown render marked for Blogging",
"main": "main.js",

3205
yarn.lock
File diff suppressed because it is too large
View File

Loading…
Cancel
Save