Skip to content

Commit ca0c4bd

Browse files
fvilerstony
authored andcommitted
Set output directory to dist
1 parent daf57d6 commit ca0c4bd

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
/node_modules/
22
/lib/
33
/test/
4-
5-
# top level source
6-
my-element.js
7-
my-element.js.map
8-
my-element.d.ts
9-
my-element.d.ts.map
4+
/dist/

karma.conf.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (config) => {
1010
},
1111
files: [
1212
{
13-
pattern: config.grep ? config.grep : 'test/**/*_test.js',
13+
pattern: config.grep ? config.grep : 'dist/test/**/*_test.js',
1414
type: 'module',
1515
},
1616
],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"scripts": {
99
"build": "tsc",
1010
"build:watch": "tsc --watch",
11-
"clean": "rimraf my-element.{d.ts,d.ts.map,js,js.map} test/my-element.{d.ts,d.ts.map,js,js.map} test/my-element_test.{d.ts,d.ts.map,js,js.map}",
11+
"clean": "rimraf dist/",
1212
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
1313
"lint:eslint": "eslint 'src/**/*.ts'",
1414
"lint:lit-analyzer": "lit-analyzer",
1515
"format": "prettier src/* --write",
1616
"docs": "npm run docs:clean && npm run build && npm run analyze && npm run docs:build && npm run docs:assets && npm run docs:gen",
17-
"docs:clean": "rimraf docs",
17+
"docs:clean": "rimraf docs/",
1818
"docs:gen": "eleventy --config=.eleventy.cjs",
1919
"docs:gen:watch": "eleventy --config=.eleventy.cjs --watch",
2020
"docs:build": "rollup -c --file docs/my-element.bundled.js",

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
* http://polymer.github.io/PATENTS.txt
1313
*/
1414

15+
import replace from '@rollup/plugin-replace';
1516
import filesize from 'rollup-plugin-filesize';
16-
import {terser} from 'rollup-plugin-terser';
1717
import resolve from 'rollup-plugin-node-resolve';
18-
import replace from '@rollup/plugin-replace';
18+
import {terser} from 'rollup-plugin-terser';
1919

2020
export default {
21-
input: 'my-element.js',
21+
input: 'dist/my-element.js',
2222
output: {
2323
file: 'my-element.bundled.js',
2424
format: 'esm',

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"declaration": true,
77
"declarationMap": true,
88
"sourceMap": true,
9-
"outDir": "./",
9+
"outDir": "./dist",
1010
"rootDir": "./src",
1111
"strict": true,
1212
"noUnusedLocals": true,

0 commit comments

Comments
 (0)