switch to package.json based build

This commit is contained in:
Chuanqi Sun 2021-04-17 22:24:27 -07:00
parent a0b8c4c6b7
commit 93a47ca1ea
3 changed files with 28 additions and 4 deletions

View file

@ -20,10 +20,10 @@ jobs:
uses: actions/setup-node@v2.1.4
with:
node-version: "14"
- name: Install osmosfeed
run: npm i @osmoscraft/osmosfeed@^1.0.0
- name: Install dependencies
run: npm i
- name: Build the feed
run: npx osmosfeed
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
public
node_modules
node_modules
package-lock.json

23
package.json Normal file
View file

@ -0,0 +1,23 @@
{
"name": "osmosfeed-template",
"version": "1.0.0",
"description": "Use this template to create the UI and content of an RSS feed reader.",
"main": "index.js",
"scripts": {
"build": "osmosfeed"
},
"repository": {
"type": "git",
"url": "git+https://github.com/osmoscraft/osmosfeed-template.git"
},
"keywords": [],
"author": "osmoscraft",
"license": "MIT",
"bugs": {
"url": "https://github.com/osmoscraft/osmosfeed-template/issues"
},
"homepage": "https://github.com/osmoscraft/osmosfeed-template#readme",
"dependencies": {
"@osmoscraft/osmosfeed": "^1.2.2"
}
}