Skip to content

Commit

Permalink
chore: fixes the publishing files while running npm (#1281)
Browse files Browse the repository at this point in the history
* chore: fixes the publishing files while running npm

* chore: added webpack 5 to peer deps

* chore: fixed linking of deps

* chore: correctly prepare the suite on CI
  • Loading branch information
ematipico authored Mar 2, 2020
1 parent c0f6f01 commit 4669756
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 221 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
run: |
yarn add -W webpack@${{ matrix.webpack-version }}
yarn build
yarn prepsuite
yarn test:ci
env:
CI: true
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test:cli": "nyc jest test/ --maxWorkers=4 --reporters=default --reporters=jest-junit",
"test:packages": "nyc jest packages/ --maxWorkers=4 --reporters=default --reporters=jest-junit",
"test:ci": "yarn test:cli && yarn test:packages",
"travis:integration": "yarn build && yarn test && yarn reportCoverage",
"travis:integration": "yarn build && yarn prepsuite && yarn test && yarn reportCoverage",
"travis:lint": "yarn build && yarn lint",
"test:watch": "jest test/ packages/ --watch",
"watch": "yarn build && tsc -w",
Expand Down Expand Up @@ -160,7 +160,7 @@
"ts-jest": "^25.2.1",
"typedoc": "^0.15.0",
"typescript": "^3.7.2",
"webpack": "^5.0.0-beta.12",
"webpack": "^4.42.0",
"yeoman-test": "^2.1.0"
}
}
6 changes: 5 additions & 1 deletion packages/generate-loader/.npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
test/fixtures
types
templates/test
*.ts
tsconfig.json
**/__mocks__/**
**/__tests__/**
src
tsconfig.json
tsconfig.tsbuildinfo
5 changes: 0 additions & 5 deletions packages/generate-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,5 @@
"build": "tsc",
"watch": "npm run build && tsc -w"
},
"files": [
"lib",
"templates",
"examples"
],
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9"
}
5 changes: 4 additions & 1 deletion packages/generate-plugin/.npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
test/fixtures
types
templates/test
*.ts
**/__mocks__/**
**/__tests__/**
src
tsconfig.json
tsconfig.tsbuildinfo
5 changes: 0 additions & 5 deletions packages/generate-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,5 @@
"build": "tsc",
"watch": "npm run build && tsc -w"
},
"files": [
"lib",
"templates",
"examples"
],
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9"
}
4 changes: 4 additions & 0 deletions packages/generators/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
**/*.ts
*.ts
*.test.*
**/__mocks__/**
**/__tests__/**
src
tsconfig.json
tsconfig.tsbuildinfo
7 changes: 1 addition & 6 deletions packages/generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
"lodash": "4.17.15",
"log-symbols": "3.0.0",
"mkdirp": "0.5.1",
"webpack": "4.x.x",
"webpack-dev-server": "3.8.0",
"yeoman-generator": "4.5.0"
},
"peerDependencies": {
"webpack": "4.x.x"
"webpack-cli": "3.x.x || 4.x.x"
},
"devDependencies": {
"@types/inquirer": "6.5.0",
Expand All @@ -45,9 +44,5 @@
"build": "tsc",
"watch": "npm run build && tsc -w"
},
"files": [
"lib",
"templates"
],
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9"
}
5 changes: 5 additions & 0 deletions packages/info/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
*.ts
tsconfig.json
**/__mocks__/**
**/__tests__/**
src
tsconfig.json
tsconfig.tsbuildinfo
3 changes: 0 additions & 3 deletions packages/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@
"build": "tsc",
"watch": "npm run build && tsc -w"
},
"files": [
"lib"
],
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9"
}
6 changes: 6 additions & 0 deletions packages/init/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
types
tsconfig.json
*.ts
**/__mocks__/**
**/__tests__/**
.eslintrc
src
tsconfig.json
tsconfig.tsbuildinfo
3 changes: 0 additions & 3 deletions packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@
"build": "tsc",
"watch": "npm run build && tsc -w"
},
"files": [
"lib"
],
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9"
}
8 changes: 2 additions & 6 deletions packages/logger/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"root": true,
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"extends": ["plugin:@typescript-eslint/recommended", "prettier", "prettier/@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint"]
}
6 changes: 6 additions & 0 deletions packages/logger/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/__mocks__/**
**/__tests__/**
.eslintrc
src
tsconfig.json
tsconfig.tsbuildinfo
3 changes: 0 additions & 3 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
"directories": {
"test": "__tests__"
},
"files": [
"lib"
],
"publishConfig": {
"access": "public"
},
Expand Down
7 changes: 6 additions & 1 deletion packages/serve/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
**/__mocks__/**
**/__tests__/**
.eslintrc
src
tsconfig.json
*.ts
tsconfig.tsbuildinfo

3 changes: 0 additions & 3 deletions packages/serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"publishConfig": {
"access": "public"
},
"files": [
"lib"
],
"author": "",
"license": "MIT",
"dependencies": {
Expand Down
7 changes: 6 additions & 1 deletion packages/utils/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ __testfixtures__
types
*.test.*
defineTest.*
*.ts
**/__mocks__/**
**/__tests__/**
.eslintrc
src
tsconfig.json
tsconfig.tsbuildinfo
3 changes: 0 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,5 @@
"test": "jest --detectOpenHandles",
"watch": "npm run build && tsc -w"
},
"files": [
"lib"
],
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9"
}
6 changes: 6 additions & 0 deletions packages/webpack-cli/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/__mocks__/**
**/__tests__/**
.eslintrc
src
tsconfig.json
tsconfig.tsbuildinfo
6 changes: 1 addition & 5 deletions packages/webpack-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"bundler",
"web"
],
"files": [
"lib",
"bin/cli.js"
],
"dependencies": {
"@webpack-cli/logger": "^1.0.1-alpha.3",
"@webpack-cli/package-utils": "^1.0.1-alpha.3",
Expand All @@ -44,7 +40,7 @@
"webpack-merge": "^4.2.2"
},
"peerDependencies": {
"webpack": "^5.0.0-beta.12"
"webpack": "4.x.x || 5.x.x"
},
"devDependencies": {
"@webpack-cli/info": "^1.0.1-alpha.3"
Expand Down
6 changes: 4 additions & 2 deletions packages/webpack-scaffold/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__tests__
**/__mocks__/**
**/__tests__/**
src
tsconfig.json
*.ts
tsconfig.tsbuildinfo
3 changes: 0 additions & 3 deletions packages/webpack-scaffold/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
"build": "tsc",
"watch": "npm run build && tsc -w"
},
"files": [
"lib"
],
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9"
}
Loading

0 comments on commit 4669756

Please sign in to comment.