Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit 18e7068

Browse files
committed
chore(all): cleanup
1 parent 7a4ca9d commit 18e7068

File tree

8 files changed

+73
-15
lines changed

8 files changed

+73
-15
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
.vscode
44
npm-debug.log*
55
/typings
6-
/dist
6+
7+
/yarn.lock

dist/index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Webpack as WebpackConfig } from '../webpack';
2+
export { get } from 'lodash';
3+
export { Webpack as WebpackConfig } from '../webpack';
4+
export * from '@easy-webpack/assign';
5+
export declare type WebpackConfigWithMetadata = WebpackConfig & {
6+
metadata: any;
7+
};
8+
export declare type EasyWebpackConfig = WebpackConfigWithMetadata | ((this: WebpackConfigWithMetadata) => WebpackConfigWithMetadata);
9+
export declare function generateConfig(...configs: Array<EasyWebpackConfig>): WebpackConfigWithMetadata;
10+
export declare function stripMetadata(config: EasyWebpackConfig): WebpackConfig;
11+
export default generateConfig;

dist/index.js

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"typings": "dist/index.d.ts",
66
"scripts": {
77
"test": "TS_NODE_FAST=true TS_NODE_NO_PROJECT=true ava",
8-
"prepublish": "typings install",
98
"build": "rimraf dist && tsc -p .",
109
"semantic-release": "npm run build && semantic-release pre && npm publish --access=public && semantic-release post",
1110
"postpublish": "greenkeeper-postpublish"
@@ -35,11 +34,16 @@
3534
"tslint": "^3.11.0",
3635
"tslint-config-standard": "^1.2.2",
3736
"typescript": "^2.0.0",
38-
"typings": "^1.3.0",
3937
"webpack": "beta"
4038
},
4139
"dependencies": {
4240
"@easy-webpack/assign": "^0.9.9 || ^1.0.0",
41+
"@types/debug": "^0.0.29",
42+
"@types/lodash": "^4.14.37",
43+
"@types/node": "^6.0.46",
44+
"@types/source-map": "^0.1.28",
45+
"@types/uglify-js": "^2.6.28",
46+
"@types/webpack": "^1.12.35",
4347
"lodash": "^4.13.1"
4448
},
4549
"ava": {

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {Webpack as WebpackConfig} from './webpack'
1+
import {Webpack as WebpackConfig} from '../webpack'
22
import {assign, literalReplace} from '@easy-webpack/assign'
33
export {get} from 'lodash'
4-
export {Webpack as WebpackConfig} from './webpack'
4+
export {Webpack as WebpackConfig} from '../webpack'
55
export * from '@easy-webpack/assign'
66

77
function hasProcessFlag(flag) {

typings.json

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

src/webpack.d.ts renamed to webpack.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Definitions: https://github.com/webpack/webpack
88

99

10-
declare namespace WebpackType {
10+
export declare namespace WebpackType {
1111
interface Node {
1212
Buffer?: boolean | "mock";
1313
__dirname?: boolean | "mock";

0 commit comments

Comments
 (0)