Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit adbec56

Browse files
committed
Change file structure and clean up package.json
1 parent df81063 commit adbec56

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed
File renamed without changes.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ jobs:
243243
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
244244
```
245245
246-
### Development
247-
## Web Assets
246+
## Development
247+
### Web Assets
248248
249249
[Parcel](https://parceljs.org) is used to process Web assets such as CSS and JavaScript. To make changes, you need to have Node and a package manager such as `npm` installed. In the project root, run `npm install` to install the dependencies.
250250

@@ -254,7 +254,7 @@ During development, run the following command in a terminal:
254254
$ npm run watch
255255
```
256256

257-
This will start watching the source files in `Sources/web` with hot-reload support, auto-generating non-optimized assets in `Assets` whenever a source file is saved.
257+
This will start watching the source files in `Assets` with hot-reload support, auto-generating non-optimized assets in `Resources` whenever a source file is saved.
258258

259259
Once happy with the results, run this command to create production-ready assets:
260260

File renamed without changes.

package.json

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
11
{
22
"name": "swift-doc-assets",
33
"version": "1.0.0",
4-
"browserslist": [
5-
"> 1%",
6-
"not dead"
7-
],
8-
"description": "Front-end assets for swift-doc",
9-
"main": "Assets/index.css",
4+
"browserslist": ["> 1%", "not dead"],
5+
"main": "Resources/all.css",
106
"scripts": {
117
"clean": "rm -rf .parcel-cache",
12-
"watch": "parcel watch Sources/web/css/**/*.css",
13-
"build": "parcel build Sources/web/css/styles.css"
8+
"watch": "parcel watch Assets/css/**/*.css",
9+
"build": "parcel build Assets/css/styles.css"
1410
},
15-
"dependencies": {},
1611
"devDependencies": {
1712
"autoprefixer": "^9.7.5",
1813
"parcel": "^2.0.0-alpha.3.2",
1914
"postcss-preset-env": "^6.7.0"
20-
},
21-
"repository": {
22-
"type": "git",
23-
"url": "https://github.com/SwiftDocOrg/swift-doc.git"
24-
},
25-
"keywords": [],
26-
"contributors": [
27-
"Reda Lemeden <hello@redalemeden.com> (http://redalemeden.com)"
28-
],
29-
"license": "ISC",
30-
"bugs": {
31-
"url": "https://github.com/SwiftDocOrg/swift-doc/issues"
32-
},
33-
"homepage": "https://github.com/SwiftDocOrg/swift-doc#readme"
15+
}
3416
}

0 commit comments

Comments
 (0)