chore: add build clean npm script

This commit is contained in:
Sam Tolmay 2020-10-23 13:23:57 +02:00
parent 0a6ef8d09b
commit d01c36b1e4
13 changed files with 25 additions and 14 deletions

View File

@ -27,7 +27,7 @@
],
"scripts": {
"build": "lerna run build",
"clean": "rm -rf **/**/node_modules && rm -rf ./node_modules",
"clean": "lerna run clean",
"prepare": "lerna run prepare",
"prettier": "prettier --config .prettierrc --write **/*.js",
"test": "lerna run test"
@ -45,4 +45,4 @@
"lerna": "3.22.1",
"prettier": "2.1.2"
}
}
}

View File

@ -27,6 +27,7 @@
],
"scripts": {
"build": "babel src --copy-files --out-dir dist",
"clean": "rm -rf dist",
"dev": "webpack serve",
"npm-publish": "npm publish --access public",
"prepare": "yarn build",
@ -71,4 +72,4 @@
"yaml-jest": "1.0.5",
"yaml-loader": "0.6.0"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "yarn webpack",
"clean": "rm -rf dist",
"webpack": "webpack --config webpack.config.js",
"test": "jest --coverage"
},
@ -48,4 +49,4 @@
"webpack": "5.1.3",
"webpack-cli": "4.0.0"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"test": "jest --coverage",
"prepare": "yarn build",
"prepublishOnly": "yarn build",
@ -39,4 +40,4 @@
"babel-jest": "26.5.2",
"jest": "26.5.3"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"npm-publish": "npm publish --access public",
"prepare": "yarn build",
"prepublishOnly": "yarn build",
@ -43,4 +44,4 @@
"babel-jest": "26.5.2",
"jest": "26.5.3"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"test": "jest --coverage",
"prepare": "yarn build",
"prepublishOnly": "yarn build"
@ -38,4 +39,4 @@
"babel-jest": "26.5.2",
"jest": "26.5.3"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "yarn webpack",
"clean": "rm -rf dist",
"webpack": "webpack --config webpack.config.js",
"test": "jest --coverage"
},
@ -46,4 +47,4 @@
"webpack": "5.1.3",
"webpack-cli": "4.0.0"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"test": "jest --coverage",
"prepare": "yarn build",
"prepublishOnly": "yarn build",
@ -41,4 +42,4 @@
"jest": "26.5.3",
"jest-diff": "26.5.2"
}
}
}

View File

@ -27,6 +27,7 @@
],
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"dev": "webpack serve",
"npm-publish": "npm publish --access public",
"prepare": "yarn build",
@ -69,4 +70,4 @@
"yaml-jest": "1.0.5",
"yaml-loader": "0.6.0"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"test": "jest --coverage",
"prepare": "yarn build",
"prepublishOnly": "yarn build",
@ -41,4 +42,4 @@
"jest": "26.5.3",
"jest-diff": "26.5.2"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/nunjucks.js",
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"test": "jest --coverage",
"prepare": "yarn build",
"prepublishOnly": "yarn build",
@ -41,4 +42,4 @@
"babel-jest": "26.5.2",
"jest": "26.5.3"
}
}
}

View File

@ -24,6 +24,7 @@
"main": "dist/index.js",
"scripts": {
"build": "babel src --out-dir dist",
"clean": "rm -rf dist",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"prepare": "yarn build",
@ -43,4 +44,4 @@
"babel-jest": "26.5.2",
"jest": "26.5.3"
}
}
}

View File

@ -62,4 +62,4 @@
"webpack-dev-server": "3.11.0",
"webpack-merge": "5.2.0"
}
}
}