pages boilerplate
1.0.0
Es ist immer eine Freude, Ihre fantastischen statischen Websites zu erstellen.
# clone repo
$ git clone https://github.com/zce/pages-boilerplate.git my-awesome-pages
$ cd my-awesome-pages
# install dependencies
$ yarn # or npm install $ yarn < task > [options] # Runs the app in development mode
$ yarn serve --port 5210 --open
# Builds the app for production to the `dist` folder
$ yarn build --productionyarn lint oder npm run lintLintieren Sie die Stil- und Skriptdateien.
yarn compile oder npm run compileKompilieren Sie die Stil-, Skript- und Seitendatei.
yarn serve oder npm run serveFührt die App im Entwicklungsmodus mit einem automatisierten Server aus.
open : Browser beim Start öffnen, Standard: falseport : Geben Sie den Server-Port an, Standard: 2080 yarn build oder npm run build Erstellt die App für die Produktion im dist -Ordner. Es minimiert die Quelle im Produktionsmodus, um die beste Leistung zu erzielen.
production : Produktionsmodus-Flag, Standard: falseprod : Alias für production yarn start oder npm run startAusführen von Projekten im Produktionsmodus.
open : Browser beim Start öffnen, Standard: falseport : Geben Sie den Server-Port an, Standard: 2080 yarn deploy oder npm run deploy Stellen Sie den dist -Ordner auf GitHub Pages bereit.
branch : Der Name des Branchs, zu dem Sie pushen, Standard: 'gh-pages' yarn clean oder npm run clean Bereinigen Sie die dist und temp Dateien.
└── my-awesome-pages ································· project root
├─ public ········································· static folder
│ └─ favicon.ico ································· static file (unprocessed)
├─ src ············································ source folder
│ ├─ assets ······································ assets folder
│ │ ├─ fonts ···································· fonts folder
│ │ │ └─ pages.ttf ····························· font file (imagemin)
│ │ ├─ images ··································· images folder
│ │ │ └─ logo.png ······························ image file (imagemin)
│ │ ├─ scripts ·································· scripts folder
│ │ │ └─ main.js ······························· script file (babel / uglify)
│ │ └─ styles ··································· styles folder
│ │ ├─ _variables.scss ······················· partial sass file (dont output)
│ │ └─ main.scss ····························· entry scss file (scss / postcss)
│ ├─ layouts ····································· layouts folder
│ │ └─ basic.html ······························· layout file (dont output)
│ ├─ partials ···································· partials folder
│ │ └─ header.html ······························ partial file (dont output)
│ ├─ about.html ·································· page file (use layout & partials)
│ └─ index.html ·································· page file (use layout & partials)
├─ .csscomb.json ·································· csscomb config file
├─ .editorconfig ·································· editor config file
├─ .gitignore ····································· git ignore file
├─ .travis.yml ···································· travis ci config file
├─ CHANGELOG.md ··································· repo changelog
├─ LICENSE ········································ repo license
├─ README.md ······································ repo readme
├─ gulpfile.js ···································· gulp tasks file
├─ package.json ··································· package file
└─ yarn.lock ······································ yarn lock file
git checkout -b my-awesome-featuregit commit -am 'Add some feature'git push -u origin my-awesome-featureHINWEIS : Stellen Sie sicher, dass Sie die neueste Version von „Upstream“ zusammenführen, bevor Sie eine Pull-Anfrage stellen!
MIT © 汪磊