ksloan / moment-mini Goto Github PK
View Code? Open in Web Editor NEWParse, validate, manipulate, and display dates in javascript. http://momentjs.com
Parse, validate, manipulate, and display dates in javascript. http://momentjs.com
I don't think this is the right place to raise this issue, but not sure where would be more appropriate. I use this library to avoid packaging the locales for moment.js and it works fantastically. Now I've added moment-timezone as a dependency and this imports moment in it's code (which is also installs as a full dependency). So now I lose all the benefits of moment-mini.
I was wondering if you'd be prepared to support a mini version of moment-timezone
that references moment-mini
in codebase. If you're not up for it, could you let me know how you automatically keep up-to-date with moment.js releases so that I might implement something myself?
Thanks in advance!
Can you ship a esm version and add it through exports
?
moment 2.22.2 came out back in June. moment-mini should be updated to that version, @ksloan.๐
Edit: 2.24.0 now out.
I need to load just the pt-br
locale on project.
Is it possible use it fork to resolve this problem?
Hello, Good Sir!
Thank you so much for creating this package! Being able to cull localization solves a big problem for us!
But I'm trying to update moment.min.js
and moment.d.ts
to the latest version from moment, and the repo won't let me push to a new branch!!!
And when I try to add files manually via github.com
I get disappointments!!
Is there anyway you might deign to loosen your fair repo's chastity belts so I may share the fruits of these update goodnesses with the worlds ???
๐ค ๐ค ๐ค
James
I want the @type format of moment-mini.js. Is it there already or how can I convert moment-mini.js to moment-mini.d.ts
Hi I know this is not a correct place to ask these kind of questions, but asking on SO or other platforms don't convert an answer to the question I want, as not many people on SO are following this lib.
In my angular - ionic app I was previously using angular2-moment, which was bloating vendor wherever I used moment due to locales.
I get to know from moment's issue tracker about moment-mini-ts.
My module is as follow:
package.json
"angular2-moment": "^1.7.0",
"moment": "^2.18.1"
page.module.ts
import { MomentModule } from 'angular2-moment';
@NgModuel( {
imports: [
MomentModule
]
} )
page.html
<div>time | amTimeAgo</div>
Source maps for vendor.js is as follows
Now replacing angular2-moment & moment to moment-mini-ts
Then using in module as follow displays error as :
page.module.ts
import * as moment from 'moment-mini-ts';
NgModule ({
imports: [
moment,
]
})
How to use it here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.