generator-uqusdc v1.0.1
Web app generator for UNIQLO frontend projects
Yeoman generator that scaffolds out a front-end web app using gulp for the build process
This generator is an extension from the Web app generator
This Generator's Purpose in Life
The main reason for extending into this generator is for packaging up JS+HTML+CSS to be deployed in our projects. Due to the build process we use, behavior, structure and presentation needs to be assembled in this way before being deployed.
The generator takes the relevant code and cleanly dumps it into a place we can easily pull from. It sidesteps a lot of the typical markup in an HTML page, and just grabs the relevant content.
It pulls from originalHtml.html
as well as .tmp/styles/main.css
and dumps this into assembled.html
. You're left with one clean and portable file to use.
To be clear about that main.css
file, it's updated by the generator simply for use in the local development process. It's app/styles/**
that you'll typically be editing.
Features
Please see our gulpfile for up to date information on what we support.
- enable ES2015 features using Babel
- CSS Autoprefixing
- Built-in preview server with BrowserSync
- Automagically compile Sass with libsass
Automagically lint your scripts
Map compiled CSS to source stylesheets with source maps
slick is included via CDN
fancyBox 2.1.7 is included via CDN
For more information on what this generator can do for you, take a look at the gulp plugins used in our package.json
.
Getting Started
Install Yeoman:
npm install --g yo
Install Generator:
npm install -g generator-uqusdc
- Run
yo uqusdc
to scaffold your webapp
- Run
npm start
to preview and watch for changes
- Run
npm start -- --port=8080
to preview and watch for changes in port8080
Run
npm install --save <package>
to install dependencies, frontend includedRun
npm run build
to build your webapp for production
- Run
npm run serve:dist
to preview the production build
- Run
npm run serve:dist -- --port=5000
to preview the production build in port5000
License
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago