Skip to content

Commit

Permalink
switch to npm for ease of use
Browse files Browse the repository at this point in the history
  • Loading branch information
ar363 committed Dec 6, 2022
1 parent a13be14 commit 88f376a
Show file tree
Hide file tree
Showing 7 changed files with 7,124 additions and 3,027 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: node_js
node_js:
- 16
before_script:
- yarn
script: yarn build:stylus && eleventy --pathprefix=eleventy-stylus-blog-theme
- npm install
script: npm run build:stylus && eleventy --pathprefix=eleventy-stylus-blog-theme
deploy:
local-dir: _site
provider: pages
Expand Down
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ Get your site up and running with a few clicks
## Prerequisites for local development
[Node.js 8 or above](https://nodejs.org/en/)

[Yarn](https://yarnpkg.com/) package manager


## Getting started locally

1. Clone this repo
Expand All @@ -56,14 +53,14 @@ git clone https://github.com/ar363/eleventy-stylus-blog-theme my-blog
cd my-blog
```

3. Install dependencies with [yarn](https://yarnpkg.com/)
3. Install dependencies
```
yarn
npm i
```
4. Edit `_data/site.js` according to your site preferences

5. Also optionally modify `stylus/abstracts/variables.styl` according to your preference

To watch for changes in Eleventy and Stylus, use `yarn dev`
To watch for changes in Eleventy and Stylus, use `npm run dev`

To build without watching for changes, use `yarn build`
To build without watching for changes, use `npm run build`
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build]
publish = "_site"
command = "yarn build"
command = "npm run build"
Loading

1 comment on commit 88f376a

@vercel
Copy link

@vercel vercel bot commented on 88f376a Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.