Skip to content

Commit 2dde759

Browse files
committed
Minor refactor to make file structure consistent with other components.
1 parent 8b00dbb commit 2dde759

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@author.io/element-base",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Base class for all author-* custom elements (web components).",
55
"main": "dist/author-base.min.js",
66
"scripts": {

rollup.release.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ import buble from 'rollup-plugin-buble'
22
import {uglify} from 'rollup-plugin-uglify'
33
import {terser} from 'rollup-plugin-terser'
44

5-
const input = 'author-base.js'
5+
const input = './src/element.js'
6+
const outfile = 'author-base.js'
67
const outdir = './dist'
78
const format = 'iife'
89
const pkg = require('./package.json')
910
const banner = `// Copyright (c) ${(new Date()).getFullYear()} ${pkg.author.name}. ${pkg.license} licensed.\n// ${pkg.name} v${pkg.version} available at ${pkg.repository.url.replace(/git\+|https:\/\/|\.git/gi, '')}\n// Last Build: ${(new Date().toLocaleString({ timeZone: 'UTC'}))}`
1011

1112
const output = file => {
1213
return {
13-
name: 'AuthorElement',
14-
file: `${outdir}/${input.replace(require('path').extname(input), '')}${file}`,
14+
name: 'AuthorBaseElement',
15+
file: `${outdir}/${outfile.replace(require('path').extname(outfile), '')}${file}`,
1516
format,
1617
banner,
1718
sourcemap: true

author-base.js renamed to src/element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const AuthorElement = superClass => class extends superClass {
1+
const AuthorBaseElement = superClass => class extends superClass {
22
constructor (templateString) {
33
super()
44

@@ -1048,4 +1048,4 @@ const AuthorElement = superClass => class extends superClass {
10481048
}
10491049
}
10501050

1051-
export default AuthorElement
1051+
export default AuthorBaseElement

0 commit comments

Comments
 (0)