Skip to content

Commit

Permalink
Prettier and rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jolyndenning committed Jan 27, 2020
1 parent aa588ff commit c52409e
Show file tree
Hide file tree
Showing 8 changed files with 363 additions and 39 deletions.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.prettierignore
.gitignore
LICENSE
yarn.lock
yarn-error.log
.kodiak.toml
3 changes: 1 addition & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"access": "public"
},
"plugins": {
"release-it-plugin-esm-bundle": {
}
"release-it-plugin-esm-bundle": {}
}
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ deploy:
script: git remote remove origin && git remote add origin https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG && git symbolic-ref HEAD refs/heads/master && git fetch origin && git branch -u origin/master && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && npm run release
skip_cleanup: true
on:
branch: master
branch: master
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# esm-bundle-test
[![Build Status](https://travis-ci.com/esm-bundle/esm-bundle-test.svg?branch=master)](https://travis-ci.com/esm-bundle/esm-bundle-test)
# autopublish-template

A repo that tests automatic detection of upstream publishes and the publishing of `@esm-bundle` versions of them.
[![Build Status](https://travis-ci.com/esm-bundle/autopublish-template.svg?branch=master)](https://travis-ci.com/esm-bundle/autopublish-template)

Upstream repo at https://github.com/joeldenning/esm-bundle-test.
A repo that tests automatic detection of upstream publishes and the publishing of `@esm-bundle` versions of them.

Upstream repo at https://github.com/joeldenning/autopublish-template.

```sh
````sh
## JS Delivr

https://cdn.jsdelivr.net/npm/@esm-bundle/esm-bundle-test/index.js
https://cdn.jsdelivr.net/npm/@esm-bundle/autopublish-template/index.js

## Unpkg

https://unpkg.com/@esm-bundle/esm-bundle-test/index.js
https://unpkg.com/@esm-bundle/autopublish-template/index.js

## Yarn

```sh
yarn add esm-bundle-test@npm:@esm-bundle/esm-bundle-test
```
yarn add autopublish-template@npm:@esm-bundle/autopublish-template
````
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
{
"name": "@esm-bundle/esm-bundle-test",
"name": "@esm-bundle/autopublish-template",
"version": "14.0.0",
"description": "Repo to test esm-bundle's automatic publishing",
"main": "index.js",
"scripts": {
"test": "echo 'No tests but that is fine'",
"build": "rollup -c",
"prettier": "prettier --write './**/*'",
"release": "release-it"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"files": [
"index.js"
],
"repository": {
"type": "git",
"url": "git+https://github.com/esm-bundle/esm-bundle-test.git"
"url": "git+https://github.com/esm-bundle/autopublish-template.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/esm-bundle/esm-bundle-test/issues"
"url": "https://github.com/esm-bundle/autopublish-template/issues"
},
"homepage": "https://github.com/esm-bundle/esm-bundle-test#readme",
"homepage": "https://github.com/esm-bundle/autopublish-template#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "^11.0.1",
"husky": "^4.2.1",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"release-it": "^12.4.3",
"release-it-plugin-esm-bundle": "^1.0.0",
"rollup": "^1.29.1",
"rollup-cli": "^1.0.9"
},
"dependencies": {
"esm-bundle-test": "^14.0.0"
"autopublish-template": "^16.0.0"
}
}
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"extends": [
"config:base", ":disableDevDependencies"
]
"extends": ["config:base", ":disableDevDependencies"]
}
14 changes: 6 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import commonjs from '@rollup/plugin-commonjs'
import commonjs from "@rollup/plugin-commonjs";

export default {
input: require.resolve('esm-bundle-test'),
input: require.resolve("autopublish-template"),
output: {
file: 'index.js',
format: 'module'
file: "index.js",
format: "module"
},
plugins: [
commonjs()
]
}
plugins: [commonjs()]
};
Loading

0 comments on commit c52409e

Please sign in to comment.