Giter Club home page Giter Club logo

web-starter-kit's Introduction


開発環境

バージョン

node: 10.16.0
npm: 6.9.0
gulp: 4.0.2
webpack: 4.32.2

ファイル構成

web-starter-kit/
│
├ gulpfile.babel.js/
│ ├ config.js [taskのパラメーター設定]
│ ├ index.js [gulp task設定]
│ └ tasks/ [taskファイル置き場]
│   └ task files...
│
├ htdocs/ [公開コード]
├ src/ [開発コード]
├ .gitignore (仮)
├ package-look.json
├ package.json
└ README.md

コマンドリスト

インストール

開発環境インストールコマンド。package-lock.jsonのモジュールのバージョンを揃えるためnpm ciを使用。

npm ci

開発版

ローカルサーバー起動、ファイル監視(Watch), ソース非圧縮、JS SourceMap生成
起動時、ソースのコンパイルは行いません。 (※案件別に必要に応じて設定変更してください)
起動時、ソースのコンパイルを行います。

npm run dev

ステージング版

ローカルサーバー起動、 ソース圧縮、SourceMap削除、console削除(※案件別に必要に応じて設定変更してください)

npm run stg

プロダクト版

ソース圧縮、SourceMap削除、console削除

npm run prd

サーバー起動

サーバー起動のみ

npm run srv

コマンド追記例: コマンド名

コマンドの説明

npm run xxx

変更ログ

  • .gitignore.idea を追加
  • 開発版・ステージング版のtask変更
  • webpackentry を複数に変更
  • npmjquery をインストールし libs.js へ追加
  • sass のベースファイル追加
  • html のビルドを ejs に変更
  • ejs のベースファイルを追加
  • config.tmpData を変更
  • config.tmpData をJSへ渡すよう調整
  • config.clean を変更
  • gulp-autoprefixer から gulp-postcss autoprefixer に変更
  • gulp-postcsscss-mqpacker を追加

web-starter-kit's People

Contributors

yoshihitofujiwara avatar dependabot[bot] avatar nananakamura avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.