GithubHelp home page GithubHelp logo

Interesting! Got any examples? about surplus HOT 6 CLOSED

trusktr avatar trusktr commented on August 20, 2024
Interesting! Got any examples?

from surplus.

Comments (6)

adamhaile avatar adamhaile commented on August 20, 2024 1

@trusktr I patched up my old TodoMVC implementation and posted it up here. Let me know if you have any questions.

from surplus.

adamhaile avatar adamhaile commented on August 20, 2024

Thanks for taking a look!

Yeah, docs and examples are almost non-existent right now. There's a minimalist todo list app at the bottom of the S.js page.

I have several test apps I've written to develop and test the API, including the standard TodoMVC. I'll try and get that posted soon, as well as better docs.

from surplus.

trusktr avatar trusktr commented on August 20, 2024

Awesome! I'd be curious to see how you'd write that small Todo example with surplus.

from surplus.

ismail-codar avatar ismail-codar commented on August 20, 2024

@trusktr I am working a todomvc example on webpack and typescript environment for learning surplus and s.js. I will share it when I'm done.

from surplus.

adamhaile avatar adamhaile commented on August 20, 2024

@ismail-codar I just started brushing up my own TodoMVC app. If you get stuck with the limited docs available right now, let me know and I'll try to unstick you.

Since you mentioned webpack, I wrote a loader for it, available on npm as surplus-loader. Here's an example webpack.config.js that uses it and typescript:

'use strict';

module.exports = {
	entry: './src/main.ts',
	output: {
		filename: './dist/main.js'
	},
	resolve: {
		extensions: ['.ts', '.tsx', '.js']
	},
	module: {
		rules: [
			{ test: /\.tsx?$/, loader: 'surplus-loader!ts-loader' },
		]
	}
};

from surplus.

ismail-codar avatar ismail-codar commented on August 20, 2024

Hi @adamhaile We do the same thing at the same time :) There are 3 or 4 issue with surplus-preprocessor. But currently can be roamed around. I will post pull requests or open issues later time.

I can work surplus-loader with webpack 2. My settings like this:

rules: [
	{ test: /\.tsx?$/, use: ['awesome-typescript-loader', 'surplus-loader'] }
]

from surplus.

Related Issues (20)

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.