Giter VIP home page Giter VIP logo

toolbox-utils's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dmrty epfl-si

toolbox-utils's Issues

Installation via `yarn` never finished

Using node v9.3.0, when I yarn install into a fresh project, the installation never finish an keep during on:

[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "[email protected]" has unmet peer dependency "[email protected] - 3".
warning "[email protected]" has unmet peer dependency "popper.js@^1.12.9".
warning "[email protected]" has unmet peer dependency "babel-core@6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc".
warning "[email protected]" has unmet peer dependency "postcss@^6.0.0".
[4/4] 📃  Building fresh packages...
[1/4] ⠂ fsevents
[1/4] ⠄ fsevents
[1/4] ⠐ fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v59-darwin-x64.tar.gz
[1/4] ⠠ fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v59-darwin-x64.tar.gz
[2/4] ⠠ uws
[-/4] ⠂ waiting...
[-/4] ⠄ waiting...
[2/4] ⠄ uws
[3/4] ⠄ ttf2woff2: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]

I resolve my problem by installing node-gyp in my global npm.

npm install -g node-gyp

Node 12 seems to be required

Is node 12 required to build a project with toolbox from now on?

I did fiddle a bit to find out that switching to node 12 after having deleted my node_modules folder, and after updating everything made my projet usable again.

Could be good to display a message if the user is not using the correct node version when using the project

Specify the requirements

it looks like toolbox is not compatible with node 6 (use of trailing comma in function args list, use of async, etc).

It would be nice to see if we can be compatible with the maximum version of node and at least define with which version of nodejs this project is compatible.

Gulp Util is deprecated

Gulp-util is deprecated and should be replaced with other modules.

If you see the error TypeError: file.isSymbolic is not a function, this is almost certainly because of this.

I think we're using it only for logs, we could then replace it with fancy-log.

Add dev scripts

In the prepare task, we simply add :

if (!yargs.argv.dev) {
  $(`  <script src="../js/vendors.bundle.js"></script>\n`).appendTo('body');
  $(`  <script src="../js/app.bundle.js"></script>\n`).appendTo('body');
} else {
  $(`  <script src="vendors.bundle.js"></script>\n`).appendTo('body');
  $(`  <script src="app.bundle.js"></script>\n`).appendTo('body');
}

Embeded SVG icons cause rendering issues on reponse other than 200

Motivation/Probleme

When no SVG icons are generated, the page embed the 404 page into the current page.

For now, we have to add the following code to works with SVGIcon

<!-- Toolbox svg icons -->
<script type="text/javascript">
window.svgPath = "/{{ directory }}/build/icons/icons.svg";
</script> 

The problem is that the code will fetch the given path & it will append the results to the page, even with a non 2xx response is given .... Then it will append a 404 embed into the current page !

Resolutions

Check the response code before append it into the page.

Better components list

Use config file (toolbox.json ?) to list the component on toolbox:generate to optimize the prepare task.

Styleguide Styles

A styleguide.scss file should be compiled and imported only on the styleguide (not bundled with the project's assets).

We need this to be able to override styles that our project is redefining or just to brand the styleguide differently.

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.