Skip to content

Commit

Permalink
chore: do not produce unnecessary files on test
Browse files Browse the repository at this point in the history
  • Loading branch information
fczbkk committed Aug 24, 2021
1 parent ec413cb commit cc4decb
Show file tree
Hide file tree
Showing 22 changed files with 15 additions and 303 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/node_modules/
/.idea/
*.DS_Store
/temp/
7 changes: 0 additions & 7 deletions build/src/constants.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions build/src/index.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions build/src/memo.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions build/src/selector-attribute.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions build/src/selector-class.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions build/src/selector-fallback.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions build/src/selector-id.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions build/src/selector-nth-child.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions build/src/selector-nth-of-type.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions build/src/selector-tag.d.ts

This file was deleted.

26 changes: 0 additions & 26 deletions build/src/types.d.ts

This file was deleted.

17 changes: 0 additions & 17 deletions build/src/utilities-data.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions build/src/utilities-dom.d.ts

This file was deleted.

50 changes: 0 additions & 50 deletions build/src/utilities-options.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions build/src/utilities-powerset.d.ts

This file was deleted.

81 changes: 0 additions & 81 deletions build/src/utilities-selectors.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion build/test/utilities-powerset.spec.d.ts

This file was deleted.

7 changes: 7 additions & 0 deletions tools/webpack.build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
const webpack_config = require('./webpack.config')
const path = require('path')

module.exports = Object.assign({}, webpack_config, {
mode: 'production',
devtool: 'hidden-source-map',
output: {
path: path.resolve(__dirname, '../build'),
filename: 'index.js',
library: 'CssSelectorGenerator',
libraryTarget: 'umd',
},
})
6 changes: 0 additions & 6 deletions tools/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ const path = require('path')

module.exports = {
entry: path.resolve(__dirname, '../src/index.ts'),
output: {
path: path.resolve(__dirname, '../build'),
filename: 'index.js',
library: 'CssSelectorGenerator',
libraryTarget: 'umd',
},
module: {
rules: [
{
Expand Down
7 changes: 6 additions & 1 deletion tools/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
const path = require('path')
const webpack_config = require('./webpack.config')

module.exports = Object.assign({}, webpack_config, {
mode: 'development',
devtool: 'inline-source-map',
entry: {}
entry: {},
output: {
filename: '[name].js',
path: path.resolve(__dirname, '../temp'),
}
})
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"outDir": "./build/",
"noImplicitAny": true,
"module": "es6",
"target": "es6",
Expand All @@ -11,7 +10,6 @@
"ES6",
"DOM",
"DOM.Iterable"
],
"declaration": true
]
}
}

0 comments on commit cc4decb

Please sign in to comment.