Skip to content

Commit 2b59bb6

Browse files
authored
internal: Remove msotype and stylis-plugin-msotype packages (#10)
* internal: Remove msotype and stylis-plugin-msotype packages * internal: Move temp scripts to root, cleanup project
1 parent c70a6fe commit 2b59bb6

54 files changed

Lines changed: 73 additions & 1629 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,13 @@ module.exports = {
2323

2424
// prettier
2525
'prettier/prettier': 2,
26-
27-
// typescript
28-
'@typescript-eslint/explicit-function-return-type': 0,
2926
},
3027
overrides: [
3128
{
3229
files: ['*.ts', '*.tsx'],
3330
rules: {
3431
// prefer consistency
3532
'@typescript-eslint/no-inferrable-types': 0,
36-
'@typescript-eslint/no-use-before-define': 0,
37-
'@typescript-eslint/explicit-function-return-type': 2,
3833
},
3934
},
4035
{
@@ -46,10 +41,6 @@ module.exports = {
4641
node: true,
4742
},
4843
rules: {
49-
// import
50-
'import/no-extraneous-dependencies': 0,
51-
'import/no-unresolved': 0,
52-
5344
// jest
5445
'jest/prefer-to-be-null': 2,
5546
'jest/prefer-to-be-undefined': 2,

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ node_modules
55
# build
66
dist
77
tsconfig.tsbuildinfo
8-
packages/msotype/index.d.ts
98

109
# test
1110
coverage

.prettierrc.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,4 @@ module.exports = {
77
tabWidth: 2,
88
trailingComma: 'all',
99
useTabs: false,
10-
overrides: [
11-
{
12-
files: '*.d.ts',
13-
options: {
14-
printWidth: 120,
15-
parser: 'typescript',
16-
},
17-
},
18-
],
1910
};

babel.config.js

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
const isEsm = process.env.TARGET === 'esm';
2-
3-
module.exports = (api) => {
4-
const isDev = api.env('development');
5-
const isTest = api.env('test');
6-
7-
const plugins = [
8-
'@babel/plugin-syntax-dynamic-import',
9-
isTest && ['babel-plugin-dynamic-import-node'],
10-
].filter(Boolean);
11-
12-
return {
13-
plugins,
14-
presets: [
15-
[
16-
'@babel/preset-env',
17-
{
18-
loose: true,
19-
modules: isEsm ? false : 'commonjs',
20-
targets: isEsm ? { esmodules: true } : { node: 'current' },
21-
shippedProposals: true,
22-
},
23-
],
24-
['@babel/preset-react', { development: isDev || isTest }],
25-
'@babel/preset-typescript',
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
loose: true,
7+
modules: 'commonjs',
8+
targets: { node: 'current' },
9+
shippedProposals: true,
10+
},
2611
],
27-
};
12+
'@babel/preset-typescript',
13+
],
2814
};

jest.config.js

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
module.exports = {
2-
collectCoverageFrom: ['**/src/**/*.ts'],
2+
collectCoverageFrom: ['packages/*/src/**/*.ts', 'scripts/**/*.ts'],
33
coverageDirectory: 'coverage',
4-
coveragePathIgnorePatterns: [
5-
'/node_modules/',
6-
'/dist/',
7-
'/test/',
8-
// whatever
9-
'/packages/scripts/src/utils/format.ts',
10-
'/packages/scripts/src/utils/log.ts',
11-
],
12-
coverageThreshold: {
13-
global: {
14-
statements: 0,
15-
branches: 0,
16-
functions: 0,
17-
lines: 0,
18-
},
19-
},
4+
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/test/'],
205
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'node'],
216
moduleNameMapper: {
227
'@email-types/(.+)$': '<rootDir>/packages/$1',
238
},
24-
roots: ['<rootDir>/packages'],
25-
snapshotSerializers: ['jest-emotion'],
9+
roots: ['<rootDir>/packages', '<rootDir>/scripts'],
2610
};

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
"postinstall": "lerna bootstrap",
99
"clean": "rm -rf ./packages/*/{*.tsbuildinfo,dist}",
1010
"clean:prune": "rm -rf ./{,*/,**/*/}{node_modules,coverage,*.lock,*.log,*.tsbuildinfo,dist}",
11-
"build": "yarn clean && lerna run build --ignore=@email-types/scripts && yarn types && yarn run gen mso",
12-
"dev": "run-p dev:* ",
13-
"dev:all": "lerna run dev --parallel",
14-
"dev:types": "run-p \"types:* --watch\"",
15-
"gen": "yarn workspace @email-types/scripts build",
11+
"build": "yarn clean && lerna run build --stream && yarn types",
12+
"gen": "yarn run ts scripts/index.ts",
13+
"ts": "ts-node --project ./tsconfig.node.json",
1614
"test": "yarn build && yarn lint && yarn jest:coverage",
1715
"jest": "jest --colors --logHeapUsage",
1816
"jest:coverage": "yarn run jest --coverage",
@@ -41,18 +39,18 @@
4139
"devDependencies": {
4240
"@babel/cli": "^7.7.0",
4341
"@babel/core": "^7.7.2",
44-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
4542
"@babel/preset-env": "^7.7.1",
46-
"@babel/preset-react": "^7.7.0",
4743
"@babel/preset-typescript": "^7.7.2",
4844
"@postmates/eslint-config": "^5.1.1",
4945
"@types/eslint": "^6.1.3",
46+
"@types/fs-extra": "^8.0.1",
5047
"@types/jest": "^24.0.23",
51-
"@types/node": "^12.12.8",
52-
"@types/prettier": "^1.18.3",
48+
"@types/mri": "^1.1.0",
49+
"@types/node": "^12.12.14",
50+
"@types/prettier": "^1.19.0",
5351
"@typescript-eslint/eslint-plugin": "^2.7.0",
5452
"@typescript-eslint/parser": "^2.7.0",
55-
"babel-plugin-dynamic-import-node": "^2.3.0",
53+
"colors": "^1.4.0",
5654
"conventional-changelog-beemo": "^1.5.3",
5755
"eslint": "^6.6.0",
5856
"eslint-config-prettier": "^6.6.0",
@@ -62,13 +60,15 @@
6260
"eslint-plugin-prettier": "^3.1.1",
6361
"eslint-plugin-react": "^7.16.0",
6462
"eslint-plugin-react-hooks": "^1.7.0",
63+
"fs-extra": "^8.1.0",
6564
"husky": "^3.0.9",
6665
"jest": "^24.9.0",
67-
"jest-emotion": "^10.0.17",
6866
"lerna": "^3.18.4",
6967
"lint-staged": "^10.0.0-1",
70-
"npm-run-all": "^4.1.5",
68+
"mri": "^1.1.4",
7169
"prettier": "^1.19.1",
70+
"react": "^16.12.0",
71+
"ts-node": "^8.5.4",
7272
"typescript": "^3.7.2"
7373
},
7474
"keywords": [

packages/data/CHANGELOG.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ All notable changes to this project will be documented in this file. See
1919

2020
**Note:** Version bump only for package @email-types/data
2121

22-
# Change Log
23-
24-
All notable changes to this project will be documented in this file. See
25-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
26-
2722
## 1.0.0-canary.1 - 2019-11-10
2823

2924
#### 🚀 Updates

packages/data/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"mso.js"
1313
],
1414
"scripts": {
15-
"build": "TARGET=cjs babel --root-mode upward -x .ts,.tsx src -d dist",
16-
"dev": "TARGET=cjs babel --root-mode upward -x .ts,.tsx src -d dist -w"
15+
"build": "babel --root-mode upward -x .ts,.tsx src -d dist",
16+
"dev": "babel --root-mode upward -x .ts,.tsx src -d dist -w"
1717
},
1818
"publishConfig": {
1919
"access": "public"

packages/msotype/CHANGELOG.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)