GithubHelp home page GithubHelp logo

insidem2m / slim Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 1.2 MB

An opinionated workflow CLI for Angular projects that uses Webpack, TypeScript and Sass.

License: MIT License

TypeScript 93.43% JavaScript 4.74% CSS 0.52% HTML 1.31%
angular cli sass typescript webpack

slim's People

Contributors

domi-andrae avatar frederikschubert avatar greenkeeper[bot] avatar mircoba avatar thomastilch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

domi-andrae

slim's Issues

Simplify configuration

Currently the defaults of the slim.config.ts are written inline in the cli-helpers.ts file. We should move the defaults and the slim.config.d.ts to a new directory from where the typings can be published.

Add target option

The target option could be used to build the application for a specific target. Possible values would be ios, android for apps and electron|nw.js for Portals.

Investigate using karma-detect-browsers

Background

Currently we only start the unit tests in chrome by default. There is also the --browsers flag for the test command where you can supply a list like --browsers=chrome,safari,firefox to start the tests in several browsers.

Detect browsers automatically

There is this project, that allows us, to run the tests in all available browsers. This would especially be helpful for Continuous Integration systems.

Discussion

The discussion would be whether we should make it the default behavior or stick with the current one of just starting chrome.

Images don't work yet

When entering images into the slim.config.ts#images section, they are not rendered to the targetDir.

Remove images configuration

It does not make sense to minify the images during the build. This adds dependencies and build time and the results are not really predictable.
We will remove the images configuration in slim-config and rename extras to assets. The entries will have the following form:

{
    from: string,
    to: string,
    flatten: boolean
}

Browser does not navigate to the correct URL

When using the dev command there is the possibility to press "enter" to open the browser. Currently this opens a new window/tab for about:blank. It should navigate to http://localhost:<port>.

Automatically update DLLs

Currently one has to run dev --update-dlls after updating the vendor dependencies. This could be automated by a task that determines whether the DLLs have to be updated.

Unknown App Entries in consuming Project

Current webpack.config.common.ts resolves modules using ["node_modules", path.resolve(__dirname, path.join(config.rootDir, "node_modules"))].

"node_modules" is relative to the cwd of the terminal executed in (=directory of consuming project) .

path.resolve(__dirname, path.join(config.rootDir, "node_modules")) explictly resolves to the directory of the consuming project.

It should first try to resolve modules through "node_modules" of the consuming project, but should fallback to "node_modules" in the slim project.

Otherwise consuming projects are required to install Webpack-Plugins and Entrypoints themself.

Create JUnit results

A flag should be added to the test command that creates a JUnit test result xml file after the tests have run.

slim dev without .git folder

When using the slim dev command without git versioning the following error appears.

fatal: Not a git repository (or any of the parent directories): .git
../../slim/src/cli-entry.ts dev

Create typings project for templates

The templates have options that should be documented using a standalone typings project (similar to the slim-config) in src/config/template-config.

Add unit tests

We should add unit tests to the project. We have to decide whether to use jasmine or mocha/chai/sinon. I am tending to jasmine as that is already the tool we are using in out client e2e and unit tests.
Mocha allows us to write the unit tests in typescript without compiling them first so I would rather choose mocha.

Exclude moment locales

Currently when including moment.js in the build, all locales are included. It should be possible to set the languages of the application in the slim.config.ts.

Investigate using `ts-loader`

awesome-typescript-loader is not as good as maintained as ts-loader. We should investigate whether a switch has any advantages. The effort would be pretty small.

An in-range update of webpack-merge is breaking the build 🚨

Version 2.1.1 of webpack-merge just got published.

Branch Build failing 🚨
Dependency webpack-merge
Current Version 2.1.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As webpack-merge is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

The new version differs by 3 commits .

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Remove "No user config" warning

When there is no templates directory for the current user slim always issues this warning. The warning should only be visible if the new command is used.

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.